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

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 104106
EmptyCatchBlock Avoid empty catch blocks 148150

org/newsclub/net/unix/AFCore.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 9496
CollapsibleIfStatements This if statement could be combined with its parent 132134
EmptyControlStatement Empty if statement 404408

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
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 552554
EmptyCatchBlock Avoid empty catch blocks 558560

org/newsclub/net/unix/AFGenericSocketAddress.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 195197

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 346348
EmptyCatchBlock Avoid empty catch blocks 371374

org/newsclub/net/unix/AFServerSocket.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 517519

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 401412

org/newsclub/net/unix/AFSocketCore.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 145147

org/newsclub/net/unix/AFSocketImpl.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 115117
EmptyCatchBlock Avoid empty catch blocks 137139
EmptyCatchBlock Avoid empty catch blocks 143145
EmptyCatchBlock Avoid empty catch blocks 146148
EmptyCatchBlock Avoid empty catch blocks 153155
CollapsibleIfStatements This if statement could be combined with its parent 274277
EmptyCatchBlock Avoid empty catch blocks 331333
EmptyCatchBlock Avoid empty catch blocks 337339
EmptyCatchBlock Avoid empty catch blocks 432434
EmptyCatchBlock Avoid empty catch blocks 11721174
EmptyCatchBlock Avoid empty catch blocks 11771179
EmptyCatchBlock Avoid empty catch blocks 11921194

org/newsclub/net/unix/AFTIPCSocketAddress.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 681683

org/newsclub/net/unix/AFUNIXSocket.java

Rule Violation Line
UnnecessaryReturn Unnecessary return statement 255

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 92
EmptyCatchBlock Avoid empty catch blocks 137139
EmptyCatchBlock Avoid empty catch blocks 204206

org/newsclub/net/unix/HostAndPort.java

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

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 153155

org/newsclub/net/unix/RAFChannelProvider.java

Rule Violation Line
EmptyControlStatement Empty if statement 4749
EmptyControlStatement Empty if statement 7678

org/newsclub/net/unix/VirtualThreadPollerNaive.java

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

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 125

org/newsclub/net/unix/AFDatagramChannel.java

Rule Violation Line
UselessParentheses Useless parentheses. 154
UselessParentheses Useless parentheses. 171
UselessParentheses Useless parentheses. 188
UselessParentheses Useless parentheses. 214

org/newsclub/net/unix/AFGenericSocketAddress.java

Rule Violation Line
UselessParentheses Useless parentheses. 155
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFGenericSocketAddress': 'of' is already in scope 175

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. 252
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSYSTEMSocketAddress': 'of' is already in scope 286

org/newsclub/net/unix/AFServerSocket.java

Rule Violation Line
UselessParentheses Useless parentheses. 631
UselessParentheses Useless parentheses. 631

org/newsclub/net/unix/AFServerSocketChannel.java

Rule Violation Line
UselessParentheses Useless parentheses. 122

org/newsclub/net/unix/AFSocket.java

Rule Violation Line
UselessParentheses Useless parentheses. 396
UselessParentheses Useless parentheses. 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 204
UselessParentheses Useless parentheses. 205206
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSocketAddress': 'unwrap' is already in scope 385
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSocketAddress': 'resolveAddress' is already in scope 576
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSocketAddress': 'mapOrFail' is already in scope 662
UselessParentheses Useless parentheses. 848
UselessParentheses Useless parentheses. 1016

org/newsclub/net/unix/AFSocketChannel.java

