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/AFAddressFamily.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 150152

org/newsclub/net/unix/AFCore.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 9294
CollapsibleIfStatements This if statement could be combined with its parent 130132
EmptyControlStatement Empty if statement 400404

org/newsclub/net/unix/AFDatagramSocket.java

Rule Violation Line
EmptyControlStatement Empty if statement 259261
CollapsibleIfStatements This if statement could be combined with its parent 259261
EmptyCatchBlock Avoid empty catch blocks 263265
CollapsibleIfStatements This if statement could be combined with its parent 276278
EmptyCatchBlock Avoid empty catch blocks 287289
EmptyControlStatement Empty if statement 291295
EmptyControlStatement Empty if statement 310315
EmptyCatchBlock Avoid empty catch blocks 359361

org/newsclub/net/unix/AFDatagramSocketImpl.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 546548
EmptyCatchBlock Avoid empty catch blocks 552554

org/newsclub/net/unix/AFGenericSocketAddress.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 194196

org/newsclub/net/unix/AFSYSTEMSocketAddress.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 306308

org/newsclub/net/unix/AFSelector.java

Rule Violation Line
EmptyControlStatement Empty else statement 353355
EmptyCatchBlock Avoid empty catch blocks 378381

org/newsclub/net/unix/AFServerSocket.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 527529

org/newsclub/net/unix/AFSocket.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 500502

org/newsclub/net/unix/AFSocketAddress.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 421432

org/newsclub/net/unix/AFSocketCore.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 146148

org/newsclub/net/unix/AFSocketImpl.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 116118
EmptyCatchBlock Avoid empty catch blocks 138140
EmptyCatchBlock Avoid empty catch blocks 144146
EmptyCatchBlock Avoid empty catch blocks 147149
EmptyCatchBlock Avoid empty catch blocks 154156
CollapsibleIfStatements This if statement could be combined with its parent 275278
EmptyCatchBlock Avoid empty catch blocks 333335
EmptyCatchBlock Avoid empty catch blocks 339341
EmptyCatchBlock Avoid empty catch blocks 434436
CollapsibleIfStatements This if statement could be combined with its parent 560563
EmptyCatchBlock Avoid empty catch blocks 12091211
EmptyCatchBlock Avoid empty catch blocks 12141216
EmptyCatchBlock Avoid empty catch blocks 12291231

org/newsclub/net/unix/AFTIPCSocketAddress.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 677679

org/newsclub/net/unix/AFUNIXSocket.java

Rule Violation Line
UnnecessaryReturn Unnecessary return statement 258

org/newsclub/net/unix/AFUNIXSocketAddress.java

Rule Violation Line
EmptyControlStatement Empty if statement 443447

org/newsclub/net/unix/AFVSOCKSocketAddress.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 391393

org/newsclub/net/unix/AncillaryDataSupport.java

Rule Violation Line
UnnecessaryReturn Unnecessary return statement 89
EmptyCatchBlock Avoid empty catch blocks 134136
EmptyCatchBlock Avoid empty catch blocks 201203

org/newsclub/net/unix/HostAndPort.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 216218

org/newsclub/net/unix/InterruptibleChannelUtil.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 5861
CollapsibleIfStatements This if statement could be combined with its parent 116118
CollapsibleIfStatements This if statement could be combined with its parent 128130

org/newsclub/net/unix/MapValueSet.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 169171

org/newsclub/net/unix/NativeLibraryLoader.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 281283
EmptyCatchBlock Avoid empty catch blocks 394396

org/newsclub/net/unix/NativeUnixSocket.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 160163
EmptyCatchBlock Avoid empty catch blocks 206208

org/newsclub/net/unix/RAFChannelProvider.java

Rule Violation Line
EmptyControlStatement Empty if statement 6062
EmptyControlStatement Empty if statement 8991
EmptyCatchBlock Avoid empty catch blocks 104106

org/newsclub/net/unix/VirtualThreadPollerNaive.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 100103
CollapsibleIfStatements This if statement could be combined with its parent 155157

org/newsclub/net/unix/pool/ConcurrentQueueObjectPool.java

Rule Violation Line
EmptyControlStatement Empty if statement 8896
EmptyControlStatement Empty if statement 9096

Priority 4

org/newsclub/net/unix/AFAddressFamily.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFAddressFamily': 'triggerInit' is already in scope 127

