Fork me on GitHub

PMD Results

The following document contains the results of PMD 7.26.0.

Violations By Priority

Priority 3

org/newsclub/net/unix/rmi/AFNaming.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 286–288
EmptyCatchBlock Avoid empty catch blocks 324–326
EmptyCatchBlock Avoid empty catch blocks 333–335
EmptyCatchBlock Avoid empty catch blocks 342–344
EmptyCatchBlock Avoid empty catch blocks 356–358
EmptyCatchBlock Avoid empty catch blocks 473–475
EmptyCatchBlock Avoid empty catch blocks 504–506

org/newsclub/net/unix/rmi/AFRMIServiceImpl.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 105–107
EmptyCatchBlock Avoid empty catch blocks 159–161

org/newsclub/net/unix/rmi/AFRMISocketFactory.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 105–107
EmptyCatchBlock Avoid empty catch blocks 221–223
EmptyCatchBlock Avoid empty catch blocks 310–312
EmptyCatchBlock Avoid empty catch blocks 336–338

org/newsclub/net/unix/rmi/AFRegistry.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 213–215
EmptyCatchBlock Avoid empty catch blocks 225–227
EmptyCatchBlock Avoid empty catch blocks 234–236
EmptyCatchBlock Avoid empty catch blocks 238–240
UnnecessaryReturn Unnecessary return statement 258

org/newsclub/net/unix/rmi/AFUNIXNaming.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 246–251
EmptyCatchBlock Avoid empty catch blocks 264–266
EmptyCatchBlock Avoid empty catch blocks 275–277

org/newsclub/net/unix/rmi/AFUNIXRMISocketFactory.java

Rule Violation Line
EmptyControlStatement Empty if statement 203–205

org/newsclub/net/unix/rmi/RemoteFileDescriptorBase.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 129–131
EmptyControlStatement Empty if statement 136–140
EmptyCatchBlock Avoid empty catch blocks 151–153
EmptyCatchBlock Avoid empty catch blocks 206–208
EmptyCatchBlock Avoid empty catch blocks 263–265
EmptyCatchBlock Avoid empty catch blocks 272–274
CollapsibleIfStatements This if statement could be combined with its parent 281–283

org/newsclub/net/unix/rmi/RemotePeerInfo.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 133–135

org/newsclub/net/unix/rmi/ShutdownHookSupport.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 106–108

Priority 4

org/newsclub/net/unix/rmi/AFRegistry.java

Rule Violation Line
UselessParentheses Useless parentheses around `impl instanceof RemoteServer`. 99

org/newsclub/net/unix/rmi/AFUNIXRMISocketFactory.java

Rule Violation Line
UselessParentheses Useless parentheses around `getNaming().getRegistryPort() == RMIPorts.PLAIN...`. 188

org/newsclub/net/unix/rmi/RemoteFileInput.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RemoteFileDescriptorBase': 'MAGIC_VALUE_MASK' is already in scope because it is inherited by an enclosing type 56
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RemoteFileDescriptorBase': 'BIT_READABLE' is already in scope because it is inherited by an enclosing type 57
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RemoteFileDescriptorBase': 'BIT_READABLE' is already in scope because it is inherited by an enclosing type 68

org/newsclub/net/unix/rmi/RemoteFileOutput.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RemoteFileDescriptorBase': 'MAGIC_VALUE_MASK' is already in scope because it is inherited by an enclosing type 53
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RemoteFileDescriptorBase': 'BIT_WRITABLE' is already in scope because it is inherited by an enclosing type 54
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RemoteFileDescriptorBase': 'BIT_WRITABLE' is already in scope because it is inherited by an enclosing type 65

org/newsclub/net/unix/rmi/RemotePeerInfo.java

Rule Violation Line
UselessParentheses Useless parentheses around `data.socketFactory`. 128
UselessParentheses Useless parentheses around `(AFUNIXRMISocketFactory) data.socketFactory`. 129
UselessParentheses Useless parentheses around `data.socketFactory`. 129

org/newsclub/net/unix/rmi/ShutdownHookSupport.java

Rule Violation Line
UselessParentheses Useless parentheses around `"true".equals(System.getProperty("org.newsclub....`. 32–33

Files

org/newsclub/net/unix/rmi/AFNaming.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 286–288
EmptyCatchBlock Avoid empty catch blocks 3 324–326
EmptyCatchBlock Avoid empty catch blocks 3 333–335
EmptyCatchBlock Avoid empty catch blocks 3 342–344
EmptyCatchBlock Avoid empty catch blocks 3 356–358
EmptyCatchBlock Avoid empty catch blocks 3 473–475
EmptyCatchBlock Avoid empty catch blocks 3 504–506

org/newsclub/net/unix/rmi/AFRMIServiceImpl.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 105–107
EmptyCatchBlock Avoid empty catch blocks 3 159–161