Rule Violation Line
UselessParentheses Useless parentheses. 214
UselessParentheses Useless parentheses. 241
UselessParentheses Useless parentheses. 268
UselessParentheses Useless parentheses. 303

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 517
UselessParentheses Useless parentheses. 625
UselessParentheses Useless parentheses. 819
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_REUSEADDR' is already in scope because it is inherited by an enclosing type 1044
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_KEEPALIVE' is already in scope because it is inherited by an enclosing type 1056
UselessParentheses Useless parentheses. 1058
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'TCP_NODELAY' is already in scope because it is inherited by an enclosing type 1063
UselessParentheses Useless parentheses. 1064
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_TIMEOUT' is already in scope because it is inherited by an enclosing type 1065
UselessParentheses Useless parentheses. 1072
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_LINGER' is already in scope because it is inherited by an enclosing type 1073
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_RCVBUF' is already in scope because it is inherited by an enclosing type 1074
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_SNDBUF' is already in scope because it is inherited by an enclosing type 1075
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'IP_TOS' is already in scope because it is inherited by an enclosing type 1077
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_BINDADDR' is already in scope because it is inherited by an enclosing type 1079
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_REUSEADDR' is already in scope because it is inherited by an enclosing type 1081
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_REUSEADDR' is already in scope because it is inherited by an enclosing type 1102
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'TCP_NODELAY' is already in scope because it is inherited by an enclosing type 1123
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_KEEPALIVE' is already in scope because it is inherited by an enclosing type 1124
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'TCP_NODELAY' is already in scope because it is inherited by an enclosing type 1144
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_LINGER' is already in scope because it is inherited by an enclosing type 1156
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_TIMEOUT' is already in scope because it is inherited by an enclosing type 1168
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_RCVBUF' is already in scope because it is inherited by an enclosing type 1185
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_SNDBUF' is already in scope because it is inherited by an enclosing type 1186
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_KEEPALIVE' is already in scope because it is inherited by an enclosing type 1189
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'TCP_NODELAY' is already in scope because it is inherited by an enclosing type 1196
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'IP_TOS' is already in scope because it is inherited by an enclosing type 1199
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_REUSEADDR' is already in scope because it is inherited by an enclosing type 1202
UselessParentheses Useless parentheses. 1234
UselessParentheses Useless parentheses. 1247

org/newsclub/net/unix/AFTIPCSocketAddress.java

Rule Violation Line
UselessParentheses Useless parentheses. 201
UselessParentheses Useless parentheses. 630
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFTIPCSocketAddress': 'of' is already in scope 661

org/newsclub/net/unix/AFUNIXSocket.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSocket': 'supports' is already in scope 167
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFUNIXSocket': 'isSupported' is already in scope 182
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSocket': 'supports' is already in scope 187
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSocket': 'supports' is already in scope 190

org/newsclub/net/unix/AFUNIXSocketAddress.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFUNIXSocketAddress': 'of' is already in scope 67
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFUNIXSocketAddress': 'ofNewTempFile' is already in scope 87
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSocketAddress': 'resolveAddress' is already in scope 188
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFUNIXSocketAddress': 'of' is already in scope 392
UselessParentheses Useless parentheses. 538

org/newsclub/net/unix/AFVSOCKSocketAddress.java

Rule Violation Line
UselessParentheses Useless parentheses. 342
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFVSOCKSocketAddress': 'of' is already in scope 371
UselessParentheses Useless parentheses. 518
UselessParentheses Useless parentheses. 531

org/newsclub/net/unix/NativeLibraryLoader.java

Rule Violation Line
UselessParentheses Useless parentheses. 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 101
UnnecessaryFullyQualifiedName Unnecessary qualifier 'NativeUnixSocket': 'DOMAIN_UNIX' is already in scope because it is declared in an enclosing type 103
UnnecessaryFullyQualifiedName Unnecessary qualifier 'NativeUnixSocket': 'DOMAIN_TIPC' is already in scope because it is declared in an enclosing type 105
UnnecessaryFullyQualifiedName Unnecessary qualifier 'NativeUnixSocket': 'DOMAIN_VSOCK' is already in scope because it is declared in an enclosing type 107
UnnecessaryFullyQualifiedName Unnecessary qualifier 'NativeUnixSocket': 'DOMAIN_SYSTEM' is already in scope because it is declared in an enclosing type 109

Files

org/newsclub/net/unix/AFAddressFamily.java

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

org/newsclub/net/unix/AFCore.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 9496
CollapsibleIfStatements This if statement could be combined with its parent 3 132134
EmptyControlStatement Empty if statement 3 404408