org/newsclub/net/unix/AFDatagramChannel.java

Rule Violation Line
UselessParentheses Useless parentheses around `exception = InterruptibleChannelUtil.handleExce...`. 154
UselessParentheses Useless parentheses around `exception = InterruptibleChannelUtil.handleExce...`. 171
UselessParentheses Useless parentheses around `exception = InterruptibleChannelUtil.handleExce...`. 188
UselessParentheses Useless parentheses around `exception = InterruptibleChannelUtil.handleExce...`. 214

org/newsclub/net/unix/AFGenericSocketAddress.java

Rule Violation Line
UselessParentheses Useless parentheses around `addr instanceof AFGenericSocketAddress`. 154
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFGenericSocketAddress': 'of' is already in scope 174

org/newsclub/net/unix/AFPipe.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.nio.channels': 'Pipe' is already in scope because it is imported in this file 90
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.nio.channels': 'Pipe' is already in scope because it is imported in this file 134

org/newsclub/net/unix/AFSYSTEMSocketAddress.java

Rule Violation Line
UselessParentheses Useless parentheses around `addr instanceof AFSYSTEMSocketAddress`. 252
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSYSTEMSocketAddress': 'of' is already in scope 286

org/newsclub/net/unix/AFSelector.java

Rule Violation Line
UselessParentheses Useless parentheses around `rops == 0`. 254

org/newsclub/net/unix/AFServerSocket.java

Rule Violation Line
UselessParentheses Useless parentheses around `(Boolean) getAFImpl().getOption(SocketOptions.S...`. 641
UselessParentheses Useless parentheses around `getAFImpl().getOption(SocketOptions.SO_REUSEADDR)`. 641

org/newsclub/net/unix/AFServerSocketChannel.java

Rule Violation Line
UselessParentheses Useless parentheses around `exception = InterruptibleChannelUtil.handleExce...`. 123

org/newsclub/net/unix/AFSocket.java

Rule Violation Line
UselessParentheses Useless parentheses around `AFSocketCapability.CAPABILITY_FD_AS_REDIRECT.ge...`. 396
UselessParentheses Useless parentheses around `cap.getBitmask()`. 401
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSocket': 'supports' is already in scope 458
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSocket': 'supports' is already in scope 599

org/newsclub/net/unix/AFSocketAddress.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSocketAddress': 'newSockAddrDirectBuffer' is already in scope 81
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSocketAddress': 'craftSerializedObject' is already in scope 201
UselessParentheses Useless parentheses around `port >= 0 && port <= 0xffff ? port : 0`. 202203
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSocketAddress': 'unwrap' is already in scope 382
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSocketAddress': 'resolveAddress' is already in scope 596
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSocketAddress': 'mapOrFail' is already in scope 682
UselessParentheses Useless parentheses around `nativeAddress.get(SOCKADDR_NATIVE_FAMILY_OFFSET...`. 868
UselessParentheses Useless parentheses around `targetAddressClass.isAssignableFrom(afAddr.getC...`. 1035

org/newsclub/net/unix/AFSocketChannel.java

Rule Violation Line
UselessParentheses Useless parentheses around `exception = InterruptibleChannelUtil.handleExce...`. 215
UselessParentheses Useless parentheses around `exception = InterruptibleChannelUtil.handleExce...`. 242
UselessParentheses Useless parentheses around `exception = InterruptibleChannelUtil.handleExce...`. 269
UselessParentheses Useless parentheses around `exception = InterruptibleChannelUtil.handleExce...`. 304

