PMD Results

The following document contains the results of PMD 6.55.0.

Violations By Priority

Priority 1

dbus-java-osgi - org/freedesktop/dbus/utils/TimeMeasure.java
Rule Violation Line
FormalParameterNamingConventions The lambda parameter name '_durationInMillis' doesn't match '[a-z][a-zA-Z0-9]*' 34
dbus-java-tests - org/freedesktop/dbus/connections/base/ReceivingServiceTest.java
Rule Violation Line
FormalParameterNamingConventions The lambda parameter name '_ex' doesn't match '[a-z][a-zA-Z0-9]*' 92
FormalParameterNamingConventions The lambda parameter name '_executor' doesn't match '[a-z][a-zA-Z0-9]*' 92
FormalParameterNamingConventions The lambda parameter name '_ex' doesn't match '[a-z][a-zA-Z0-9]*' 137
FormalParameterNamingConventions The lambda parameter name '_executor' doesn't match '[a-z][a-zA-Z0-9]*' 137
dbus-java-tests - org/freedesktop/dbus/test/SignalNameTest.java
Rule Violation Line
FormalParameterNamingConventions The lambda parameter name '_s' doesn't match '[a-z][a-zA-Z0-9]*' 48

Priority 3

dbus-java-examples - com/github/hypfvieh/dbus/examples/export/ExportExample.java
Rule Violation Line
ImmutableField Private field 'dbusConn' could be made final; it is only initialized in the declaration or constructor. 18
ImmutableField Private field 'waitClose' could be made final; it is only initialized in the declaration or constructor. 19
dbus-java-tests - org/freedesktop/dbus/test/BoundPropertiesTest.java
Rule Violation Line
ImmutableField Private field 'propVals' could be made final; it is only initialized in the declaration or constructor. 166
dbus-java-tests - org/freedesktop/dbus/utils/LoggingHelperTest.java
Rule Violation Line
ImmutableField Private field 'input' could be made final; it is only initialized in the declaration or constructor. 72
ImmutableField Private field 'expected' could be made final; it is only initialized in the declaration or constructor. 73

Priority 4

dbus-java-osgi - org/freedesktop/dbus/utils/DBusNamingUtil.java
Rule Violation Line
UselessParentheses Useless parentheses. 73
UselessParentheses Useless parentheses. 74
dbus-java-osgi - org/freedesktop/dbus/utils/DBusObjects.java
Rule Violation Line
UselessParentheses Useless parentheses. 146
UselessParentheses Useless parentheses. 146
UselessParentheses Useless parentheses. 201
dbus-java-osgi - org/freedesktop/dbus/utils/LoggingHelper.java
Rule Violation Line
UselessParentheses Useless parentheses. 78
UselessParentheses Useless parentheses. 80
UselessParentheses Useless parentheses. 82
UselessParentheses Useless parentheses. 84
UselessParentheses Useless parentheses. 86
UselessParentheses Useless parentheses. 88
UselessParentheses Useless parentheses. 90
dbus-java-tests - org/freedesktop/dbus/test/FileDescriptorsTest.java
Rule Violation Line
OneDeclarationPerLine Use one line for each declaration, it enhances code readability. 23
dbus-java-tests - org/freedesktop/dbus/test/VariantTest.java
Rule Violation Line
UselessParentheses Useless parentheses. 134

Files

dbus-java-osgi - org/freedesktop/dbus/utils/DBusNamingUtil.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 73
UselessParentheses Useless parentheses. 4 74

dbus-java-osgi - org/freedesktop/dbus/utils/DBusObjects.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 146
UselessParentheses Useless parentheses. 4 146
UselessParentheses Useless parentheses. 4 201

dbus-java-osgi - org/freedesktop/dbus/utils/LoggingHelper.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 78
UselessParentheses Useless parentheses. 4 80
UselessParentheses Useless parentheses. 4 82
UselessParentheses Useless parentheses. 4 84
UselessParentheses Useless parentheses. 4 86
UselessParentheses Useless parentheses. 4 88
UselessParentheses Useless parentheses. 4 90

dbus-java-osgi - org/freedesktop/dbus/utils/TimeMeasure.java

Rule Violation Priority Line
FormalParameterNamingConventions The lambda parameter name '_durationInMillis' doesn't match '[a-z][a-zA-Z0-9]*' 1 34

dbus-java-examples - com/github/hypfvieh/dbus/examples/export/ExportExample.java

Rule Violation Priority Line
ImmutableField Private field 'dbusConn' could be made final; it is only initialized in the declaration or constructor. 3 18
ImmutableField Private field 'waitClose' could be made final; it is only initialized in the declaration or constructor. 3 19

dbus-java-tests - org/freedesktop/dbus/connections/base/ReceivingServiceTest.java

Rule Violation Priority Line
FormalParameterNamingConventions The lambda parameter name '_ex' doesn't match '[a-z][a-zA-Z0-9]*' 1 92
FormalParameterNamingConventions The lambda parameter name '_executor' doesn't match '[a-z][a-zA-Z0-9]*' 1 92
FormalParameterNamingConventions The lambda parameter name '_ex' doesn't match '[a-z][a-zA-Z0-9]*' 1 137
FormalParameterNamingConventions The lambda parameter name '_executor' doesn't match '[a-z][a-zA-Z0-9]*' 1 137

dbus-java-tests - org/freedesktop/dbus/test/BoundPropertiesTest.java

Rule Violation Priority Line
ImmutableField Private field 'propVals' could be made final; it is only initialized in the declaration or constructor. 3 166

dbus-java-tests - org/freedesktop/dbus/test/FileDescriptorsTest.java

Rule Violation Priority Line
OneDeclarationPerLine Use one line for each declaration, it enhances code readability. 4 23

dbus-java-tests - org/freedesktop/dbus/test/SignalNameTest.java

Rule Violation Priority Line
FormalParameterNamingConventions The lambda parameter name '_s' doesn't match '[a-z][a-zA-Z0-9]*' 1 48

dbus-java-tests - org/freedesktop/dbus/test/VariantTest.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 134

dbus-java-tests - org/freedesktop/dbus/utils/LoggingHelperTest.java

Rule Violation Priority Line
ImmutableField Private field 'input' could be made final; it is only initialized in the declaration or constructor. 3 72
ImmutableField Private field 'expected' could be made final; it is only initialized in the declaration or constructor. 3 73

Suppressed Violations

Filename Rule message Suppression type Reason
org/freedesktop/dbus/utils/NameableThreadFactory.java Avoid using java.lang.ThreadGroup; it is not thread safe nopmd
org/freedesktop/dbus/test/helper/cross/CrossTestClient.java Linguistics Antipattern - The setter 'setCompareLists' should not return any type except void linguistically annotation