org/newsclub/net/unix/AFDatagramChannel.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 154
UselessParentheses Useless parentheses. 4 171
UselessParentheses Useless parentheses. 4 188
UselessParentheses Useless parentheses. 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
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 552554
EmptyCatchBlock Avoid empty catch blocks 3 558560

org/newsclub/net/unix/AFGenericSocketAddress.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 155
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFGenericSocketAddress': 'of' is already in scope 4 175
EmptyCatchBlock Avoid empty catch blocks 3 195197

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. 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
EmptyControlStatement Empty else statement 3 346348
EmptyCatchBlock Avoid empty catch blocks 3 371374

org/newsclub/net/unix/AFServerSocket.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 517519
UselessParentheses Useless parentheses. 4 631
UselessParentheses Useless parentheses. 4 631

org/newsclub/net/unix/AFServerSocketChannel.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 122

org/newsclub/net/unix/AFSocket.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 396
UselessParentheses Useless parentheses. 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 204
UselessParentheses Useless parentheses. 4 205206
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSocketAddress': 'unwrap' is already in scope 4 385
CollapsibleIfStatements This if statement could be combined with its parent 3 401412
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSocketAddress': 'resolveAddress' is already in scope 4 576
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSocketAddress': 'mapOrFail' is already in scope 4 662
UselessParentheses Useless parentheses. 4 848
UselessParentheses Useless parentheses. 4 1016

org/newsclub/net/unix/AFSocketChannel.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 214
UselessParentheses Useless parentheses. 4 241
UselessParentheses Useless parentheses. 4 268
UselessParentheses Useless parentheses. 4 303

org/newsclub/net/unix/AFSocketCore.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 145147

org/newsclub/net/unix/AFSocketImpl.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 115117
EmptyCatchBlock Avoid empty catch blocks 3 137139
EmptyCatchBlock Avoid empty catch blocks 3 143145
EmptyCatchBlock Avoid empty catch blocks 3 146148
EmptyCatchBlock Avoid empty catch blocks 3 153155
CollapsibleIfStatements This if statement could be combined with its parent 3 274277
EmptyCatchBlock Avoid empty catch blocks 3 331333
EmptyCatchBlock Avoid empty catch blocks 3 337339
EmptyCatchBlock Avoid empty catch blocks 3 432434
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_TIMEOUT' is already in scope because it is inherited by an enclosing type 4 517
UselessParentheses Useless parentheses. 4 625
UselessParentheses Useless parentheses. 4 819
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_REUSEADDR' is already in scope because it is inherited by an enclosing type 4 1044
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_KEEPALIVE' is already in scope because it is inherited by an enclosing type 4 1056
UselessParentheses Useless parentheses. 4 1058
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'TCP_NODELAY' is already in scope because it is inherited by an enclosing type 4 1063
UselessParentheses Useless parentheses. 4 1064
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_TIMEOUT' is already in scope because it is inherited by an enclosing type 4 1065
UselessParentheses Useless parentheses. 4 1072
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_LINGER' is already in scope because it is inherited by an enclosing type 4 1073
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_RCVBUF' is already in scope because it is inherited by an enclosing type 4 1074
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_SNDBUF' is already in scope because it is inherited by an enclosing type 4 1075
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'IP_TOS' is already in scope because it is inherited by an enclosing type 4 1077
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_BINDADDR' is already in scope because it is inherited by an enclosing type 4 1079
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_REUSEADDR' is already in scope because it is inherited by an enclosing type 4 1102
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'TCP_NODELAY' is already in scope because it is inherited by an enclosing type 4 1123
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_KEEPALIVE' is already in scope because it is inherited by an enclosing type 4 1124
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'TCP_NODELAY' is already in scope because it is inherited by an enclosing type 4 1144
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_LINGER' is already in scope because it is inherited by an enclosing type 4 1156
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_TIMEOUT' is already in scope because it is inherited by an enclosing type 4 1168
EmptyCatchBlock Avoid empty catch blocks 3 11721174
EmptyCatchBlock Avoid empty catch blocks 3 11771179
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_RCVBUF' is already in scope because it is inherited by an enclosing type 4 1185
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_SNDBUF' is already in scope because it is inherited by an enclosing type 4 1186
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_KEEPALIVE' is already in scope because it is inherited by an enclosing type 4 1189
EmptyCatchBlock Avoid empty catch blocks 3 11921194
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'TCP_NODELAY' is already in scope because it is inherited by an enclosing type 4 1196
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'IP_TOS' is already in scope because it is inherited by an enclosing type 4 1199
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SocketOptions': 'SO_REUSEADDR' is already in scope because it is inherited by an enclosing type 4 1202
UselessParentheses Useless parentheses. 4 1234
UselessParentheses Useless parentheses. 4 1247