org/newsclub/net/unix/AFSocketImpl.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_TIMEOUT' is already in scope because it is inherited by an enclosing type 545
UselessParentheses Useless parentheses around `core.isBlocking() ? 0 : NativeUnixSocket.OPT_NO...`. 662
UselessParentheses Useless parentheses around `core.isBlocking() ? 0 : NativeUnixSocket.OPT_NO...`. 856
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_REUSEADDR' is already in scope because it is inherited by an enclosing type 1081
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_KEEPALIVE' is already in scope because it is inherited by an enclosing type 1093
UselessParentheses Useless parentheses around `NativeUnixSocket.getSocketOptionInt(fdesc, optI...`. 1095
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'TCP_NODELAY' is already in scope because it is inherited by an enclosing type 1100
UselessParentheses Useless parentheses around `NativeUnixSocket.getSocketOptionInt(fdesc, optI...`. 1101
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_TIMEOUT' is already in scope because it is inherited by an enclosing type 1102
UselessParentheses Useless parentheses around `acceptTimeout == null ? 0 : acceptTimeout.get()`. 1109
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_LINGER' is already in scope because it is inherited by an enclosing type 1110
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_RCVBUF' is already in scope because it is inherited by an enclosing type 1111
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_SNDBUF' is already in scope because it is inherited by an enclosing type 1112
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'IP_TOS' is already in scope because it is inherited by an enclosing type 1114
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_BINDADDR' is already in scope because it is inherited by an enclosing type 1116
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_REUSEADDR' is already in scope because it is inherited by an enclosing type 1118
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_REUSEADDR' is already in scope because it is inherited by an enclosing type 1139
UselessParentheses Useless parentheses around `expectBoolean(value) != 0`. 1140
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'TCP_NODELAY' is already in scope because it is inherited by an enclosing type 1160
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_KEEPALIVE' is already in scope because it is inherited by an enclosing type 1161
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'TCP_NODELAY' is already in scope because it is inherited by an enclosing type 1181
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_LINGER' is already in scope because it is inherited by an enclosing type 1193
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_TIMEOUT' is already in scope because it is inherited by an enclosing type 1205
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_RCVBUF' is already in scope because it is inherited by an enclosing type 1222
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_SNDBUF' is already in scope because it is inherited by an enclosing type 1223
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_KEEPALIVE' is already in scope because it is inherited by an enclosing type 1226
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'TCP_NODELAY' is already in scope because it is inherited by an enclosing type 1233
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'IP_TOS' is already in scope because it is inherited by an enclosing type 1236
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_REUSEADDR' is already in scope because it is inherited by an enclosing type 1239
UselessParentheses Useless parentheses around `SHUT_RD`. 1271
UselessParentheses Useless parentheses around `SHUT_RD_WR`. 1284

org/newsclub/net/unix/AFTIPCSocketAddress.java

Rule Violation Line
UselessParentheses Useless parentheses around `i & 0xFFFFFFFFL`. 204
UselessParentheses Useless parentheses around `addr instanceof AFTIPCSocketAddress`. 626
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFTIPCSocketAddress': 'of' is already in scope 657

org/newsclub/net/unix/AFUNIXSocket.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSocket': 'supports' is already in scope 170
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFUNIXSocket': 'isSupported' is already in scope 185
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSocket': 'supports' is already in scope 190
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSocket': 'supports' is already in scope 193

org/newsclub/net/unix/AFUNIXSocketAddress.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFUNIXSocketAddress': 'of' is already in scope 70
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFUNIXSocketAddress': 'ofNewTempFile' is already in scope 90
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSocketAddress': 'resolveAddress' is already in scope 191
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFUNIXSocketAddress': 'of' is already in scope 392
UselessParentheses Useless parentheses around `(AFUNIXSocketAddress) addr`. 538

org/newsclub/net/unix/AFVSOCKSocketAddress.java

Rule Violation Line
UselessParentheses Useless parentheses around `addr instanceof AFVSOCKSocketAddress`. 342
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFVSOCKSocketAddress': 'of' is already in scope 371
UselessParentheses Useless parentheses around `port = getVSOCKPort()`. 515
UselessParentheses Useless parentheses around `cid = getVSOCKCID()`. 528

org/newsclub/net/unix/NativeLibraryLoader.java

Rule Violation Line
UselessParentheses Useless parentheses around `"Dalvik".equals(vmName) || vmSpecVendor.contain...`. 518

org/newsclub/net/unix/NativeUnixSocket.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'NativeUnixSocket': 'DOMAIN_GENERIC' is already in scope because it is declared in an enclosing type 135
UnnecessaryFullyQualifiedName Unnecessary qualifier 'NativeUnixSocket': 'DOMAIN_UNIX' is already in scope because it is declared in an enclosing type 137
UnnecessaryFullyQualifiedName Unnecessary qualifier 'NativeUnixSocket': 'DOMAIN_TIPC' is already in scope because it is declared in an enclosing type 139
UnnecessaryFullyQualifiedName Unnecessary qualifier 'NativeUnixSocket': 'DOMAIN_VSOCK' is already in scope because it is declared in an enclosing type 141
UnnecessaryFullyQualifiedName Unnecessary qualifier 'NativeUnixSocket': 'DOMAIN_SYSTEM' is already in scope because it is declared in an enclosing type 143

