Résultats PMD
Le document suivant contient les résultats de PMD 6.13.0.
Violations By Priority
Priority 3
fr/paris/lutece/plugins/resource/modules/mylutece/business/MyLuteceResource.java
Rule |
Violation |
Ligne |
ImmutableField |
Private field '_strIdResource' could be made final; it is only initialized in the declaration or constructor. |
51 |
ImmutableField |
Private field '_strName' could be made final; it is only initialized in the declaration or constructor. |
52 |
fr/paris/lutece/plugins/resource/modules/mylutece/service/provider/MyLuteceResourceProvider.java
Rule |
Violation |
Ligne |
ImmutableField |
Private field '_listResourceType' could be made final; it is only initialized in the declaration or constructor. |
57 |
SingularField |
Perhaps '_resourceType' could be replaced by a local variable. |
58 |
ImmutableField |
Private field '_resourceType' could be made final; it is only initialized in the declaration or constructor. |
58 |
UseDiamondOperator |
Explicit type arguments can be replaced by Diamond Operator |
65 |
Fichiers
fr/paris/lutece/plugins/resource/modules/mylutece/business/MyLuteceResource.java
Rule |
Violation |
Priority |
Ligne |
ImmutableField |
Private field '_strIdResource' could be made final; it is only initialized in the declaration or constructor. |
3 |
51 |
ImmutableField |
Private field '_strName' could be made final; it is only initialized in the declaration or constructor. |
3 |
52 |
fr/paris/lutece/plugins/resource/modules/mylutece/service/provider/MyLuteceResourceProvider.java
Rule |
Violation |
Priority |
Ligne |
ImmutableField |
Private field '_listResourceType' could be made final; it is only initialized in the declaration or constructor. |
3 |
57 |
SingularField |
Perhaps '_resourceType' could be replaced by a local variable. |
3 |
58 |
ImmutableField |
Private field '_resourceType' could be made final; it is only initialized in the declaration or constructor. |
3 |
58 |
UseDiamondOperator |
Explicit type arguments can be replaced by Diamond Operator |
3 |
65 |
Processing Errors
Filename |
Problem |
fr/paris/lutece/plugins/resource/modules/mylutece/service/provider/MyLuteceResourceProvider.java |
NullPointerException: null
java.lang.NullPointerException
at net.sourceforge.pmd.lang.java.multifile.signature.JavaSigMask.covers(JavaSigMask.java:58)
at net.sourceforge.pmd.lang.java.multifile.signature.JavaFieldSigMask.covers(JavaFieldSigMask.java:51)
at net.sourceforge.pmd.lang.java.metrics.impl.AbstractJavaClassMetric.countMatchingFieldSigs(AbstractJavaClassMetric.java:79)
at net.sourceforge.pmd.lang.java.metrics.impl.NopaMetric.computeFor(NopaMetric.java:33)
at net.sourceforge.pmd.lang.java.metrics.impl.NopaMetric.computeFor(NopaMetric.java:19)
at net.sourceforge.pmd.lang.metrics.AbstractMetricsComputer.computeForType(AbstractMetricsComputer.java:35)
at net.sourceforge.pmd.lang.metrics.AbstractMetricsFacade.computeForType(AbstractMetricsFacade.java:67)
at net.sourceforge.pmd.lang.java.metrics.JavaMetrics.get(JavaMetrics.java:56)
at net.sourceforge.pmd.lang.java.rule.design.DataClassRule.classRevealsDataAndLacksComplexity(DataClassRule.java:54)
at net.sourceforge.pmd.lang.java.rule.design.DataClassRule.visit(DataClassRule.java:30)
at net.sourceforge.pmd.lang.java.rule.AbstractJavaMetricsRule.visit(AbstractJavaMetricsRule.java:28)
at net.sourceforge.pmd.lang.java.ast.ASTClassOrInterfaceDeclaration.jjtAccept(ASTClassOrInterfaceDeclaration.java:55)
at net.sourceforge.pmd.lang.java.ast.AbstractJavaNode.childrenAccept(AbstractJavaNode.java:60)
at net.sourceforge.pmd.lang.java.rule.AbstractJavaRule.visit(AbstractJavaRule.java:84)
at net.sourceforge.pmd.lang.java.rule.AbstractJavaRule.visit(AbstractJavaRule.java:280)
at net.sourceforge.pmd.lang.java.ast.ASTTypeDeclaration.jjtAccept(ASTTypeDeclaration.java:37)
at net.sourceforge.pmd.lang.java.ast.AbstractJavaNode.childrenAccept(AbstractJavaNode.java:60)
at net.sourceforge.pmd.lang.java.rule.AbstractJavaRule.visit(AbstractJavaRule.java:84)
at net.sourceforge.pmd.lang.java.rule.AbstractJavaRule.visit(AbstractJavaRule.java:255)
at net.sourceforge.pmd.lang.java.rule.AbstractJavaRule.visitAll(AbstractJavaRule.java:39)
at net.sourceforge.pmd.lang.java.rule.AbstractJavaRule.apply(AbstractJavaRule.java:27)
at net.sourceforge.pmd.lang.rule.AbstractDelegateRule.apply(AbstractDelegateRule.java:336)
at net.sourceforge.pmd.RuleSet.apply(RuleSet.java:499)
at net.sourceforge.pmd.RuleSets.apply(RuleSets.java:143)
at net.sourceforge.pmd.SourceCodeProcessor.processSource(SourceCodeProcessor.java:184)
at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:96)
at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:51)
at net.sourceforge.pmd.processor.PmdRunnable.call(PmdRunnable.java:78)
at net.sourceforge.pmd.processor.PmdRunnable.call(PmdRunnable.java:24)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
|