PMD Results

The following document contains the results of PMD 4.2.5.

Files

com/trendmicro/grid/acl/ds/jpa/AbstractReceivedFileContentsHandler.java

ViolationLine
It is a good practice to call super() in a constructor42 - 47

com/trendmicro/grid/acl/ds/jpa/entities/JpaFileDetails.java

ViolationLine
Do not add empty strings22
The String literal "WHERE fc.identifier.sha1 = :sha1" appears 4 times in this file; the first occurrence is on line 2424
Do not add empty strings27
The String literal "WHERE fc.identifier.md5 = :md5" appears 4 times in this file; the first occurrence is on line 2929
Do not add empty strings32
The String literal "WHERE fc.identifier.sha1 = :sha1 AND fc.identifier.md5 = :md5" appears 4 times in this file; the first occurrence is on line 3434
Do not add empty strings39
Do not add empty strings44
Do not add empty strings49
Do not add empty strings56
Do not add empty strings61
Do not add empty strings66
Do not add empty strings73
Do not add empty strings78
Do not add empty strings83
Do not add empty strings90
Do not add empty strings95
Do not add empty strings100
Do not add empty strings107
It is a good practice to call super() in a constructor123 - 124

com/trendmicro/grid/acl/ds/jpa/entities/JpaFileIdentifier.java

ViolationLine
It is a good practice to call super() in a constructor30 - 31
The user-supplied array 'sha1' is stored directly.63
The user-supplied array 'md5' is stored directly.79

com/trendmicro/grid/acl/ds/jpa/entities/JpaFileInformation.java

ViolationLine
It is a good practice to call super() in a constructor30 - 31
It is a good practice to call super() in a constructor42 - 44
Overriding method merely calls super53 - 55
The user-supplied array 'tags' is stored directly.119

com/trendmicro/grid/acl/ds/jpa/entities/JpaFileReport.java

ViolationLine
Do not add empty strings20
It is a good practice to call super() in a constructor37 - 38
These nested if statements could be combined65 - 66

com/trendmicro/grid/acl/ds/jpa/entities/JpaFileSource.java

ViolationLine
Do not add empty strings22
Do not add empty strings28
Do not add empty strings32
Do not add empty strings36
Do not add empty strings40
Do not add empty strings45
The String literal "SELECT f.id.source.sourceInformation.publicGUID FROM FILE_CONTENT_SOURCES f " appears 4 times in this file; the first occurrence is on line 4646
Do not add empty strings50
Do not add empty strings54
Do not add empty strings58

com/trendmicro/grid/acl/ds/jpa/entities/JpaJob.java

ViolationLine
Do not add empty strings25
Do not add empty strings29
Do not add empty strings33
Do not add empty strings37
Do not add empty strings41
It is a good practice to call super() in a constructor58 - 59
Overriding method merely calls super123 - 125

com/trendmicro/grid/acl/ds/jpa/entities/JpaJobSources.java

ViolationLine
Do not add empty strings18

com/trendmicro/grid/acl/ds/jpa/entities/JpaNamedFileIdentifier.java

ViolationLine
Do not add empty strings20
Do not add empty strings27
Do not add empty strings34

com/trendmicro/grid/acl/ds/jpa/entities/JpaNamedFileIdentifierHistoryId.java

ViolationLine
It is a good practice to call super() in a constructor25 - 26

com/trendmicro/grid/acl/ds/jpa/entities/JpaPackageDetails.java

ViolationLine
Do not add empty strings28
Do not add empty strings35
Do not add empty strings42
The String literal "SELECT pf.id.fileName, pf.id.fileDetails.identifier FROM PACKAGE_FILES pf " appears 4 times in this file; the first occurrence is on line 4343
Do not add empty strings47
Do not add empty strings52
Do not add empty strings58
Do not add empty strings64
Do not add empty strings69
Do not add empty strings74
Do not add empty strings79
Do not add empty strings85
The String literal "WHERE p.packageFileDetails = pf.id.fileDetails AND " appears 5 times in this file; the first occurrence is on line 8787
Do not add empty strings93
The String literal "SELECT p.packageInformation.name FROM PACKAGE_FILES pf, PACKAGES p " appears 4 times in this file; the first occurrence is on line 9494
Do not add empty strings99
Do not add empty strings105
Do not add empty strings112
Do not add empty strings120
The String literal "SELECT p.packageInformation, p.packageFileDetails.information FROM PACKAGES p " appears 4 times in this file; the first occurrence is on line 121121
Do not add empty strings125
Do not add empty strings130
Do not add empty strings136
Do not add empty strings144
The String literal "SELECT p.id FROM PACKAGES p " appears 4 times in this file; the first occurrence is on line 145145
Do not add empty strings149
Do not add empty strings154
Do not add empty strings162
It is a good practice to call super() in a constructor178 - 179