Files

org/newsclub/net/unix/AFAddressFamily.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFAddressFamily': 'triggerInit' is already in scope 4 127
EmptyCatchBlock Avoid empty catch blocks 3 150152

org/newsclub/net/unix/AFCore.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 9294
CollapsibleIfStatements This if statement could be combined with its parent 3 130132
EmptyControlStatement Empty if statement 3 400404

org/newsclub/net/unix/AFDatagramChannel.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `exception = InterruptibleChannelUtil.handleExce...`. 4 154
UselessParentheses Useless parentheses around `exception = InterruptibleChannelUtil.handleExce...`. 4 171
UselessParentheses Useless parentheses around `exception = InterruptibleChannelUtil.handleExce...`. 4 188
UselessParentheses Useless parentheses around `exception = InterruptibleChannelUtil.handleExce...`. 4 214

org/newsclub/net/unix/AFDatagramSocket.java

Rule Violation Priority Line
EmptyControlStatement Empty if statement 3 259261
CollapsibleIfStatements This if statement could be combined with its parent 3 259261
EmptyCatchBlock Avoid empty catch blocks 3 263265
CollapsibleIfStatements This if statement could be combined with its parent 3 276278
EmptyCatchBlock Avoid empty catch blocks 3 287289
EmptyControlStatement Empty if statement 3 291295
EmptyControlStatement Empty if statement 3 310315
EmptyCatchBlock Avoid empty catch blocks 3 359361

org/newsclub/net/unix/AFDatagramSocketImpl.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 546548
EmptyCatchBlock Avoid empty catch blocks 3 552554

org/newsclub/net/unix/AFGenericSocketAddress.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `addr instanceof AFGenericSocketAddress`. 4 154
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFGenericSocketAddress': 'of' is already in scope 4 174
EmptyCatchBlock Avoid empty catch blocks 3 194196

org/newsclub/net/unix/AFPipe.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.nio.channels': 'Pipe' is already in scope because it is imported in this file 4 90
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.nio.channels': 'Pipe' is already in scope because it is imported in this file 4 134

org/newsclub/net/unix/AFSYSTEMSocketAddress.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `addr instanceof AFSYSTEMSocketAddress`. 4 252
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSYSTEMSocketAddress': 'of' is already in scope 4 286
EmptyCatchBlock Avoid empty catch blocks 3 306308

org/newsclub/net/unix/AFSelector.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `rops == 0`. 4 254
EmptyControlStatement Empty else statement 3 353355
EmptyCatchBlock Avoid empty catch blocks 3 378381

org/newsclub/net/unix/AFServerSocket.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 527529
UselessParentheses Useless parentheses around `(Boolean) getAFImpl().getOption(SocketOptions.S...`. 4 641
UselessParentheses Useless parentheses around `getAFImpl().getOption(SocketOptions.SO_REUSEADDR)`. 4 641

org/newsclub/net/unix/AFServerSocketChannel.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `exception = InterruptibleChannelUtil.handleExce...`. 4 123

org/newsclub/net/unix/AFSocket.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `AFSocketCapability.CAPABILITY_FD_AS_REDIRECT.ge...`. 4 396
UselessParentheses Useless parentheses around `cap.getBitmask()`. 4 401
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSocket': 'supports' is already in scope 4 458
EmptyCatchBlock Avoid empty catch blocks 3 500502
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSocket': 'supports' is already in scope 4 599

org/newsclub/net/unix/AFSocketAddress.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSocketAddress': 'newSockAddrDirectBuffer' is already in scope 4 81
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSocketAddress': 'craftSerializedObject' is already in scope 4 201
UselessParentheses Useless parentheses around `port >= 0 && port <= 0xffff ? port : 0`. 4 202203
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSocketAddress': 'unwrap' is already in scope 4 382
CollapsibleIfStatements This if statement could be combined with its parent 3 421432
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSocketAddress': 'resolveAddress' is already in scope 4 596
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSocketAddress': 'mapOrFail' is already in scope 4 682
UselessParentheses Useless parentheses around `nativeAddress.get(SOCKADDR_NATIVE_FAMILY_OFFSET...`. 4 868
UselessParentheses Useless parentheses around `targetAddressClass.isAssignableFrom(afAddr.getC...`. 4 1035

