View by Classes

Findings - Overview

code-style ImmutableField (PMD)

Further info on the wiki.
Identifies private fields whose values never change once they are initialized either in the declaration of the field or by a constructor. This aids in converting existing classes to immutable classes.
  
public class Foo {
  private int x; // could be final
  public Foo() {
      x = 7;
  }
  public void foo() {
     int a = x + 2;
  }
}
  
      

Additional info can be found at this http://pmd.sourceforge.net/rules/design.html#ImmutableField site.

8org.jcoderz.phoenix.sqlparser.SqlTransformer
Private field 'mInputFile' could be made final; it is only initialized in the declaration or constructor. [524:22],
Private field 'mOutputFile' could be made final; it is only initialized in the declaration or constructor. [525:22],
Private field 'mUseFiles' could be made final; it is only initialized in the declaration or constructor. [526:23],
Private field 'mInDir' could be made final; it is only initialized in the declaration or constructor. [528:22],
Private field 'mOutDir' could be made final; it is only initialized in the declaration or constructor. [529:22],
Private field 'mUseDirs' could be made final; it is only initialized in the declaration or constructor. [530:23],
Private field 'mMetainfFile' could be made final; it is only initialized in the declaration or constructor. [532:22],
Private field 'mForce' could be made final; it is only initialized in the declaration or constructor. [533:23]
2org.jcoderz.commons.connector.http.HttpManagedConnectionImpl
Private field 'mKeyStore' could be made final; it is only initialized in the declaration or constructor. [111:21],
Private field 'mTrustStore' could be made final; it is only initialized in the declaration or constructor. [112:21]
1org.jcoderz.phoenix.sqlparser.SqlParserTest
Private field 'mSqlFile' could be made final; it is only initialized in the declaration or constructor. [93:20]
1org.jcoderz.guidelines.snippets.MemberSample
Private field 'mMemberAccessCounter' could be made final; it is only initialized in the declaration or constructor. [44:17]