com/trendmicro/grid/acl/ds/jpa/entities/JpaPackageFamily.java

ViolationLine
Do not add empty strings26
Do not add empty strings31
Do not add empty strings36
Do not add empty strings39
It is a good practice to call super() in a constructor51 - 52

com/trendmicro/grid/acl/ds/jpa/entities/JpaPackageInformation.java

ViolationLine
It is a good practice to call super() in a constructor38 - 39
Overridable method 'validateAndSetNames' called during object construction44
The user-supplied array 'tags' is stored directly.129

com/trendmicro/grid/acl/ds/jpa/entities/JpaSource.java

ViolationLine
Do not add empty strings24
Do not add empty strings28
Do not add empty strings32
The String literal "WHERE s.sourceInformation.publicGUID = :publicGUID" appears 4 times in this file; the first occurrence is on line 3434
Do not add empty strings38
Do not add empty strings44
Do not add empty strings50
Do not add empty strings54
It is a good practice to call super() in a constructor66 - 67

com/trendmicro/grid/acl/ds/jpa/entities/JpaSourceDomain.java

ViolationLine
Do not add empty strings25
Do not add empty strings28
Do not add empty strings34
It is a good practice to call super() in a constructor48 - 49
Overridable method 'setPrimaryKey' called during object construction58
Overridable method 'getPrimaryKey' called during object construction58

com/trendmicro/grid/acl/ds/jpa/entities/JpaSourceInformation.java

ViolationLine
It is a good practice to call super() in a constructor28 - 29
The user-supplied array 'hash' is stored directly.51

com/trendmicro/grid/acl/ds/jpa/entities/JpaVendor.java

ViolationLine
Do not add empty strings29
Do not add empty strings34
Do not add empty strings39
It is a good practice to call super() in a constructor50 - 51

com/trendmicro/grid/acl/ds/jpa/JpaPackageRepository.java

ViolationLine
The String literal "name" appears 7 times in this file; the first occurrence is on line 133133

com/trendmicro/grid/acl/ds/jpa/JpaProcessingResultReceiver.java

ViolationLine
Avoid unused private fields such as 'log'.34

com/trendmicro/grid/acl/ds/jpa/JpaReportReceiver.java

ViolationLine
These nested if statements could be combined97 - 98

com/trendmicro/grid/acl/ds/jpa/JpaSourceRepository.java

ViolationLine
The String literal "publicGUID" appears 8 times in this file; the first occurrence is on line 132132
Avoid throwing raw exception types.305

com/trendmicro/grid/acl/ds/jpa/ReceivedPackageFamiliesHandler.java

ViolationLine
It is a good practice to call super() in a constructor47 - 58

com/trendmicro/grid/acl/ds/jpa/ReceivedSourcesHandler.java

ViolationLine
It is a good practice to call super() in a constructor40 - 46

com/trendmicro/grid/acl/ds/jpa/tagquery/IndexAction.java

ViolationLine
Avoid throwing raw exception types.42
Overridable method 'loadQueue' called during object construction60
Avoid throwing raw exception types.159
Avoid throwing raw exception types.172

com/trendmicro/grid/acl/ds/jpa/types/MetadataType.java

ViolationLine
It is somewhat confusing to have a field name with the same name as a method26

com/trendmicro/grid/acl/ds/jpa/types/UnicodeStringType.java

ViolationLine
It is somewhat confusing to have a field name with the same name as a method21

com/trendmicro/grid/acl/ds/jpa/util/FileDetailsMap.java

ViolationLine
It is a good practice to call super() in a constructor22 - 23
clone() method should throw CloneNotSupportedException34 - 36

com/trendmicro/grid/acl/ds/jpa/util/JpaUtils.java

ViolationLine
A method/constructor shouldn't explicitly throw java.lang.Exception62
A method/constructor shouldn't explicitly throw java.lang.Exception72
Avoid throwing raw exception types.237
A method/constructor shouldn't explicitly throw java.lang.Exception265
A method/constructor shouldn't explicitly throw java.lang.Exception265
Avoid throwing raw exception types.283