org/newsclub/net/unix/AFSocketChannel.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `exception = InterruptibleChannelUtil.handleExce...`. 4 215
UselessParentheses Useless parentheses around `exception = InterruptibleChannelUtil.handleExce...`. 4 242
UselessParentheses Useless parentheses around `exception = InterruptibleChannelUtil.handleExce...`. 4 269
UselessParentheses Useless parentheses around `exception = InterruptibleChannelUtil.handleExce...`. 4 304

org/newsclub/net/unix/AFSocketCore.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 146148

org/newsclub/net/unix/AFSocketImpl.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 116118
EmptyCatchBlock Avoid empty catch blocks 3 138140
EmptyCatchBlock Avoid empty catch blocks 3 144146
EmptyCatchBlock Avoid empty catch blocks 3 147149
EmptyCatchBlock Avoid empty catch blocks 3 154156
CollapsibleIfStatements This if statement could be combined with its parent 3 275278
EmptyCatchBlock Avoid empty catch blocks 3 333335
EmptyCatchBlock Avoid empty catch blocks 3 339341
EmptyCatchBlock Avoid empty catch blocks 3 434436
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_TIMEOUT' is already in scope because it is inherited by an enclosing type 4 545
CollapsibleIfStatements This if statement could be combined with its parent 3 560563
UselessParentheses Useless parentheses around `core.isBlocking() ? 0 : NativeUnixSocket.OPT_NO...`. 4 662
UselessParentheses Useless parentheses around `core.isBlocking() ? 0 : NativeUnixSocket.OPT_NO...`. 4 856
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_REUSEADDR' is already in scope because it is inherited by an enclosing type 4 1081
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_KEEPALIVE' is already in scope because it is inherited by an enclosing type 4 1093
UselessParentheses Useless parentheses around `NativeUnixSocket.getSocketOptionInt(fdesc, optI...`. 4 1095
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'TCP_NODELAY' is already in scope because it is inherited by an enclosing type 4 1100
UselessParentheses Useless parentheses around `NativeUnixSocket.getSocketOptionInt(fdesc, optI...`. 4 1101
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_TIMEOUT' is already in scope because it is inherited by an enclosing type 4 1102
UselessParentheses Useless parentheses around `acceptTimeout == null ? 0 : acceptTimeout.get()`. 4 1109
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_LINGER' is already in scope because it is inherited by an enclosing type 4 1110
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_RCVBUF' is already in scope because it is inherited by an enclosing type 4 1111
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_SNDBUF' is already in scope because it is inherited by an enclosing type 4 1112
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'IP_TOS' is already in scope because it is inherited by an enclosing type 4 1114
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_BINDADDR' is already in scope because it is inherited by an enclosing type 4 1116
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_REUSEADDR' is already in scope because it is inherited by an enclosing type 4 1118
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_REUSEADDR' is already in scope because it is inherited by an enclosing type 4 1139
UselessParentheses Useless parentheses around `expectBoolean(value) != 0`. 4 1140
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'TCP_NODELAY' is already in scope because it is inherited by an enclosing type 4 1160
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_KEEPALIVE' is already in scope because it is inherited by an enclosing type 4 1161
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'TCP_NODELAY' is already in scope because it is inherited by an enclosing type 4 1181
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_LINGER' is already in scope because it is inherited by an enclosing type 4 1193
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_TIMEOUT' is already in scope because it is inherited by an enclosing type 4 1205
EmptyCatchBlock Avoid empty catch blocks 3 12091211
EmptyCatchBlock Avoid empty catch blocks 3 12141216
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_RCVBUF' is already in scope because it is inherited by an enclosing type 4 1222
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_SNDBUF' is already in scope because it is inherited by an enclosing type 4 1223
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_KEEPALIVE' is already in scope because it is inherited by an enclosing type 4 1226
EmptyCatchBlock Avoid empty catch blocks 3 12291231
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'TCP_NODELAY' is already in scope because it is inherited by an enclosing type 4 1233
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'IP_TOS' is already in scope because it is inherited by an enclosing type 4 1236
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_REUSEADDR' is already in scope because it is inherited by an enclosing type 4 1239
UselessParentheses Useless parentheses around `SHUT_RD`. 4 1271
UselessParentheses Useless parentheses around `SHUT_RD_WR`. 4 1284