org/newsclub/net/unix/rmi/AFRMISocketFactory.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 105–107
EmptyCatchBlock Avoid empty catch blocks 3 221–223
EmptyCatchBlock Avoid empty catch blocks 3 310–312
EmptyCatchBlock Avoid empty catch blocks 3 336–338

org/newsclub/net/unix/rmi/AFRegistry.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `impl instanceof RemoteServer`. 4 99
EmptyCatchBlock Avoid empty catch blocks 3 213–215
EmptyCatchBlock Avoid empty catch blocks 3 225–227
EmptyCatchBlock Avoid empty catch blocks 3 234–236
EmptyCatchBlock Avoid empty catch blocks 3 238–240
UnnecessaryReturn Unnecessary return statement 3 258

org/newsclub/net/unix/rmi/AFUNIXNaming.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 246–251
EmptyCatchBlock Avoid empty catch blocks 3 264–266
EmptyCatchBlock Avoid empty catch blocks 3 275–277

org/newsclub/net/unix/rmi/AFUNIXRMISocketFactory.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `getNaming().getRegistryPort() == RMIPorts.PLAIN...`. 4 188
EmptyControlStatement Empty if statement 3 203–205

org/newsclub/net/unix/rmi/RemoteFileDescriptorBase.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 129–131
EmptyControlStatement Empty if statement 3 136–140
EmptyCatchBlock Avoid empty catch blocks 3 151–153
EmptyCatchBlock Avoid empty catch blocks 3 206–208
EmptyCatchBlock Avoid empty catch blocks 3 263–265
EmptyCatchBlock Avoid empty catch blocks 3 272–274
CollapsibleIfStatements This if statement could be combined with its parent 3 281–283

org/newsclub/net/unix/rmi/RemoteFileInput.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RemoteFileDescriptorBase': 'MAGIC_VALUE_MASK' is already in scope because it is inherited by an enclosing type 4 56
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RemoteFileDescriptorBase': 'BIT_READABLE' is already in scope because it is inherited by an enclosing type 4 57
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RemoteFileDescriptorBase': 'BIT_READABLE' is already in scope because it is inherited by an enclosing type 4 68

org/newsclub/net/unix/rmi/RemoteFileOutput.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RemoteFileDescriptorBase': 'MAGIC_VALUE_MASK' is already in scope because it is inherited by an enclosing type 4 53
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RemoteFileDescriptorBase': 'BIT_WRITABLE' is already in scope because it is inherited by an enclosing type 4 54
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RemoteFileDescriptorBase': 'BIT_WRITABLE' is already in scope because it is inherited by an enclosing type 4 65

org/newsclub/net/unix/rmi/RemotePeerInfo.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `data.socketFactory`. 4 128
UselessParentheses Useless parentheses around `(AFUNIXRMISocketFactory) data.socketFactory`. 4 129
UselessParentheses Useless parentheses around `data.socketFactory`. 4 129
CollapsibleIfStatements This if statement could be combined with its parent 3 133–135

org/newsclub/net/unix/rmi/ShutdownHookSupport.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `"true".equals(System.getProperty("org.newsclub....`. 4 32–33
EmptyCatchBlock Avoid empty catch blocks 3 106–108

Suppressed Violations

Filename Rule message Suppression type Reason
org/newsclub/net/unix/rmi/ShutdownHookSupport.java Dont call Thread.run() explicitly, use Thread.start() //nopmd -- code coverage fails if we call .start()

Processing Errors

Filename Problem
module-info.java ParseException: Parse exception in file '/Users/ck/Entwicklung/workspace/junixsocket/junixsocket-rmi/src/main/java/module-info.java' at line 4, column 8: 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-rmi/src/main/java/module-info.java' at line 4, column 8: 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:105)
	at net.sourceforge.pmd.lang.java.ast.internal.LanguageLevelChecker.access$300(LanguageLevelChecker.java:72)
	at net.sourceforge.pmd.lang.java.ast.internal.LanguageLevelChecker$CheckVisitor.visit(LanguageLevelChecker.java:680)
	at net.sourceforge.pmd.lang.java.ast.internal.LanguageLevelChecker$CheckVisitor.visit(LanguageLevelChecker.java:434)
	at net.sourceforge.pmd.lang.java.ast.ASTModuleDeclaration.acceptVisitor(ASTModuleDeclaration.java:33)
	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:98)
	at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
	at net.sourceforge.pmd.lang.ast.internal.IteratorBasedNStream.forEach(IteratorBasedNStream.java:101)
	at net.sourceforge.pmd.lang.java.ast.internal.LanguageLevelChecker.check(LanguageLevelChecker.java:98)
	at net.sourceforge.pmd.lang.java.ast.JavaParser.parseImpl(JavaParser.java:67)
	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:545)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:330)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1090)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614)
	at java.base/java.lang.Thread.run(Thread.java:1516)