The following document contains the results of PMD 5.3.2.
Violation | Line |
---|---|
Avoid unused imports such as 'java.util.concurrent.ExecutionException' | 10 |
Avoid unused imports such as 'javax.ejb.AsyncResult' | 15 |
Avoid empty catch blocks | 205 |
Violation | Line |
---|---|
Avoid unused imports such as 'java.util.Date' | 3 |
Avoid unused imports such as 'java.util.concurrent.Future' | 4 |
Violation | Line |
---|---|
Avoid unused method parameters such as 'bid'. | 174 |
Avoid unused method parameters such as 'order'. | 198 |
Violation | Line |
---|---|
Avoid empty catch blocks | 251 |
Violation | Line |
---|---|
Avoid unused local variables such as 'ctx'. | 60 |
Violation | Line |
---|---|
Avoid unused local variables such as 'ctx'. | 68 |
Violation | Line |
---|---|
Avoid unused imports such as 'ejava.examples.asyncmarket.ejb.AuctionMgmtLocal' | 18 |
Avoid unused imports such as 'ejava.examples.asyncmarket.ejb.BuyerLocal' | 20 |
Avoid unused imports such as 'ejava.examples.asyncmarket.ejb.SellerLocal' | 22 |
Avoid unused imports such as 'ejava.examples.asyncmarket.ejb.UserMgmtLocal' | 24 |
Avoid unused method parameters such as 'lazz'. | 99 |
Violation | Line |
---|---|
An empty statement (semicolon) not part of a loop | 52 |
Avoid unused local variables such as 'ctx'. | 62 |
Violation | Line |
---|---|
Avoid empty catch blocks | 95 |
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead. | 181 |
Violation | Line |
---|---|
Avoid empty catch blocks | 90 |
Avoid empty catch blocks | 124 |
Violation | Line |
---|---|
Avoid unused imports such as 'javax.enterprise.inject.Alternative' | 10 |
Violation | Line |
---|---|
Avoid unused imports such as 'javax.enterprise.inject.Vetoed' | 11 |
Violation | Line |
---|---|
Avoid unused private fields such as 'ctx'. | 28 |
Useless parentheses. | 105 |
Useless parentheses. | 106 |
Violation | Line |
---|---|
Useless parentheses. | 57 |
Useless parentheses. | 65 |
Useless parentheses. | 66 |
Violation | Line |
---|---|
Useless parentheses. | 92 |
Useless parentheses. | 93 |
Violation | Line |
---|---|
Avoid unused imports such as 'javax.ejb.Stateless' | 4 |
Violation | Line |
---|---|
Avoid unused imports such as 'javax.annotation.PostConstruct' | 3 |
Avoid unused imports such as 'javax.annotation.Resource' | 4 |
Avoid unused imports such as 'javax.persistence.PersistenceContext' | 9 |
Overriding method merely calls super | 62–64 |
Violation | Line |
---|---|
Avoid unused imports such as 'javax.annotation.PostConstruct' | 3 |
Avoid unused private fields such as 'ctx'. | 26 |
Overriding method merely calls super | 73–75 |
Violation | Line |
---|---|
Avoid unused imports such as 'javax.annotation.PostConstruct' | 3 |
Avoid unused imports such as 'javax.annotation.Resource' | 5 |
Avoid unused imports such as 'javax.persistence.PersistenceContext' | 10 |
Overriding method merely calls super | 63–65 |
Violation | Line |
---|---|
Overriding method merely calls super | 44–46 |
Violation | Line |
---|---|
Overriding method merely calls super | 57–59 |
Violation | Line |
---|---|
Overriding method merely calls super | 68–70 |
Violation | Line |
---|---|
Overriding method merely calls super | 57–59 |
Violation | Line |
---|---|
Overriding method merely calls super | 46–48 |
Violation | Line |
---|---|
Avoid unused private methods such as 'normalizeName()'. | 56 |
Violation | Line |
---|---|
Avoid empty finally blocks | 52–54 |
Violation | Line |
---|---|
Avoid empty finally blocks | 58–60 |
Violation | Line |
---|---|
Avoid empty finally blocks | 74 |
Avoid empty finally blocks | 101 |
Violation | Line |
---|---|
Avoid unused imports such as 'javax.persistence.PersistenceContext' | 13 |
Avoid unused imports such as 'org.myorg.jpatickets.bo.Seat' | 19 |
Violation | Line |
---|---|
Avoid unused imports such as 'javax.persistence.PersistenceContext' | 8 |
Violation | Line |
---|---|
Useless parentheses. | 76 |
Useless parentheses. | 77 |
Useless parentheses. | 78 |
Useless parentheses. | 79 |
Violation | Line |
---|---|
Avoid unused imports such as 'java.io.Serializable' | 3 |
Violation | Line |
---|---|
Useless parentheses. | 52 |
Useless parentheses. | 53 |
Useless parentheses. | 54 |
Useless parentheses. | 55 |
Violation | Line |
---|---|
Useless parentheses. | 51 |
Useless parentheses. | 52 |
Useless parentheses. | 53 |
Useless parentheses. | 54 |
Violation | Line |
---|---|
Useless parentheses. | 36 |
Useless parentheses. | 37 |
Violation | Line |
---|---|
Useless parentheses. | 59 |
Useless parentheses. | 60 |
Violation | Line |
---|---|
Avoid unused imports such as 'org.myorg.jpatickets.bo.Seat' | 19 |
Violation | Line |
---|---|
Useless parentheses. | 76 |
Useless parentheses. | 77 |
Useless parentheses. | 78 |
Useless parentheses. | 79 |
Violation | Line |
---|---|
Useless parentheses. | 52 |
Useless parentheses. | 53 |
Useless parentheses. | 54 |
Useless parentheses. | 55 |
Violation | Line |
---|---|
Useless parentheses. | 51 |
Useless parentheses. | 52 |
Useless parentheses. | 53 |
Useless parentheses. | 54 |
Violation | Line |
---|---|
Useless parentheses. | 36 |
Useless parentheses. | 37 |
Violation | Line |
---|---|
Useless parentheses. | 59 |
Useless parentheses. | 60 |
Violation | Line |
---|---|
No need to import a type that lives in the same package | 3 |
Violation | Line |
---|---|
Avoid unused imports such as 'javax.transaction.HeuristicMixedException' | 16 |
Avoid unused imports such as 'javax.transaction.HeuristicRollbackException' | 17 |
Avoid unused imports such as 'javax.transaction.NotSupportedException' | 18 |
Avoid unused imports such as 'javax.transaction.RollbackException' | 19 |
Avoid unused imports such as 'javax.transaction.Status' | 20 |
Avoid unused imports such as 'javax.transaction.SystemException' | 21 |
Violation | Line |
---|---|
Avoid unused imports such as 'javax.persistence.Tuple' | 17 |
Avoid unused imports such as 'javax.persistence.TypedQuery' | 18 |
Violation | Line |
---|---|
Avoid empty if statements | 268–270 |
Violation | Line |
---|---|
Avoid empty catch blocks | 139 |
Violation | Line |
---|---|
Avoid unnecessary temporaries when converting primitives to Strings | 60 |
Avoid empty finally blocks | 79–81 |
Violation | Line |
---|---|
Avoid unnecessary temporaries when converting primitives to Strings | 89 |
Violation | Line |
---|---|
No need to import a type that lives in the same package | 13 |
No need to import a type that lives in the same package | 14 |
Violation | Line |
---|---|
No need to import a type that lives in the same package | 14 |
Violation | Line |
---|---|
Avoid empty finally blocks | 81 |
Violation | Line |
---|---|
No need to import a type that lives in the same package | 7 |
Violation | Line |
---|---|
Avoid modifiers which are implied by the context | 9 |
Avoid modifiers which are implied by the context | 10 |
Avoid modifiers which are implied by the context | 11 |
Avoid modifiers which are implied by the context | 12 |
Avoid modifiers which are implied by the context | 13 |
Avoid modifiers which are implied by the context | 14–15 |
Avoid modifiers which are implied by the context | 16–18 |
Violation | Line |
---|---|
Useless parentheses. | 49 |
Violation | Line |
---|---|
Avoid empty catch blocks | 121 |
Violation | Line |
---|---|
Avoid empty if statements | 43–45 |
Avoid empty if statements | 46–48 |
Avoid empty catch blocks | 121 |
Useless parentheses. | 191 |
Violation | Line |
---|---|
Avoid empty catch blocks | 55 |
Avoid empty catch blocks | 56 |
Violation | Line |
---|---|
Avoid modifiers which are implied by the context | 7 |
Avoid modifiers which are implied by the context | 9 |
Avoid modifiers which are implied by the context | 11 |
Avoid modifiers which are implied by the context | 13 |
Avoid modifiers which are implied by the context | 15 |
Avoid modifiers which are implied by the context | 17 |
Violation | Line |
---|---|
Dont create instances of already existing BigInteger and BigDecimal (ZERO, ONE, TEN) | 26 |
Violation | Line |
---|---|
Dont create instances of already existing BigInteger and BigDecimal (ZERO, ONE, TEN) | 15 |
Violation | Line |
---|---|
Avoid unused private fields such as 'id'. | 24 |
Violation | Line |
---|---|
Avoid unused private fields such as 'id'. | 13 |
Violation | Line |
---|---|
Useless parentheses. | 67 |
Useless parentheses. | 68 |
Useless parentheses. | 69 |
Violation | Line |
---|---|
Overriding method merely calls super | 26–28 |
Violation | Line |
---|---|
Overriding method merely calls super | 22 |
Violation | Line |
---|---|
Overriding method merely calls super | 18–20 |
Violation | Line |
---|---|
Avoid unnecessary temporaries when converting primitives to Strings | 43 |
Violation | Line |
---|---|
Avoid unused private fields such as 'houseId'. | 17 |
Violation | Line |
---|---|
Ensure you override both equals() and hashCode() | 64 |
Violation | Line |
---|---|
Ensure you override both equals() and hashCode() | 21 |
Violation | Line |
---|---|
Ensure you override both equals() and hashCode() | 19 |
Violation | Line |
---|---|
Ensure you override both equals() and hashCode() | 21 |
Violation | Line |
---|---|
Ensure you override both equals() and hashCode() | 22 |
Violation | Line |
---|---|
Avoid creating BigDecimal with a decimal (float/double) literal. Use a String literal | 49 |
Violation | Line |
---|---|
Avoid unused private fields such as 'pk'. | 18 |
Violation | Line |
---|---|
Avoid unused private fields such as 'id'. | 15 |
Violation | Line |
---|---|
Avoid unused private fields such as 'id'. | 15 |
Violation | Line |
---|---|
Avoid unused private fields such as 'date'. | 20 |
Avoid unused private fields such as 'time'. | 24 |
Violation | Line |
---|---|
Avoid unused private fields such as 'id'. | 23 |
Violation | Line |
---|---|
Avoid unused private fields such as 'id'. | 13 |
Violation | Line |
---|---|
Avoid unused private methods such as 'fromDB()'. | 53 |
Violation | Line |
---|---|
Useless parentheses. | 81 |
Useless parentheses. | 82 |
Useless parentheses. | 83 |
Useless parentheses. | 84 |
Violation | Line |
---|---|
Useless parentheses. | 273 |
Violation | Line |
---|---|
Useless parentheses. | 19 |
Violation | Line |
---|---|
Dont create instances of already existing BigInteger and BigDecimal (ZERO, ONE, TEN) | 57 |
An operation on an Immutable object (String, BigDecimal or BigInteger) wont change the object itself | 59 |
Violation | Line |
---|---|
Useless parentheses. | 117 |
Violation | Line |
---|---|
An empty statement (semicolon) not part of a loop | 20 |
Violation | Line |
---|---|
Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. | 32 |
Avoid empty catch blocks | 82 |
Avoid empty catch blocks | 83 |
Avoid empty catch blocks | 84 |
Avoid empty catch blocks | 85 |
Avoid empty catch blocks | 86 |