org/newsclub/net/unix/AFTIPCSocketAddress.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `i & 0xFFFFFFFFL`. 4 204
UselessParentheses Useless parentheses around `addr instanceof AFTIPCSocketAddress`. 4 626
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFTIPCSocketAddress': 'of' is already in scope 4 657
EmptyCatchBlock Avoid empty catch blocks 3 677679

org/newsclub/net/unix/AFUNIXSocket.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSocket': 'supports' is already in scope 4 170
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFUNIXSocket': 'isSupported' is already in scope 4 185
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSocket': 'supports' is already in scope 4 190
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSocket': 'supports' is already in scope 4 193
UnnecessaryReturn Unnecessary return statement 3 258

org/newsclub/net/unix/AFUNIXSocketAddress.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFUNIXSocketAddress': 'of' is already in scope 4 70
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFUNIXSocketAddress': 'ofNewTempFile' is already in scope 4 90
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSocketAddress': 'resolveAddress' is already in scope 4 191
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFUNIXSocketAddress': 'of' is already in scope 4 392
EmptyControlStatement Empty if statement 3 443447
UselessParentheses Useless parentheses around `(AFUNIXSocketAddress) addr`. 4 538

org/newsclub/net/unix/AFVSOCKSocketAddress.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `addr instanceof AFVSOCKSocketAddress`. 4 342
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFVSOCKSocketAddress': 'of' is already in scope 4 371
EmptyCatchBlock Avoid empty catch blocks 3 391393
UselessParentheses Useless parentheses around `port = getVSOCKPort()`. 4 515
UselessParentheses Useless parentheses around `cid = getVSOCKCID()`. 4 528

org/newsclub/net/unix/AncillaryDataSupport.java

Rule Violation Priority Line
UnnecessaryReturn Unnecessary return statement 3 89
EmptyCatchBlock Avoid empty catch blocks 3 134136
EmptyCatchBlock Avoid empty catch blocks 3 201203

org/newsclub/net/unix/HostAndPort.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 216218

org/newsclub/net/unix/InterruptibleChannelUtil.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 5861
CollapsibleIfStatements This if statement could be combined with its parent 3 116118
CollapsibleIfStatements This if statement could be combined with its parent 3 128130

org/newsclub/net/unix/MapValueSet.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 169171

org/newsclub/net/unix/NativeLibraryLoader.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 281283
EmptyCatchBlock Avoid empty catch blocks 3 394396
UselessParentheses Useless parentheses around `"Dalvik".equals(vmName) || vmSpecVendor.contain...`. 4 518

org/newsclub/net/unix/NativeUnixSocket.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'NativeUnixSocket': 'DOMAIN_GENERIC' is already in scope because it is declared in an enclosing type 4 135
UnnecessaryFullyQualifiedName Unnecessary qualifier 'NativeUnixSocket': 'DOMAIN_UNIX' is already in scope because it is declared in an enclosing type 4 137
UnnecessaryFullyQualifiedName Unnecessary qualifier 'NativeUnixSocket': 'DOMAIN_TIPC' is already in scope because it is declared in an enclosing type 4 139
UnnecessaryFullyQualifiedName Unnecessary qualifier 'NativeUnixSocket': 'DOMAIN_VSOCK' is already in scope because it is declared in an enclosing type 4 141
UnnecessaryFullyQualifiedName Unnecessary qualifier 'NativeUnixSocket': 'DOMAIN_SYSTEM' is already in scope because it is declared in an enclosing type 4 143
EmptyCatchBlock Avoid empty catch blocks 3 160163
EmptyCatchBlock Avoid empty catch blocks 3 206208

org/newsclub/net/unix/RAFChannelProvider.java

Rule Violation Priority Line
EmptyControlStatement Empty if statement 3 6062
EmptyControlStatement Empty if statement 3 8991
EmptyCatchBlock Avoid empty catch blocks 3 104106

org/newsclub/net/unix/VirtualThreadPollerNaive.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 100103
CollapsibleIfStatements This if statement could be combined with its parent 3 155157

