Fork me on GitHub

PMD Results

The following document contains the results of PMD 7.4.0.

Violations By Priority

Priority 3

org/newsclub/net/unix/demo/SimpleTestServer.java

Rule Violation Line
EmptyControlStatement Empty if statement 141147

org/newsclub/net/unix/demo/server/ChargenServer.java

Rule Violation Line
UnusedLocalVariable Avoid unused local variables such as 'os'. 65

org/newsclub/net/unix/demo/server/NullServer.java

Rule Violation Line
EmptyControlStatement Empty while statement 4244

org/newsclub/net/unix/demo/server/SendFileHandleServer.java

Rule Violation Line
UnusedLocalVariable Avoid unused local variables such as 'is'. 55

org/newsclub/net/unix/demo/ssl/SSLDemoPrerequisites.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'runCommand': private methods cannot be overridden 110

Priority 4

org/newsclub/net/unix/demo/nanohttpd/NanoHttpdServerDemo.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'NanoHTTPD': 'SOCKET_READ_TIMEOUT' is already in scope because it is inherited by an enclosing type 69

org/newsclub/net/unix/demo/server/ChargenServer.java

Rule Violation Line
UselessParentheses Useless parentheses. 100
UselessParentheses Useless parentheses. 142
UselessParentheses Useless parentheses. 155

org/newsclub/net/unix/demo/server/DemoServerBase.java

Rule Violation Line
UselessParentheses Useless parentheses. 48

org/newsclub/net/unix/demo/ssl/SSLDemoPrerequisites.java

Rule Violation Line
UselessParentheses Useless parentheses. 170
UselessParentheses Useless parentheses. 185

Files

org/newsclub/net/unix/demo/SimpleTestServer.java

Rule Violation Priority Line
EmptyControlStatement Empty if statement 3 141147

org/newsclub/net/unix/demo/nanohttpd/NanoHttpdServerDemo.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'NanoHTTPD': 'SOCKET_READ_TIMEOUT' is already in scope because it is inherited by an enclosing type 4 69

org/newsclub/net/unix/demo/server/ChargenServer.java

Rule Violation Priority Line
UnusedLocalVariable Avoid unused local variables such as 'os'. 3 65
UselessParentheses Useless parentheses. 4 100
UselessParentheses Useless parentheses. 4 142
UselessParentheses Useless parentheses. 4 155

org/newsclub/net/unix/demo/server/DemoServerBase.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 48

org/newsclub/net/unix/demo/server/NullServer.java

Rule Violation Priority Line
EmptyControlStatement Empty while statement 3 4244

org/newsclub/net/unix/demo/server/SendFileHandleServer.java

Rule Violation Priority Line
UnusedLocalVariable Avoid unused local variables such as 'is'. 3 55

org/newsclub/net/unix/demo/ssl/SSLDemoPrerequisites.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'runCommand': private methods cannot be overridden 3 110
UselessParentheses Useless parentheses. 4 170
UselessParentheses Useless parentheses. 4 185

Processing Errors

Filename Problem
module-info.java ParseException: Parse exception in file '/Users/ck/Entwicklung/workspace/junixsocket/junixsocket-demo/src/main/java/module-info.java' at line 4, column 1: Module declarations are a feature of Java 9, you should select your language version accordingly
net.sourceforge.pmd.lang.ast.ParseException: Parse exception in file '/Users/ck/Entwicklung/workspace/junixsocket/junixsocket-demo/src/main/java/module-info.java' at line 4, column 1: Module declarations are a feature of Java 9, you should select your language version accordingly
	at net.sourceforge.pmd.lang.java.ast.internal.ReportingStrategy$1.report(ReportingStrategy.java:55)
	at net.sourceforge.pmd.lang.java.ast.internal.ReportingStrategy$1.report(ReportingStrategy.java:42)
	at net.sourceforge.pmd.lang.java.ast.internal.LanguageLevelChecker.check(LanguageLevelChecker.java:100)
	at net.sourceforge.pmd.lang.java.ast.internal.LanguageLevelChecker.access$300(LanguageLevelChecker.java:67)
	at net.sourceforge.pmd.lang.java.ast.internal.LanguageLevelChecker$CheckVisitor.visit(LanguageLevelChecker.java:643)
	at net.sourceforge.pmd.lang.java.ast.internal.LanguageLevelChecker$CheckVisitor.visit(LanguageLevelChecker.java:411)
	at net.sourceforge.pmd.lang.java.ast.ASTModuleDeclaration.acceptVisitor(ASTModuleDeclaration.java:32)
	at net.sourceforge.pmd.lang.java.ast.AbstractJavaNode.acceptVisitor(AbstractJavaNode.java:38)
	at net.sourceforge.pmd.lang.java.ast.internal.LanguageLevelChecker.lambda$check$0(LanguageLevelChecker.java:93)
	at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
	at net.sourceforge.pmd.lang.ast.internal.IteratorBasedNStream.forEach(IteratorBasedNStream.java:102)
	at net.sourceforge.pmd.lang.java.ast.internal.LanguageLevelChecker.check(LanguageLevelChecker.java:93)
	at net.sourceforge.pmd.lang.java.ast.JavaParser.parseImpl(JavaParser.java:66)
	at net.sourceforge.pmd.lang.java.ast.JavaParser.parseImpl(JavaParser.java:25)
	at net.sourceforge.pmd.lang.ast.impl.javacc.JjtreeParserAdapter.parse(JjtreeParserAdapter.java:36)
	at net.sourceforge.pmd.lang.impl.PmdRunnable.parse(PmdRunnable.java:112)
	at net.sourceforge.pmd.lang.impl.PmdRunnable.processSource(PmdRunnable.java:132)
	at net.sourceforge.pmd.lang.impl.PmdRunnable.run(PmdRunnable.java:80)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1570)