org/newsclub/net/unix/AFTIPCSocketAddress.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 201
UselessParentheses Useless parentheses. 4 630
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFTIPCSocketAddress': 'of' is already in scope 4 661
EmptyCatchBlock Avoid empty catch blocks 3 681683

org/newsclub/net/unix/AFUNIXSocket.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSocket': 'supports' is already in scope 4 167
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFUNIXSocket': 'isSupported' is already in scope 4 182
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSocket': 'supports' is already in scope 4 187
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSocket': 'supports' is already in scope 4 190
UnnecessaryReturn Unnecessary return statement 3 255

org/newsclub/net/unix/AFUNIXSocketAddress.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFUNIXSocketAddress': 'of' is already in scope 4 67
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFUNIXSocketAddress': 'ofNewTempFile' is already in scope 4 87
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFSocketAddress': 'resolveAddress' is already in scope 4 188
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFUNIXSocketAddress': 'of' is already in scope 4 392
EmptyControlStatement Empty if statement 3 443447
UselessParentheses Useless parentheses. 4 538

org/newsclub/net/unix/AFVSOCKSocketAddress.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 342
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AFVSOCKSocketAddress': 'of' is already in scope 4 371
EmptyCatchBlock Avoid empty catch blocks 3 391393
UselessParentheses Useless parentheses. 4 518
UselessParentheses Useless parentheses. 4 531

org/newsclub/net/unix/AncillaryDataSupport.java

Rule Violation Priority Line
UnnecessaryReturn Unnecessary return statement 3 92
EmptyCatchBlock Avoid empty catch blocks 3 137139
EmptyCatchBlock Avoid empty catch blocks 3 204206

org/newsclub/net/unix/HostAndPort.java

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

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. 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 101
UnnecessaryFullyQualifiedName Unnecessary qualifier 'NativeUnixSocket': 'DOMAIN_UNIX' is already in scope because it is declared in an enclosing type 4 103
UnnecessaryFullyQualifiedName Unnecessary qualifier 'NativeUnixSocket': 'DOMAIN_TIPC' is already in scope because it is declared in an enclosing type 4 105
UnnecessaryFullyQualifiedName Unnecessary qualifier 'NativeUnixSocket': 'DOMAIN_VSOCK' is already in scope because it is declared in an enclosing type 4 107
UnnecessaryFullyQualifiedName Unnecessary qualifier 'NativeUnixSocket': 'DOMAIN_SYSTEM' is already in scope because it is declared in an enclosing type 4 109
EmptyCatchBlock Avoid empty catch blocks 3 153155

org/newsclub/net/unix/RAFChannelProvider.java

Rule Violation Priority Line
EmptyControlStatement Empty if statement 3 4749
EmptyControlStatement Empty if statement 3 7678

org/newsclub/net/unix/VirtualThreadPollerNaive.java

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

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/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/AFDatagramSocket.java This if statement could be combined with its parent //nopmd
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/AFGenericSocketImplExtensions.java Avoid unused constructor parameters such as 'ancillaryDataSupport'. @suppresswarnings
org/newsclub/net/unix/AFSYSTEMSocketImplExtensions.java Avoid unused constructor parameters such as 'ancillaryDataSupport'. @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/AFSocketAddress.java Avoid unused constructor parameters such as 'clazz'. @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/NativeLibraryLoader.java Avoid using a branching statement as the last in a loop. //nopmd .AvoidBranchingStatementAsLastInLoop

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 5, 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-common/src/main/java/module-info.java' at line 5, 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)