org/newsclub/net/unix/pool/ConcurrentQueueObjectPool.java

Rule Violation Priority Line
EmptyControlStatement Empty if statement 3 8896
EmptyControlStatement Empty if statement 3 9096

Suppressed Violations

Filename Rule message Suppression type Reason
org/newsclub/net/unix/AFAddressFamily.java Avoid empty catch blocks //nopmd .AvoidCatchingGenericException
org/newsclub/net/unix/AFCore.java Avoid using a branching statement as the last in a loop. //nopmd .AvoidBranchingStatementAsLastInLoop virtualThreadLoop
org/newsclub/net/unix/AFCore.java Avoid using a branching statement as the last in a loop. //nopmd .AvoidBranchingStatementAsLastInLoop virtualThreadLoop
org/newsclub/net/unix/AFDatagramSocketImpl.java Avoid using a branching statement as the last in a loop. //nopmd .AvoidBranchingStatementAsLastInLoop virtualThreadLoop
org/newsclub/net/unix/AFDatagramSocketImpl.java Avoid using a branching statement as the last in a loop. //nopmd .AvoidBranchingStatementAsLastInLoop virtualThreadLoop
org/newsclub/net/unix/AFGenericSocket.java Avoid unused private methods such as 'getStaticImplExtensions()'. @suppresswarnings
org/newsclub/net/unix/AFSelector.java Avoid using a branching statement as the last in a loop. //nopmd .AvoidBranchingStatementAsLastInLoop virtualThreadLoop
org/newsclub/net/unix/AFServerSocketChannel.java Unnecessary qualifier 'Objects': 'requireNonNull' is already in scope @suppresswarnings
org/newsclub/net/unix/AFSocketChannel.java Unnecessary qualifier 'Objects': 'requireNonNull' is already in scope @suppresswarnings
org/newsclub/net/unix/AFSocketImpl.java Avoid using a branching statement as the last in a loop. //nopmd .AvoidBranchingStatementAsLastInLoop virtualThreadLoop
org/newsclub/net/unix/AFSocketImpl.java Avoid using a branching statement as the last in a loop. //nopmd .AvoidBranchingStatementAsLastInLoop virtualThreadLoop
org/newsclub/net/unix/AFSocketImpl.java Avoid using a branching statement as the last in a loop. //nopmd .AvoidBranchingStatementAsLastInLoop virtualThreadLoop
org/newsclub/net/unix/AFSocketImpl.java Avoid using a branching statement as the last in a loop. //nopmd .AvoidBranchingStatementAsLastInLoop virtualThreadLoop
org/newsclub/net/unix/AFUNIXSocketCredentials.java Do not call pure method getClientHost if the result is not used. //nopmd .UselessPureMethodCall
org/newsclub/net/unix/AFVSOCKSocketImplExtensions.java Avoid unused private fields such as 'ancillaryDataSupport'. @suppresswarnings
org/newsclub/net/unix/NativeLibraryLoader.java Avoid using a branching statement as the last in a loop. //nopmd .AvoidBranchingStatementAsLastInLoop
org/newsclub/net/unix/NativeUnixSocket.java Avoid integer literals that start with zero (interpreted as octal), remove the leading 0 to get a decimal literal (or use explicit 0x, 0b prefixes) //nopmd .AvoidUsingOctalValues
org/newsclub/net/unix/NativeUnixSocket.java Avoid integer literals that start with zero (interpreted as octal), remove the leading 0 to get a decimal literal (or use explicit 0x, 0b prefixes) //nopmd .AvoidUsingOctalValues
org/newsclub/net/unix/NativeUnixSocket.java Avoid integer literals that start with zero (interpreted as octal), remove the leading 0 to get a decimal literal (or use explicit 0x, 0b prefixes) //nopmd .AvoidUsingOctalValues
org/newsclub/net/unix/NativeUnixSocket.java Avoid integer literals that start with zero (interpreted as octal), remove the leading 0 to get a decimal literal (or use explicit 0x, 0b prefixes) //nopmd .AvoidUsingOctalValues

Processing Errors

Filename Problem
module-info.java ParseException: Parse exception in file '/Users/ck/Entwicklung/workspace/junixsocket/junixsocket-common/src/main/java/module-info.java' at line 4, column 36: 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-common/src/main/java/module-info.java' at line 4, column 36: 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)