Class SingularFieldRule

  • All Implemented Interfaces:
    AstVisitor<Object,​Object>, JavaParserVisitor, JavaVisitor<Object,​Object>, PropertySource, Rule

    public class SingularFieldRule
    extends AbstractJavaRulechainRule
    A singular field is a field that may be converted to a local variable. This means, that in every method the field is used, there is no path that uses the value that the field has before the method is called. In other words, the field is overwritten before any read.
    Since:
    Created on April 17, 2005, 9:49 PM
    Author:
    Eric Olander, Wouter Zelle, Clément Fournier