Le document suivant contient les résultats de PMD 6.13.0.
Rule | Violation | Ligne |
---|---|---|
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 158 |
Rule | Violation | Ligne |
---|---|---|
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 46 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 47 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 48 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 103 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 116 |
Rule | Violation | Ligne |
---|---|---|
UnusedFormalParameter | Avoid unused method parameters such as 'plugin'. | 69 |
UseCollectionIsEmpty | Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() | 71 |
UnusedFormalParameter | Avoid unused method parameters such as 'plugin'. | 109 |
UseCollectionIsEmpty | Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() | 111 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 125 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 175 |
Rule | Violation | Ligne |
---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 72–75 |
ShortVariable | Avoid variables with short names like rt | 83 |
ShortVariable | Avoid variables with short names like p | 89 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_opengraphService' could be made final; it is only initialized in the declaration or constructor. | 117 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 133–134 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 141 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 141 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 146 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 146 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 184 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 184 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 223 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 288 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 288 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 328 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 336 |
Rule | Violation | Ligne |
---|---|---|
UncommentedEmptyMethodBody | Document empty method body | 72–73 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 156 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 156 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 291 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 301 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 301 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 329 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 339 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 339 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 366 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 376 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 376 |
CollapsibleIfStatements | These nested if statements could be combined | 407–410 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 409 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 158 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 46 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 47 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 48 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 103 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 116 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UnusedFormalParameter | Avoid unused method parameters such as 'plugin'. | 3 | 69 |
UseCollectionIsEmpty | Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() | 3 | 71 |
UnusedFormalParameter | Avoid unused method parameters such as 'plugin'. | 3 | 109 |
UseCollectionIsEmpty | Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() | 3 | 111 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 125 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 175 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 72–75 |
ShortVariable | Avoid variables with short names like rt | 3 | 83 |
ShortVariable | Avoid variables with short names like p | 3 | 89 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_opengraphService' could be made final; it is only initialized in the declaration or constructor. | 3 | 117 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 133–134 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 141 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 141 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 146 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 146 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 184 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 184 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 223 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 288 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 288 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 328 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 336 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UncommentedEmptyMethodBody | Document empty method body | 3 | 72–73 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 156 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 156 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 291 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 301 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 301 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 329 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 339 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 339 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 366 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 376 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 376 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 407–410 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 409 |