PMD Results
The following document contains the results of PMD 7.12.0.
Violations By Priority
Priority 1
org/apache/maven/plugin/eclipse/Messages.java
Rule | Violation | Line |
---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | This class has only private constructors and may be final | 30 |
org/apache/maven/plugin/ide/IdeUtils.java
Rule | Violation | Line |
---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | This class has only private constructors and may be final | 51 |
Priority 2
org/apache/maven/plugin/eclipse/EclipseToMavenMojo.java
Rule | Violation | Line |
---|---|---|
AvoidReassigningParameters | Avoid reassigning parameters such as 'version' | 725 |
org/apache/maven/plugin/eclipse/writers/wtp/AbstractWtpResourceWriter.java
Rule | Violation | Line |
---|---|---|
AvoidReassigningParameters | Avoid reassigning parameters such as 'deployPath' | 191 |
org/apache/maven/plugin/ide/IdeUtils.java
Rule | Violation | Line |
---|---|---|
AvoidReassigningParameters | Avoid reassigning parameters such as 'fileToAdd' | 585 |
Priority 3
org/apache/maven/plugin/eclipse/BuildCommand.java
Rule | Violation | Line |
---|---|---|
UncommentedEmptyConstructor | Document empty constructor | 50 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 140 |
EmptyControlStatement | Empty else statement | 150–152 |
EmptyControlStatement | Empty else statement | 155–157 |
org/apache/maven/plugin/eclipse/EclipsePlugin.java
Rule | Violation | Line |
---|---|---|
LiteralsFirstInComparisons | Position literals first in String comparisons | 925 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 1228 |
PreserveStackTrace | Thrown exception does not preserve the stack trace of exception 'e' on all code paths | 1332–1333 |
PreserveStackTrace | Thrown exception does not preserve the stack trace of exception 'e' on all code paths | 1337–1338 |
PreserveStackTrace | Thrown exception does not preserve the stack trace of exception 'e' on all code paths | 1342–1343 |
PreserveStackTrace | Thrown exception does not preserve the stack trace of exception 'e' on all code paths | 1347–1348 |
OptimizableToArrayCall | This call to Collection.toArray() may be optimizable | 1749 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 1924 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 1925 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 1942 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 1943 |
org/apache/maven/plugin/eclipse/EclipseSourceDir.java
Rule | Violation | Line |
---|---|---|
SimplifyConditional | No need to check for null before an instanceof | 248 |
org/apache/maven/plugin/eclipse/EclipseToMavenMojo.java
Rule | Violation | Line |
---|---|---|
PreserveStackTrace | Thrown exception does not preserve the stack trace of exception 'e' on all code paths | 240–241 |
PreserveStackTrace | Thrown exception does not preserve the stack trace of exception 'e' on all code paths | 469–471 |
UseArraysAsList | Use asList instead of tight loops | 603 |
OptimizableToArrayCall | This call to Collection.toArray() may be optimizable | 893 |
org/apache/maven/plugin/eclipse/osgiplugin/ExplodedPlugin.java
Rule | Violation | Line |
---|---|---|
PreserveStackTrace | Thrown exception does not preserve the stack trace of exception 'e' on all code paths | 101 |
org/apache/maven/plugin/eclipse/reader/ReadWorkspaceLocations.java
Rule | Violation | Line |
---|---|---|
UseCollectionIsEmpty | Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() | 156 |
InefficientEmptyStringCheck | String.trim().length() == 0 / String.trim().isEmpty() is an inefficient way to validate a blank String. | 346 |
OptimizableToArrayCall | This call to Collection.toArray() may be optimizable | 620 |
org/apache/maven/plugin/eclipse/writers/AbstractEclipseManifestWriter.java
Rule | Violation | Line |
---|---|---|
UnnecessaryConstructor | Avoid unnecessary constructors - the compiler will generate these for you | 51 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 73 |
org/apache/maven/plugin/eclipse/writers/EclipseClasspathWriter.java
Rule | Violation | Line |
---|---|---|
AddEmptyString | Do not add empty strings | 314 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 587 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 648 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 650 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 650 |
org/apache/maven/plugin/eclipse/writers/EclipseLaunchConfigurationWriter.java
Rule | Violation | Line |
---|---|---|
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 131 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 134 |
AddEmptyString | Do not add empty strings | 202 |
org/apache/maven/plugin/eclipse/writers/EclipseManifestWriter.java
Rule | Violation | Line |
---|---|---|
LiteralsFirstInComparisons | Position literals first in String comparisons | 88 |
org/apache/maven/plugin/eclipse/writers/EclipseProjectWriter.java
Rule | Violation | Line |
---|---|---|
UseCollectionIsEmpty | Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() | 253 |
UseCollectionIsEmpty | Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() | 257 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 386 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 388 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 395 |
org/apache/maven/plugin/eclipse/writers/myeclipse/MyEclipseStrutsDataWriter.java
Rule | Violation | Line |
---|---|---|
AssignmentToNonFinalStatic | Possible unsafe assignment to non-final static field 'strutsPatterns' in a constructor. | 75 |
org/apache/maven/plugin/eclipse/writers/rad/RadApplicationXMLWriter.java
Rule | Violation | Line |
---|---|---|
LiteralsFirstInComparisons | Position literals first in String comparisons | 257 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 258 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 259–260 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 264 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 265 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 266–267 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 271 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 272 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 286 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 298 |
CompareObjectsWithEquals | Use equals() to compare object references. | 347 |
CompareObjectsWithEquals | Use equals() to compare object references. | 354 |
CompareObjectsWithEquals | Use equals() to compare object references. | 403 |
CompareObjectsWithEquals | Use equals() to compare object references. | 418 |
org/apache/maven/plugin/eclipse/writers/rad/RadEjbClasspathWriter.java
Rule | Violation | Line |
---|---|---|
LiteralsFirstInComparisons | Position literals first in String comparisons | 170 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 174 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 178 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 182 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 186 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 190 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 267 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 268 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 269 |
CompareObjectsWithEquals | Use equals() to compare object references. | 274 |
org/apache/maven/plugin/eclipse/writers/rad/RadJ2EEWriter.java
Rule | Violation | Line |
---|---|---|
AddEmptyString | Do not add empty strings | 113 |
AddEmptyString | Do not add empty strings | 127 |
AddEmptyString | Do not add empty strings | 141 |
org/apache/maven/plugin/eclipse/writers/rad/RadManifestWriter.java
Rule | Violation | Line |
---|---|---|
LiteralsFirstInComparisons | Position literals first in String comparisons | 59 |
org/apache/maven/plugin/eclipse/writers/workspace/EclipseCodeFormatterProfile.java
Rule | Violation | Line |
---|---|---|
PreserveStackTrace | Thrown exception does not preserve the stack trace of exception 'e' on all code paths | 87 |
PreserveStackTrace | Thrown exception does not preserve the stack trace of exception 'e' on all code paths | 91 |
org/apache/maven/plugin/eclipse/writers/workspace/EclipseWorkspaceWriter.java
Rule | Violation | Line |
---|---|---|
PreserveStackTrace | Thrown exception does not preserve the stack trace of exception 'ioe' on all code paths | 173–174 |
org/apache/maven/plugin/eclipse/writers/wtp/AbstractWtpResourceWriter.java
Rule | Violation | Line |
---|---|---|
LiteralsFirstInComparisons | Position literals first in String comparisons | 297 |
org/apache/maven/plugin/eclipse/writers/wtp/EclipseWtpApplicationXMLWriter.java
Rule | Violation | Line |
---|---|---|
LiteralsFirstInComparisons | Position literals first in String comparisons | 239 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 239 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 341 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 341 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 342 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 343 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 347 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 348 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 349 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 353 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 354 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 369 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 369 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 383 |
CompareObjectsWithEquals | Use equals() to compare object references. | 462 |
CompareObjectsWithEquals | Use equals() to compare object references. | 469 |
CompareObjectsWithEquals | Use equals() to compare object references. | 491 |
CompareObjectsWithEquals | Use equals() to compare object references. | 506 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 534 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 534 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 552 |
org/apache/maven/plugin/ide/AbstractIdeSupportMojo.java
Rule | Violation | Line |
---|---|---|
OptimizableToArrayCall | This call to Collection.toArray() may be optimizable | 673 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 743 |
PreserveStackTrace | Thrown exception does not preserve the stack trace of exception 'e' on all code paths | 1069 |
org/apache/maven/plugin/ide/IdeDependency.java
Rule | Violation | Line |
---|---|---|
UncommentedEmptyConstructor | Document empty constructor | 121 |
org/apache/maven/plugin/ide/IdeUtils.java
Rule | Violation | Line |
---|---|---|
PreserveStackTrace | Thrown exception does not preserve the stack trace of exception 'e' on all code paths | 126–128 |
OptimizableToArrayCall | This call to Collection.toArray() may be optimizable | 381 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 522 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 668 |
org/apache/maven/plugin/ide/JeeUtils.java
Rule | Violation | Line |
---|---|---|
UseUtilityClass | This utility class has a non-private constructor | 30 |
Priority 4
org/apache/maven/plugin/eclipse/EclipseToMavenMojo.java
Rule | Violation | Line |
---|---|---|
OneDeclarationPerLine | Use one line for each declaration, it enhances code readability. | 531 |
org/apache/maven/plugin/eclipse/reader/ReadWorkspaceLocations.java
Rule | Violation | Line |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ReadWorkspaceLocations': 'CLASSPATHENTRY_DEFAULT' is already in scope because it is declared in an enclosing type | 94 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ReadWorkspaceLocations': 'CLASSPATHENTRY_DEFAULT' is already in scope because it is declared in an enclosing type | 263 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ReadWorkspaceLocations': 'BINARY_LOCATION_FILE' is already in scope because it is declared in an enclosing type | 290 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ReadWorkspaceLocations': 'ARTEFACT_ID' is already in scope because it is declared in an enclosing type | 381 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ReadWorkspaceLocations': 'GROUP_ID' is already in scope because it is declared in an enclosing type | 383 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ReadWorkspaceLocations': 'PARENT_GROUP_ID' is already in scope because it is declared in an enclosing type | 384 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ReadWorkspaceLocations': 'VERSION' is already in scope because it is declared in an enclosing type | 386 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ReadWorkspaceLocations': 'PARENT_VERSION' is already in scope because it is declared in an enclosing type | 387 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ReadWorkspaceLocations': 'PACKAGING' is already in scope because it is declared in an enclosing type | 388 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ReadWorkspaceLocations': 'METADATA_PLUGINS_ORG_ECLIPSE_CORE_RUNTIME_SERVER_PREFS' is already in scope because it is declared in an enclosing type | 412 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ReadWorkspaceLocations': 'METADATA_PLUGINS_ORG_ECLIPSE_CORE_RUNTIME_PREFS_RUNTIMES_KEY' is already in scope because it is declared in an enclosing type | 418 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ReadWorkspaceLocations': 'METADATA_PLUGINS_ORG_ECLIPSE_CORE_RUNTIME_LAUNCHING_PREFS' is already in scope because it is declared in an enclosing type | 483 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ReadWorkspaceLocations': 'METADATA_PLUGINS_ORG_ECLIPSE_CORE_RUNTIME_PREFS_VM_KEY' is already in scope because it is declared in an enclosing type | 492 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ReadWorkspaceLocations': 'CLASSPATHENTRY_FORMAT' is already in scope because it is declared in an enclosing type | 513 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ReadWorkspaceLocations': 'CLASSPATHENTRY_DEFAULT' is already in scope because it is declared in an enclosing type | 525 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ReadWorkspaceLocations': 'CLASSPATHENTRY_DEFAULT' is already in scope because it is declared in an enclosing type | 526 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ReadWorkspaceLocations': 'METADATA_PLUGINS_ORG_ECLIPSE_CORE_RESOURCES_PROJECTS' is already in scope because it is declared in an enclosing type | 563 |
org/apache/maven/plugin/eclipse/writers/AbstractEclipseManifestWriter.java
Rule | Violation | Line |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseManifestWriter': 'AbstractEclipseManifestWriter::META_INF_DIRECTORY' is already in scope because it is declared in an enclosing type | 276 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseManifestWriter': 'AbstractEclipseManifestWriter::META_INF_DIRECTORY' is already in scope because it is declared in an enclosing type | 279 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseManifestWriter': 'AbstractEclipseManifestWriter::MANIFEST_MF_FILENAME' is already in scope because it is declared in an enclosing type | 280 |
org/apache/maven/plugin/eclipse/writers/EclipseManifestWriter.java
Rule | Violation | Line |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'AbstractEclipseManifestWriter': 'META_INF_DIRECTORY' is already in scope because it is inherited by an enclosing type | 97 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'AbstractEclipseManifestWriter': 'META_INF_DIRECTORY' is already in scope because it is inherited by an enclosing type | 111 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'AbstractEclipseManifestWriter': 'MANIFEST_MF_FILENAME' is already in scope because it is inherited by an enclosing type | 112 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseManifestWriter': 'GENERATED_RESOURCE_DIRNAME' is already in scope because it is declared in an enclosing type | 148 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseManifestWriter': 'GENERATED_RESOURCE_DIRNAME' is already in scope because it is declared in an enclosing type | 168 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseManifestWriter': 'GENERATED_RESOURCE_DIRNAME' is already in scope because it is declared in an enclosing type | 174 |
org/apache/maven/plugin/eclipse/writers/wtp/EclipseWtpApplicationXMLWriter.java
Rule | Violation | Line |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'APPLICATION_XML_FILENAME' is already in scope because it is declared in an enclosing type | 134 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'APPLICATION_XML_MODULE' is already in scope because it is declared in an enclosing type | 149 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'MODULEMAPS_FILENAME' is already in scope because it is declared in an enclosing type | 154 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'APPLICATION_XML_APPLICATION' is already in scope because it is declared in an enclosing type | 259 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'ID' is already in scope because it is declared in an enclosing type | 260 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'VERSION' is already in scope because it is declared in an enclosing type | 261 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'XMLNS' is already in scope because it is declared in an enclosing type | 262 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'XMLNS_XSI' is already in scope because it is declared in an enclosing type | 263 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'XSI_SCHEMA_LOCATION' is already in scope because it is declared in an enclosing type | 269 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'XMLNS_SCHEMA_LOCATION' is already in scope because it is declared in an enclosing type | 273 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'APPLICATION_XML_DESCRIPTION' is already in scope because it is declared in an enclosing type | 277 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'APPLICATION_XML_DISPLAY_NAME' is already in scope because it is declared in an enclosing type | 278 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'MODULEMAP_EARPROJECT_MAP' is already in scope because it is declared in an enclosing type | 291 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'XMI_VERSION' is already in scope because it is declared in an enclosing type | 292 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'XMLNS_XMI' is already in scope because it is declared in an enclosing type | 293 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'XMLNS_APPLICATION' is already in scope because it is declared in an enclosing type | 294 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'XMLNS_MODULEMAP' is already in scope because it is declared in an enclosing type | 295 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'XMI_ID' is already in scope because it is declared in an enclosing type | 296 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'ID' is already in scope because it is declared in an enclosing type | 315 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'MODULEMAPS_PROJECT_NAME' is already in scope because it is declared in an enclosing type | 337 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'MODULEMAPS_MAPPINGS' is already in scope because it is declared in an enclosing type | 342 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'APPLICATION_XML_MODULE' is already in scope because it is declared in an enclosing type | 343 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'XMI_TYPE' is already in scope because it is declared in an enclosing type | 343 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'MODULEMAPS_APPLICATION_EJB_MODULE' is already in scope because it is declared in an enclosing type | 343 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'MODULEMAPS_MAPPINGS' is already in scope because it is declared in an enclosing type | 348 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'APPLICATION_XML_MODULE' is already in scope because it is declared in an enclosing type | 349 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'XMI_TYPE' is already in scope because it is declared in an enclosing type | 349 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'MODULEMAPS_APPLICATION_WEB_MODULE' is already in scope because it is declared in an enclosing type | 349 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'MODULEMAPS_UTILITY_JARMAPPINGS' is already in scope because it is declared in an enclosing type | 354 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'MODULEMAPS_MAPPINGS' is already in scope because it is declared in an enclosing type | 371 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'XMI_ID' is already in scope because it is declared in an enclosing type | 372 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'MODULEMAPS_PROJECT_NAME' is already in scope because it is declared in an enclosing type | 373 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'APPLICATION_XML_MODULE' is already in scope because it is declared in an enclosing type | 375 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'XMI_TYPE' is already in scope because it is declared in an enclosing type | 376 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'MODULEMAPS_APPLICATION_EJB_MODULE' is already in scope because it is declared in an enclosing type | 377 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'HREF' is already in scope because it is declared in an enclosing type | 378 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'MODULEMAPS_MAPPINGS' is already in scope because it is declared in an enclosing type | 385 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'XMI_ID' is already in scope because it is declared in an enclosing type | 386 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'MODULEMAPS_PROJECT_NAME' is already in scope because it is declared in an enclosing type | 387 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'APPLICATION_XML_MODULE' is already in scope because it is declared in an enclosing type | 389 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'XMI_TYPE' is already in scope because it is declared in an enclosing type | 390 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'MODULEMAPS_APPLICATION_WEB_MODULE' is already in scope because it is declared in an enclosing type | 391 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'HREF' is already in scope because it is declared in an enclosing type | 392 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'MODULEMAPS_UTILITY_JARMAPPINGS' is already in scope because it is declared in an enclosing type | 399 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'XMI_ID' is already in scope because it is declared in an enclosing type | 400 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'MODULEMAPS_PROJECT_NAME' is already in scope because it is declared in an enclosing type | 401 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'URI' is already in scope because it is declared in an enclosing type | 403 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'HREF' is already in scope because it is declared in an enclosing type | 422 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'APPLICATION_XML_MODULE' is already in scope because it is declared in an enclosing type | 539 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'ID' is already in scope because it is declared in an enclosing type | 540 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'APPLICATION_XML_MODULE' is already in scope because it is declared in an enclosing type | 558 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'ID' is already in scope because it is declared in an enclosing type | 559 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'APPLICATION_XML_WEB' is already in scope because it is declared in an enclosing type | 560 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'APPLICATION_XML_WEB_URI' is already in scope because it is declared in an enclosing type | 561 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'APPLICATION_XML_CONTEXT_ROOT' is already in scope because it is declared in an enclosing type | 563 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'APPLICATION_XML_WEB' is already in scope because it is declared in an enclosing type | 574 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'APPLICATION_XML_WEB_URI' is already in scope because it is declared in an enclosing type | 574 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'APPLICATION_XML_WEB' is already in scope because it is declared in an enclosing type | 576 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'APPLICATION_XML_CONTEXT_ROOT' is already in scope because it is declared in an enclosing type | 576 |
org/apache/maven/plugin/ide/IdeUtils.java
Rule | Violation | Line |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'IdeUtils': 'getCompilerPluginSetting' is already in scope | 179 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'IdeUtils': 'getCompilerPluginSetting' is already in scope | 191 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'IdeUtils': 'getCompilerPluginSetting' is already in scope | 208 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.model': 'Plugin' is already in scope because it is imported in this file | 337 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'IdeUtils': 'PROJECT_NAME_WITH_GROUP_AND_VERSION_TEMPLATE' is already in scope because it is declared in an enclosing type | 410 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'IdeUtils': 'PROJECT_NAME_WITH_VERSION_TEMPLATE' is already in scope because it is declared in an enclosing type | 414 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'IdeUtils': 'PROJECT_NAME_WITH_GROUP_TEMPLATE' is already in scope because it is declared in an enclosing type | 418 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'IdeUtils': 'PROJECT_NAME_DEFAULT_TEMPLATE' is already in scope because it is declared in an enclosing type | 420 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'IdeUtils': 'getCompilerTargetVersion' is already in scope | 558 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'IdeUtils': 'getCompilerSourceVersion' is already in scope | 561 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'IdeUtils': 'JAVA_5_0' is already in scope because it is declared in an enclosing type | 566 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'IdeUtils': 'JAVA_6_0' is already in scope because it is declared in an enclosing type | 570 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'IdeUtils': 'JAVA_1_4' is already in scope because it is declared in an enclosing type | 577 |
Files
org/apache/maven/plugin/eclipse/BuildCommand.java
Rule | Violation | Priority | Line |
---|---|---|---|
UncommentedEmptyConstructor | Document empty constructor | 3 | 50 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 140 |
EmptyControlStatement | Empty else statement | 3 | 150–152 |
EmptyControlStatement | Empty else statement | 3 | 155–157 |
org/apache/maven/plugin/eclipse/EclipsePlugin.java
Rule | Violation | Priority | Line |
---|---|---|---|
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 925 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 1228 |
PreserveStackTrace | Thrown exception does not preserve the stack trace of exception 'e' on all code paths | 3 | 1332–1333 |
PreserveStackTrace | Thrown exception does not preserve the stack trace of exception 'e' on all code paths | 3 | 1337–1338 |
PreserveStackTrace | Thrown exception does not preserve the stack trace of exception 'e' on all code paths | 3 | 1342–1343 |
PreserveStackTrace | Thrown exception does not preserve the stack trace of exception 'e' on all code paths | 3 | 1347–1348 |
OptimizableToArrayCall | This call to Collection.toArray() may be optimizable | 3 | 1749 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 1924 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 1925 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 1942 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 1943 |
org/apache/maven/plugin/eclipse/EclipseSourceDir.java
Rule | Violation | Priority | Line |
---|---|---|---|
SimplifyConditional | No need to check for null before an instanceof | 3 | 248 |
org/apache/maven/plugin/eclipse/EclipseToMavenMojo.java
Rule | Violation | Priority | Line |
---|---|---|---|
PreserveStackTrace | Thrown exception does not preserve the stack trace of exception 'e' on all code paths | 3 | 240–241 |
PreserveStackTrace | Thrown exception does not preserve the stack trace of exception 'e' on all code paths | 3 | 469–471 |
OneDeclarationPerLine | Use one line for each declaration, it enhances code readability. | 4 | 531 |
UseArraysAsList | Use asList instead of tight loops | 3 | 603 |
AvoidReassigningParameters | Avoid reassigning parameters such as 'version' | 2 | 725 |
OptimizableToArrayCall | This call to Collection.toArray() may be optimizable | 3 | 893 |
org/apache/maven/plugin/eclipse/Messages.java
Rule | Violation | Priority | Line |
---|---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | This class has only private constructors and may be final | 1 | 30 |
org/apache/maven/plugin/eclipse/osgiplugin/ExplodedPlugin.java
Rule | Violation | Priority | Line |
---|---|---|---|
PreserveStackTrace | Thrown exception does not preserve the stack trace of exception 'e' on all code paths | 3 | 101 |
org/apache/maven/plugin/eclipse/reader/ReadWorkspaceLocations.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ReadWorkspaceLocations': 'CLASSPATHENTRY_DEFAULT' is already in scope because it is declared in an enclosing type | 4 | 94 |
UseCollectionIsEmpty | Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() | 3 | 156 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ReadWorkspaceLocations': 'CLASSPATHENTRY_DEFAULT' is already in scope because it is declared in an enclosing type | 4 | 263 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ReadWorkspaceLocations': 'BINARY_LOCATION_FILE' is already in scope because it is declared in an enclosing type | 4 | 290 |
InefficientEmptyStringCheck | String.trim().length() == 0 / String.trim().isEmpty() is an inefficient way to validate a blank String. | 3 | 346 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ReadWorkspaceLocations': 'ARTEFACT_ID' is already in scope because it is declared in an enclosing type | 4 | 381 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ReadWorkspaceLocations': 'GROUP_ID' is already in scope because it is declared in an enclosing type | 4 | 383 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ReadWorkspaceLocations': 'PARENT_GROUP_ID' is already in scope because it is declared in an enclosing type | 4 | 384 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ReadWorkspaceLocations': 'VERSION' is already in scope because it is declared in an enclosing type | 4 | 386 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ReadWorkspaceLocations': 'PARENT_VERSION' is already in scope because it is declared in an enclosing type | 4 | 387 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ReadWorkspaceLocations': 'PACKAGING' is already in scope because it is declared in an enclosing type | 4 | 388 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ReadWorkspaceLocations': 'METADATA_PLUGINS_ORG_ECLIPSE_CORE_RUNTIME_SERVER_PREFS' is already in scope because it is declared in an enclosing type | 4 | 412 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ReadWorkspaceLocations': 'METADATA_PLUGINS_ORG_ECLIPSE_CORE_RUNTIME_PREFS_RUNTIMES_KEY' is already in scope because it is declared in an enclosing type | 4 | 418 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ReadWorkspaceLocations': 'METADATA_PLUGINS_ORG_ECLIPSE_CORE_RUNTIME_LAUNCHING_PREFS' is already in scope because it is declared in an enclosing type | 4 | 483 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ReadWorkspaceLocations': 'METADATA_PLUGINS_ORG_ECLIPSE_CORE_RUNTIME_PREFS_VM_KEY' is already in scope because it is declared in an enclosing type | 4 | 492 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ReadWorkspaceLocations': 'CLASSPATHENTRY_FORMAT' is already in scope because it is declared in an enclosing type | 4 | 513 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ReadWorkspaceLocations': 'CLASSPATHENTRY_DEFAULT' is already in scope because it is declared in an enclosing type | 4 | 525 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ReadWorkspaceLocations': 'CLASSPATHENTRY_DEFAULT' is already in scope because it is declared in an enclosing type | 4 | 526 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ReadWorkspaceLocations': 'METADATA_PLUGINS_ORG_ECLIPSE_CORE_RESOURCES_PROJECTS' is already in scope because it is declared in an enclosing type | 4 | 563 |
OptimizableToArrayCall | This call to Collection.toArray() may be optimizable | 3 | 620 |
org/apache/maven/plugin/eclipse/writers/AbstractEclipseManifestWriter.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnnecessaryConstructor | Avoid unnecessary constructors - the compiler will generate these for you | 3 | 51 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 73 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseManifestWriter': 'AbstractEclipseManifestWriter::META_INF_DIRECTORY' is already in scope because it is declared in an enclosing type | 4 | 276 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseManifestWriter': 'AbstractEclipseManifestWriter::META_INF_DIRECTORY' is already in scope because it is declared in an enclosing type | 4 | 279 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseManifestWriter': 'AbstractEclipseManifestWriter::MANIFEST_MF_FILENAME' is already in scope because it is declared in an enclosing type | 4 | 280 |
org/apache/maven/plugin/eclipse/writers/EclipseClasspathWriter.java
Rule | Violation | Priority | Line |
---|---|---|---|
AddEmptyString | Do not add empty strings | 3 | 314 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 587 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 648 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 650 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 650 |
org/apache/maven/plugin/eclipse/writers/EclipseLaunchConfigurationWriter.java
Rule | Violation | Priority | Line |
---|---|---|---|
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 131 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 134 |
AddEmptyString | Do not add empty strings | 3 | 202 |
org/apache/maven/plugin/eclipse/writers/EclipseManifestWriter.java
Rule | Violation | Priority | Line |
---|---|---|---|
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 88 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'AbstractEclipseManifestWriter': 'META_INF_DIRECTORY' is already in scope because it is inherited by an enclosing type | 4 | 97 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'AbstractEclipseManifestWriter': 'META_INF_DIRECTORY' is already in scope because it is inherited by an enclosing type | 4 | 111 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'AbstractEclipseManifestWriter': 'MANIFEST_MF_FILENAME' is already in scope because it is inherited by an enclosing type | 4 | 112 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseManifestWriter': 'GENERATED_RESOURCE_DIRNAME' is already in scope because it is declared in an enclosing type | 4 | 148 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseManifestWriter': 'GENERATED_RESOURCE_DIRNAME' is already in scope because it is declared in an enclosing type | 4 | 168 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseManifestWriter': 'GENERATED_RESOURCE_DIRNAME' is already in scope because it is declared in an enclosing type | 4 | 174 |
org/apache/maven/plugin/eclipse/writers/EclipseProjectWriter.java
Rule | Violation | Priority | Line |
---|---|---|---|
UseCollectionIsEmpty | Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() | 3 | 253 |
UseCollectionIsEmpty | Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() | 3 | 257 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 386 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 388 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 395 |
org/apache/maven/plugin/eclipse/writers/myeclipse/MyEclipseStrutsDataWriter.java
Rule | Violation | Priority | Line |
---|---|---|---|
AssignmentToNonFinalStatic | Possible unsafe assignment to non-final static field 'strutsPatterns' in a constructor. | 3 | 75 |
org/apache/maven/plugin/eclipse/writers/rad/RadApplicationXMLWriter.java
Rule | Violation | Priority | Line |
---|---|---|---|
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 257 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 258 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 259–260 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 264 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 265 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 266–267 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 271 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 272 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 286 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 298 |
CompareObjectsWithEquals | Use equals() to compare object references. | 3 | 347 |
CompareObjectsWithEquals | Use equals() to compare object references. | 3 | 354 |
CompareObjectsWithEquals | Use equals() to compare object references. | 3 | 403 |
CompareObjectsWithEquals | Use equals() to compare object references. | 3 | 418 |
org/apache/maven/plugin/eclipse/writers/rad/RadEjbClasspathWriter.java
Rule | Violation | Priority | Line |
---|---|---|---|
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 170 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 174 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 178 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 182 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 186 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 190 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 267 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 268 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 269 |
CompareObjectsWithEquals | Use equals() to compare object references. | 3 | 274 |
org/apache/maven/plugin/eclipse/writers/rad/RadJ2EEWriter.java
Rule | Violation | Priority | Line |
---|---|---|---|
AddEmptyString | Do not add empty strings | 3 | 113 |
AddEmptyString | Do not add empty strings | 3 | 127 |
AddEmptyString | Do not add empty strings | 3 | 141 |
org/apache/maven/plugin/eclipse/writers/rad/RadManifestWriter.java
Rule | Violation | Priority | Line |
---|---|---|---|
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 59 |
org/apache/maven/plugin/eclipse/writers/workspace/EclipseCodeFormatterProfile.java
Rule | Violation | Priority | Line |
---|---|---|---|
PreserveStackTrace | Thrown exception does not preserve the stack trace of exception 'e' on all code paths | 3 | 87 |
PreserveStackTrace | Thrown exception does not preserve the stack trace of exception 'e' on all code paths | 3 | 91 |
org/apache/maven/plugin/eclipse/writers/workspace/EclipseWorkspaceWriter.java
Rule | Violation | Priority | Line |
---|---|---|---|
PreserveStackTrace | Thrown exception does not preserve the stack trace of exception 'ioe' on all code paths | 3 | 173–174 |
org/apache/maven/plugin/eclipse/writers/wtp/AbstractWtpResourceWriter.java
Rule | Violation | Priority | Line |
---|---|---|---|
AvoidReassigningParameters | Avoid reassigning parameters such as 'deployPath' | 2 | 191 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 297 |
org/apache/maven/plugin/eclipse/writers/wtp/EclipseWtpApplicationXMLWriter.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'APPLICATION_XML_FILENAME' is already in scope because it is declared in an enclosing type | 4 | 134 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'APPLICATION_XML_MODULE' is already in scope because it is declared in an enclosing type | 4 | 149 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'MODULEMAPS_FILENAME' is already in scope because it is declared in an enclosing type | 4 | 154 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 239 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 239 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'APPLICATION_XML_APPLICATION' is already in scope because it is declared in an enclosing type | 4 | 259 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'ID' is already in scope because it is declared in an enclosing type | 4 | 260 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'VERSION' is already in scope because it is declared in an enclosing type | 4 | 261 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'XMLNS' is already in scope because it is declared in an enclosing type | 4 | 262 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'XMLNS_XSI' is already in scope because it is declared in an enclosing type | 4 | 263 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'XSI_SCHEMA_LOCATION' is already in scope because it is declared in an enclosing type | 4 | 269 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'XMLNS_SCHEMA_LOCATION' is already in scope because it is declared in an enclosing type | 4 | 273 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'APPLICATION_XML_DESCRIPTION' is already in scope because it is declared in an enclosing type | 4 | 277 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'APPLICATION_XML_DISPLAY_NAME' is already in scope because it is declared in an enclosing type | 4 | 278 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'MODULEMAP_EARPROJECT_MAP' is already in scope because it is declared in an enclosing type | 4 | 291 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'XMI_VERSION' is already in scope because it is declared in an enclosing type | 4 | 292 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'XMLNS_XMI' is already in scope because it is declared in an enclosing type | 4 | 293 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'XMLNS_APPLICATION' is already in scope because it is declared in an enclosing type | 4 | 294 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'XMLNS_MODULEMAP' is already in scope because it is declared in an enclosing type | 4 | 295 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'XMI_ID' is already in scope because it is declared in an enclosing type | 4 | 296 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'ID' is already in scope because it is declared in an enclosing type | 4 | 315 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'MODULEMAPS_PROJECT_NAME' is already in scope because it is declared in an enclosing type | 4 | 337 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 341 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 341 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 342 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'MODULEMAPS_MAPPINGS' is already in scope because it is declared in an enclosing type | 4 | 342 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 343 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'APPLICATION_XML_MODULE' is already in scope because it is declared in an enclosing type | 4 | 343 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'XMI_TYPE' is already in scope because it is declared in an enclosing type | 4 | 343 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'MODULEMAPS_APPLICATION_EJB_MODULE' is already in scope because it is declared in an enclosing type | 4 | 343 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 347 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 348 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'MODULEMAPS_MAPPINGS' is already in scope because it is declared in an enclosing type | 4 | 348 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 349 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'APPLICATION_XML_MODULE' is already in scope because it is declared in an enclosing type | 4 | 349 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'XMI_TYPE' is already in scope because it is declared in an enclosing type | 4 | 349 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'MODULEMAPS_APPLICATION_WEB_MODULE' is already in scope because it is declared in an enclosing type | 4 | 349 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 353 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 354 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'MODULEMAPS_UTILITY_JARMAPPINGS' is already in scope because it is declared in an enclosing type | 4 | 354 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 369 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 369 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'MODULEMAPS_MAPPINGS' is already in scope because it is declared in an enclosing type | 4 | 371 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'XMI_ID' is already in scope because it is declared in an enclosing type | 4 | 372 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'MODULEMAPS_PROJECT_NAME' is already in scope because it is declared in an enclosing type | 4 | 373 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'APPLICATION_XML_MODULE' is already in scope because it is declared in an enclosing type | 4 | 375 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'XMI_TYPE' is already in scope because it is declared in an enclosing type | 4 | 376 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'MODULEMAPS_APPLICATION_EJB_MODULE' is already in scope because it is declared in an enclosing type | 4 | 377 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'HREF' is already in scope because it is declared in an enclosing type | 4 | 378 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 383 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'MODULEMAPS_MAPPINGS' is already in scope because it is declared in an enclosing type | 4 | 385 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'XMI_ID' is already in scope because it is declared in an enclosing type | 4 | 386 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'MODULEMAPS_PROJECT_NAME' is already in scope because it is declared in an enclosing type | 4 | 387 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'APPLICATION_XML_MODULE' is already in scope because it is declared in an enclosing type | 4 | 389 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'XMI_TYPE' is already in scope because it is declared in an enclosing type | 4 | 390 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'MODULEMAPS_APPLICATION_WEB_MODULE' is already in scope because it is declared in an enclosing type | 4 | 391 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'HREF' is already in scope because it is declared in an enclosing type | 4 | 392 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'MODULEMAPS_UTILITY_JARMAPPINGS' is already in scope because it is declared in an enclosing type | 4 | 399 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'XMI_ID' is already in scope because it is declared in an enclosing type | 4 | 400 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'MODULEMAPS_PROJECT_NAME' is already in scope because it is declared in an enclosing type | 4 | 401 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'URI' is already in scope because it is declared in an enclosing type | 4 | 403 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'HREF' is already in scope because it is declared in an enclosing type | 4 | 422 |
CompareObjectsWithEquals | Use equals() to compare object references. | 3 | 462 |
CompareObjectsWithEquals | Use equals() to compare object references. | 3 | 469 |
CompareObjectsWithEquals | Use equals() to compare object references. | 3 | 491 |
CompareObjectsWithEquals | Use equals() to compare object references. | 3 | 506 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 534 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 534 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'APPLICATION_XML_MODULE' is already in scope because it is declared in an enclosing type | 4 | 539 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'ID' is already in scope because it is declared in an enclosing type | 4 | 540 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 552 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'APPLICATION_XML_MODULE' is already in scope because it is declared in an enclosing type | 4 | 558 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'ID' is already in scope because it is declared in an enclosing type | 4 | 559 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'APPLICATION_XML_WEB' is already in scope because it is declared in an enclosing type | 4 | 560 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'APPLICATION_XML_WEB_URI' is already in scope because it is declared in an enclosing type | 4 | 561 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'APPLICATION_XML_CONTEXT_ROOT' is already in scope because it is declared in an enclosing type | 4 | 563 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'APPLICATION_XML_WEB' is already in scope because it is declared in an enclosing type | 4 | 574 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'APPLICATION_XML_WEB_URI' is already in scope because it is declared in an enclosing type | 4 | 574 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'APPLICATION_XML_WEB' is already in scope because it is declared in an enclosing type | 4 | 576 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'EclipseWtpApplicationXMLWriter': 'APPLICATION_XML_CONTEXT_ROOT' is already in scope because it is declared in an enclosing type | 4 | 576 |
org/apache/maven/plugin/ide/AbstractIdeSupportMojo.java
Rule | Violation | Priority | Line |
---|---|---|---|
OptimizableToArrayCall | This call to Collection.toArray() may be optimizable | 3 | 673 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 743 |
PreserveStackTrace | Thrown exception does not preserve the stack trace of exception 'e' on all code paths | 3 | 1069 |
org/apache/maven/plugin/ide/IdeDependency.java
Rule | Violation | Priority | Line |
---|---|---|---|
UncommentedEmptyConstructor | Document empty constructor | 3 | 121 |
org/apache/maven/plugin/ide/IdeUtils.java
Rule | Violation | Priority | Line |
---|---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | This class has only private constructors and may be final | 1 | 51 |
PreserveStackTrace | Thrown exception does not preserve the stack trace of exception 'e' on all code paths | 3 | 126–128 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'IdeUtils': 'getCompilerPluginSetting' is already in scope | 4 | 179 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'IdeUtils': 'getCompilerPluginSetting' is already in scope | 4 | 191 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'IdeUtils': 'getCompilerPluginSetting' is already in scope | 4 | 208 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'org.apache.maven.model': 'Plugin' is already in scope because it is imported in this file | 4 | 337 |
OptimizableToArrayCall | This call to Collection.toArray() may be optimizable | 3 | 381 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'IdeUtils': 'PROJECT_NAME_WITH_GROUP_AND_VERSION_TEMPLATE' is already in scope because it is declared in an enclosing type | 4 | 410 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'IdeUtils': 'PROJECT_NAME_WITH_VERSION_TEMPLATE' is already in scope because it is declared in an enclosing type | 4 | 414 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'IdeUtils': 'PROJECT_NAME_WITH_GROUP_TEMPLATE' is already in scope because it is declared in an enclosing type | 4 | 418 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'IdeUtils': 'PROJECT_NAME_DEFAULT_TEMPLATE' is already in scope because it is declared in an enclosing type | 4 | 420 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 522 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'IdeUtils': 'getCompilerTargetVersion' is already in scope | 4 | 558 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'IdeUtils': 'getCompilerSourceVersion' is already in scope | 4 | 561 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'IdeUtils': 'JAVA_5_0' is already in scope because it is declared in an enclosing type | 4 | 566 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'IdeUtils': 'JAVA_6_0' is already in scope because it is declared in an enclosing type | 4 | 570 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'IdeUtils': 'JAVA_1_4' is already in scope because it is declared in an enclosing type | 4 | 577 |
AvoidReassigningParameters | Avoid reassigning parameters such as 'fileToAdd' | 2 | 585 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 668 |
org/apache/maven/plugin/ide/JeeUtils.java
Rule | Violation | Priority | Line |
---|---|---|---|
UseUtilityClass | This utility class has a non-private constructor | 3 | 30 |