PMD Results

The following document contains the results of PMD 6.55.0.

Violations By Priority

Priority 2

org/bouncycastle/crypto/params/DESParameters.java
Rule Violation Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 102

Priority 3

org/bouncycastle/crypto/BlockCipher.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'init': the method is declared in an interface type 4041
UnnecessaryModifier Unnecessary modifier 'public' on method 'getAlgorithmName': the method is declared in an interface type 48
UnnecessaryModifier Unnecessary modifier 'public' on method 'getBlockSize': the method is declared in an interface type 55
UnnecessaryModifier Unnecessary modifier 'public' on method 'processBlock': the method is declared in an interface type 7071
UnnecessaryModifier Unnecessary modifier 'public' on method 'reset': the method is declared in an interface type 77
org/bouncycastle/crypto/Digest.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getAlgorithmName': the method is declared in an interface type 35
UnnecessaryModifier Unnecessary modifier 'public' on method 'getDigestSize': the method is declared in an interface type 42
UnnecessaryModifier Unnecessary modifier 'public' on method 'update': the method is declared in an interface type 49
UnnecessaryModifier Unnecessary modifier 'public' on method 'update': the method is declared in an interface type 58
UnnecessaryModifier Unnecessary modifier 'public' on method 'doFinal': the method is declared in an interface type 67
UnnecessaryModifier Unnecessary modifier 'public' on method 'reset': the method is declared in an interface type 72
org/bouncycastle/crypto/engines/AESEngine.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'unpackBlock': private methods cannot be overridden 429454
UnnecessaryModifier Unnecessary modifier 'final' on method 'packBlock': private methods cannot be overridden 456481
UnnecessaryModifier Unnecessary modifier 'final' on method 'encryptBlock': private methods cannot be overridden 484516
UnnecessaryModifier Unnecessary modifier 'final' on method 'decryptBlock': private methods cannot be overridden 518549
org/bouncycastle/crypto/engines/DESEngine.java
Rule Violation Line
AvoidUsingOctalValues Do not start a literal by 0 unless its an octal value 125
AvoidUsingOctalValues Do not start a literal by 0 unless its an octal value 125
AvoidUsingOctalValues Do not start a literal by 0 unless its an octal value 125
AvoidUsingOctalValues Do not start a literal by 0 unless its an octal value 125
AvoidUsingOctalValues Do not start a literal by 0 unless its an octal value 125
org/sentrysoftware/snmp/client/SnmpClient.java
Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 132136
CollapsibleIfStatements These nested if statements could be combined 133135
CollapsibleIfStatements These nested if statements could be combined 140144
CollapsibleIfStatements These nested if statements could be combined 141143
uk/co/westhawk/snmp/beans/AnnexModemStatusBean.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 130
UnusedPrivateField Avoid unused private fields such as 'deviceType'. 243
UnusedPrivateField Avoid unused private fields such as 'openCount'. 244
UnusedPrivateField Avoid unused private fields such as 'modemStatus'. 245
UnnecessarySemicolon Unnecessary semicolon 513
PrimitiveWrapperInstantiation Do not use `new Long(...)`, prefer `Long.valueOf(...)` 546
PrimitiveWrapperInstantiation Do not use `new Long(...)`, prefer `Long.valueOf(...)` 644
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 646
uk/co/westhawk/snmp/beans/AscendActiveSessionBean.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 94
UnusedPrivateField Avoid unused private fields such as 'none'. 130
UnusedPrivateField Avoid unused private fields such as 'other'. 131
UnusedPrivateField Avoid unused private fields such as 'ppp'. 132
UnusedPrivateField Avoid unused private fields such as 'slip'. 133
UnusedPrivateField Avoid unused private fields such as 'mpp'. 134
UnusedPrivateField Avoid unused private fields such as 'x25'. 135
UnusedPrivateField Avoid unused private fields such as 'combinet'. 136
UnusedPrivateField Avoid unused private fields such as 'frameRelay'. 137
UnusedPrivateField Avoid unused private fields such as 'euraw'. 138
UnusedPrivateField Avoid unused private fields such as 'euui'. 139
UnusedPrivateField Avoid unused private fields such as 'telnet'. 140
UnusedPrivateField Avoid unused private fields such as 'telnetBinary'. 141
UnusedPrivateField Avoid unused private fields such as 'rawTcp'. 142
UnusedPrivateField Avoid unused private fields such as 'terminalServer'. 143
UnusedPrivateField Avoid unused private fields such as 'mp'. 144
UnusedPrivateField Avoid unused private fields such as 'virtualConnect'. 145
UnusedPrivateField Avoid unused private fields such as 'dchannelX25'. 146
UnusedPrivateField Avoid unused private fields such as 'dtpt'. 147
AvoidUsingHardCodedIP Do not hard code the IP address 179
AvoidUsingHardCodedIP Do not hard code the IP address 180
UnnecessarySemicolon Unnecessary semicolon 334
uk/co/westhawk/snmp/beans/DialogChannelStatusBean.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 117
UnnecessarySemicolon Unnecessary semicolon 508
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 541
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 550
uk/co/westhawk/snmp/beans/InterfaceIndexesBean.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 93
UnnecessarySemicolon Unnecessary semicolon 236
uk/co/westhawk/snmp/beans/IsHostReachableBean.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 85
PrimitiveWrapperInstantiation Do not use `new Boolean(...)`, prefer `Boolean.valueOf` 189
PrimitiveWrapperInstantiation Do not use `new Boolean(...)`, prefer `Boolean.valueOf` 190
uk/co/westhawk/snmp/beans/NTPrintQBean.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 90
UnnecessarySemicolon Unnecessary semicolon 260
UnusedLocalVariable Avoid unused local variables such as 'hashKey'. 277
uk/co/westhawk/snmp/beans/NTServiceNamesBean.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 90
UnnecessarySemicolon Unnecessary semicolon 262
UnusedLocalVariable Avoid unused local variables such as 'hashKey'. 279
uk/co/westhawk/snmp/beans/NTSharedResBean.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 90
UnnecessarySemicolon Unnecessary semicolon 265
UnusedLocalVariable Avoid unused local variables such as 'hashKey'. 282
uk/co/westhawk/snmp/beans/NTUserNamesBean.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 90
UnnecessarySemicolon Unnecessary semicolon 257
UnusedLocalVariable Avoid unused local variables such as 'hashKey'. 274
uk/co/westhawk/snmp/beans/NcdPerfDataBean.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 106
EmptyCatchBlock Avoid empty catch blocks 239241
UnnecessarySemicolon Unnecessary semicolon 414
PrimitiveWrapperInstantiation Do not use `new Long(...)`, prefer `Long.valueOf(...)` 588
PrimitiveWrapperInstantiation Do not use `new Long(...)`, prefer `Long.valueOf(...)` 589
UnusedLocalVariable Avoid unused local variables such as 'i'. 791
UnusedLocalVariable Avoid unused local variables such as 'n'. 792
UnusedPrivateField Avoid unused private fields such as 'memory'. 841
PrimitiveWrapperInstantiation Do not use `new Long(...)`, prefer `Long.valueOf(...)` 883
PrimitiveWrapperInstantiation Do not use `new Long(...)`, prefer `Long.valueOf(...)` 884
uk/co/westhawk/snmp/beans/OneInterfaceBean.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 86
UnnecessarySemicolon Unnecessary semicolon 258
uk/co/westhawk/snmp/beans/OneNTPrintQBean.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 91
UnnecessarySemicolon Unnecessary semicolon 261
uk/co/westhawk/snmp/beans/OneNTServiceBean.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 91
UnnecessarySemicolon Unnecessary semicolon 330
uk/co/westhawk/snmp/beans/OneNTSharedResBean.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 91
UnnecessarySemicolon Unnecessary semicolon 274
uk/co/westhawk/snmp/beans/SNMPBean.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 128
EmptyCatchBlock Avoid empty catch blocks 268270
uk/co/westhawk/snmp/beans/SNMPRunBean.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 89
EmptyCatchBlock Avoid empty catch blocks 161163
uk/co/westhawk/snmp/beans/UsmBeingDiscoveredBean.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 90
uk/co/westhawk/snmp/beans/UsmDiscoveryBean.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 76
uk/co/westhawk/snmp/event/DecodedPduEvent.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 63
uk/co/westhawk/snmp/event/RawPduEvent.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 64
uk/co/westhawk/snmp/event/RawPduListener.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'version_id': the field is declared in an interface type 6162
UnnecessaryModifier Unnecessary modifier 'public' on method 'rawPduReceived': the method is declared in an interface type 68
uk/co/westhawk/snmp/event/RequestPduEvent.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 70
uk/co/westhawk/snmp/event/RequestPduListener.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'version_id': the field is declared in an interface type 6162
UnnecessaryModifier Unnecessary modifier 'public' on method 'requestPduReceived': the method is declared in an interface type 68
uk/co/westhawk/snmp/event/TrapEvent.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 62
uk/co/westhawk/snmp/event/TrapListener.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'version_id': the field is declared in an interface type 6061
UnnecessaryModifier Unnecessary modifier 'public' on method 'trapReceived': the method is declared in an interface type 67
uk/co/westhawk/snmp/net/ContextSocketFace.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'version_id': the field is declared in an interface type 6263
UnnecessaryModifier Unnecessary modifier 'public' on method 'create': the method is declared in an interface type 77
UnnecessaryModifier Unnecessary modifier 'public' on method 'create': the method is declared in an interface type 90
UnnecessaryModifier Unnecessary modifier 'public' on method 'getSendToHostAddress': the method is declared in an interface type 100
UnnecessaryModifier Unnecessary modifier 'public' on method 'getReceivedFromHostAddress': the method is declared in an interface type 111
UnnecessaryModifier Unnecessary modifier 'public' on method 'getLocalSocketAddress': the method is declared in an interface type 119
UnnecessaryModifier Unnecessary modifier 'public' on method 'getRemoteSocketAddress': the method is declared in an interface type 127
UnnecessaryModifier Unnecessary modifier 'public' on method 'receive': the method is declared in an interface type 136
UnnecessaryModifier Unnecessary modifier 'public' on method 'send': the method is declared in an interface type 145
UnnecessaryModifier Unnecessary modifier 'public' on method 'close': the method is declared in an interface type 150
uk/co/westhawk/snmp/net/TCPSocket.java
Rule Violation Line
EmptyControlStatement Empty if statement 200203
EmptyCatchBlock Avoid empty catch blocks 281
EmptyCatchBlock Avoid empty catch blocks 290
uk/co/westhawk/snmp/pdu/BlockPdu.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 65
uk/co/westhawk/snmp/pdu/DiscoveryPdu.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 66
uk/co/westhawk/snmp/pdu/GetNextPdu_vec.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 100
uk/co/westhawk/snmp/pdu/GetPdu_vec.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 99
uk/co/westhawk/snmp/pdu/InformPdu_vec.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 92
uk/co/westhawk/snmp/pdu/InterfaceGetNextPdu.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 73
UnusedLocalVariable Avoid unused local variables such as 'answered'. 150
uk/co/westhawk/snmp/pdu/InterfaceGetNextPduStub.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 72
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 138
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 139
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 140
UnusedLocalVariable Avoid unused local variables such as 'oid'. 237
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 420
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 488
uk/co/westhawk/snmp/pdu/InterfacePdu.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 68
uk/co/westhawk/snmp/pdu/InterfacesPdu.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 68
uk/co/westhawk/snmp/pdu/OneGetBulkPdu.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 81
uk/co/westhawk/snmp/pdu/OneGetNextPdu.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 80
uk/co/westhawk/snmp/pdu/OneGetPdu.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 78
uk/co/westhawk/snmp/pdu/OneInformPdu.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 88
uk/co/westhawk/snmp/pdu/OneIntPdu.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 91
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 165
uk/co/westhawk/snmp/pdu/OneSetPdu.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 81
uk/co/westhawk/snmp/pdu/OneTrapPduv1.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 68
uk/co/westhawk/snmp/pdu/OneTrapPduv2.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 72
uk/co/westhawk/snmp/pdu/PassiveTrapPduv1.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 76
uk/co/westhawk/snmp/pdu/PassiveTrapPduv2.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 76
uk/co/westhawk/snmp/pdu/SetPdu_vec.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 86
uk/co/westhawk/snmp/pdu/UpSincePdu.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 64
uk/co/westhawk/snmp/stack/AbstractSnmpContext.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 79
EmptyControlStatement Empty else statement 887890
uk/co/westhawk/snmp/stack/AgentException.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 61
uk/co/westhawk/snmp/stack/AsnDecoderBase.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 80
uk/co/westhawk/snmp/stack/AsnDecoderv1.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 67
uk/co/westhawk/snmp/stack/AsnDecoderv2c.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 79
uk/co/westhawk/snmp/stack/AsnDecoderv3.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 79
UnusedLocalVariable Avoid unused local variables such as 'contextName'. 299
uk/co/westhawk/snmp/stack/AsnEncoderBase.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 79
uk/co/westhawk/snmp/stack/AsnEncoderv1.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 79
uk/co/westhawk/snmp/stack/AsnEncoderv2c.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 79
uk/co/westhawk/snmp/stack/AsnEncoderv3.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 79
uk/co/westhawk/snmp/stack/AsnInteger.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 79
uk/co/westhawk/snmp/stack/AsnNull.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 77
UnusedFormalParameter Avoid unused constructor parameters such as 'in'. 94
UnusedFormalParameter Avoid unused constructor parameters such as 'len'. 94
UnusedLocalVariable Avoid unused local variables such as 'anotherNull'. 132
uk/co/westhawk/snmp/stack/AsnObject.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 87
uk/co/westhawk/snmp/stack/AsnObjectId.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 103
EmptyCatchBlock Avoid empty catch blocks 238240
UnusedLocalVariable Avoid unused local variables such as 'val'. 352
EmptyControlStatement Empty for statement 421422
uk/co/westhawk/snmp/stack/AsnOctets.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 99
EmptyControlStatement Empty else statement 225227
UnusedLocalVariable Avoid unused local variables such as 'str'. 357
UnnecessarySemicolon Unnecessary semicolon 369
UnusedLocalVariable Avoid unused local variables such as 'minUTC'. 814
uk/co/westhawk/snmp/stack/AsnOctetsPrintableFace.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'version_id': the field is declared in an interface type 7172
UnnecessaryModifier Unnecessary modifier 'public' on method 'isPrintable': the method is declared in an interface type 84
UnnecessaryModifier Unnecessary modifier 'public' on method 'toInternationalDisplayString': the method is declared in an interface type 105
uk/co/westhawk/snmp/stack/AsnPduSequence.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 78
uk/co/westhawk/snmp/stack/AsnPrimitive.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 67
uk/co/westhawk/snmp/stack/AsnSequence.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 79
EmptyCatchBlock Avoid empty catch blocks 280282
uk/co/westhawk/snmp/stack/AsnTrapPduv1Sequence.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 64
uk/co/westhawk/snmp/stack/AsnUnsInteger.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 83
uk/co/westhawk/snmp/stack/AsnUnsInteger64.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 81
uk/co/westhawk/snmp/stack/BitsHelper.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 83
UnusedLocalVariable Avoid unused local variables such as 'mask'. 157
uk/co/westhawk/snmp/stack/DecodingException.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 60
uk/co/westhawk/snmp/stack/DefaultTrapContext.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 118
uk/co/westhawk/snmp/stack/DefaultUsmAgent.java
Rule Violation Line
AvoidUsingHardCodedIP Do not hard code the IP address 106
uk/co/westhawk/snmp/stack/EncodingException.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 60
uk/co/westhawk/snmp/stack/GetBulkPdu.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 87
uk/co/westhawk/snmp/stack/GetNextPdu.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 75
uk/co/westhawk/snmp/stack/GetPdu.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 63
uk/co/westhawk/snmp/stack/InformPdu.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 83
uk/co/westhawk/snmp/stack/ListeningContext.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 105
uk/co/westhawk/snmp/stack/ListeningContextFace.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'version_id': the field is declared in an interface type 6263
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'DEFAULT_TRAP_PORT': the field is declared in an interface type 68
UnnecessaryModifier Unnecessary modifier 'public' on method 'getPort': the method is declared in an interface type 76
UnnecessaryModifier Unnecessary modifier 'public' on method 'getBindAddress': the method is declared in an interface type 85
UnnecessaryModifier Unnecessary modifier 'public' on method 'getTypeSocket': the method is declared in an interface type 94
UnnecessaryModifier Unnecessary modifier 'public' on method 'getMaxRecvSize': the method is declared in an interface type 105
UnnecessaryModifier Unnecessary modifier 'public' on method 'setMaxRecvSize': the method is declared in an interface type 115
UnnecessaryModifier Unnecessary modifier 'public' on method 'destroy': the method is declared in an interface type 121
UnnecessaryModifier Unnecessary modifier 'public' on method 'addRawPduListener': the method is declared in an interface type 147148
UnnecessaryModifier Unnecessary modifier 'public' on method 'removeRawPduListener': the method is declared in an interface type 156
UnnecessaryModifier Unnecessary modifier 'public' on method 'addUnhandledRawPduListener': the method is declared in an interface type 173174
UnnecessaryModifier Unnecessary modifier 'public' on method 'removeUnhandledRawPduListener': the method is declared in an interface type 182
uk/co/westhawk/snmp/stack/ListeningContextPool.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 67
uk/co/westhawk/snmp/stack/MultiResponsePdu.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 95
EmptyCatchBlock Avoid empty catch blocks 282
uk/co/westhawk/snmp/stack/PassiveSnmpContext.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 81
uk/co/westhawk/snmp/stack/PassiveSnmpContextv2c.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 82
uk/co/westhawk/snmp/stack/Pdu.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 79
UnusedPrivateMethod Avoid unused private methods such as 'dump(Vector,varbind)'. 427
UnnecessarySemicolon Unnecessary semicolon 683
CollapsibleIfStatements These nested if statements could be combined 728731
EmptyCatchBlock Avoid empty catch blocks 905
uk/co/westhawk/snmp/stack/PduException.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 58
uk/co/westhawk/snmp/stack/ReportPdu.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 71
uk/co/westhawk/snmp/stack/ResponsePdu.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 78
uk/co/westhawk/snmp/stack/SetPdu.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 77
uk/co/westhawk/snmp/stack/SnmpConstants.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'version_id': the field is declared in an interface type 5960
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ASN_BOOLEAN': the field is declared in an interface type 62
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ASN_INTEGER': the field is declared in an interface type 63
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ASN_BIT_STR': the field is declared in an interface type 64
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ASN_OCTET_STR': the field is declared in an interface type 65
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ASN_NULL': the field is declared in an interface type 66
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ASN_OBJECT_ID': the field is declared in an interface type 67
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ASN_SEQUENCE': the field is declared in an interface type 68
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ASN_SET': the field is declared in an interface type 69
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ASN_UNIVERSAL': the field is declared in an interface type 71
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ASN_APPLICATION': the field is declared in an interface type 72
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ASN_CONTEXT': the field is declared in an interface type 73
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ASN_PRIVATE': the field is declared in an interface type 74
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ASN_PRIMITIVE': the field is declared in an interface type 76
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ASN_CONSTRUCTOR': the field is declared in an interface type 77
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ASN_LONG_LEN': the field is declared in an interface type 79
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ASN_EXTENSION_ID': the field is declared in an interface type 80
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ASN_BIT8': the field is declared in an interface type 81
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'INTEGER': the field is declared in an interface type 83
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'STRING': the field is declared in an interface type 84
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'OBJID': the field is declared in an interface type 85
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'NULLOBJ': the field is declared in an interface type 86
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'IPADDRESS': the field is declared in an interface type 90
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'COUNTER': the field is declared in an interface type 91
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'GAUGE': the field is declared in an interface type 92
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'TIMETICKS': the field is declared in an interface type 93
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'OPAQUE': the field is declared in an interface type 94
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'COUNTER64': the field is declared in an interface type 95
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'NSAP_ADDRESS': the field is declared in an interface type 103
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'OBSOLETED_RFC1442_UINTEGER32': the field is declared in an interface type 115
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SMI_V2_UINTEGER32': the field is declared in an interface type 121
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_TRAP_COLDSTART': the field is declared in an interface type 126
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_TRAP_WARMSTART': the field is declared in an interface type 130
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_TRAP_LINKDOWN': the field is declared in an interface type 134
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_TRAP_LINKUP': the field is declared in an interface type 138
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_TRAP_AUTHFAIL': the field is declared in an interface type 142
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_TRAP_EGPNEIGHBORLOSS': the field is declared in an interface type 146
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_TRAP_ENTERPRISESPECIFIC': the field is declared in an interface type 150
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_VAR_NOSUCHOBJECT': the field is declared in an interface type 157
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_VAR_NOSUCHINSTANCE': the field is declared in an interface type 162
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_VAR_ENDOFMIBVIEW': the field is declared in an interface type 168
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_NOERROR': the field is declared in an interface type 175
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_TOOBIG': the field is declared in an interface type 181
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_NOSUCHNAME': the field is declared in an interface type 187
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_BADVALUE': the field is declared in an interface type 193
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_READONLY': the field is declared in an interface type 198
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_GENERR': the field is declared in an interface type 204
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_NOACCESS': the field is declared in an interface type 212
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_WRONGTYPE': the field is declared in an interface type 219
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_WRONGLENGTH': the field is declared in an interface type 226
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_WRONGENCODING': the field is declared in an interface type 232
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_WRONGVALUE': the field is declared in an interface type 238
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_NOCREATION': the field is declared in an interface type 246
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_INCONSISTENTVALUE': the field is declared in an interface type 253
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_RESOURCEUNAVAILABLE': the field is declared in an interface type 260
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_COMMITFAILED': the field is declared in an interface type 266
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_UNDOFAILED': the field is declared in an interface type 272
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_AUTHORIZATIONERR': the field is declared in an interface type 277
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_NOTWRITABLE': the field is declared in an interface type 292
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_INCONSISTENTNAME': the field is declared in an interface type 299
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_DECODING_EXC': the field is declared in an interface type 304
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_DECODINGASN_EXC': the field is declared in an interface type 310
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_DECODINGPKTLNGTH_EXC': the field is declared in an interface type 316
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_VERSION_1': the field is declared in an interface type 321
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_VERSION_2c': the field is declared in an interface type 325
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_VERSION_3': the field is declared in an interface type 333
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'GET_REQ_MSG': the field is declared in an interface type 338
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'GETNEXT_REQ_MSG': the field is declared in an interface type 342
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'GET_RSP_MSG': the field is declared in an interface type 346
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'SET_REQ_MSG': the field is declared in an interface type 350
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'TRP_REQ_MSG': the field is declared in an interface type 354
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'GETBULK_REQ_MSG': the field is declared in an interface type 359
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'INFORM_REQ_MSG': the field is declared in an interface type 363
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'TRPV2_REQ_MSG': the field is declared in an interface type 367
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'GET_RPRT_MSG': the field is declared in an interface type 371
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'CONS_SEQ': the field is declared in an interface type 373
uk/co/westhawk/snmp/stack/SnmpContext.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 88
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 219
EmptyControlStatement Empty else statement 242244
uk/co/westhawk/snmp/stack/SnmpContextBasisFace.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'version_id': the field is declared in an interface type 6869
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'DEFAULT_PORT': the field is declared in an interface type 74
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'STANDARD_SOCKET': the field is declared in an interface type 78
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'TCP_SOCKET': the field is declared in an interface type 82
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'MAXPDU': the field is declared in an interface type 88
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'MSS': the field is declared in an interface type 93
UnnecessaryModifier Unnecessary modifier 'public' on method 'getVersion': the method is declared in an interface type 104
UnnecessaryModifier Unnecessary modifier 'public' on method 'getHost': the method is declared in an interface type 111
UnnecessaryModifier Unnecessary modifier 'public' on method 'getPort': the method is declared in an interface type 118
UnnecessaryModifier Unnecessary modifier 'public' on method 'getBindAddress': the method is declared in an interface type 128
UnnecessaryModifier Unnecessary modifier 'public' on method 'getTypeSocket': the method is declared in an interface type 137
UnnecessaryModifier Unnecessary modifier 'public' on method 'getSendToHostAddress': the method is declared in an interface type 148
UnnecessaryModifier Unnecessary modifier 'public' on method 'getReceivedFromHostAddress': the method is declared in an interface type 159
UnnecessaryModifier Unnecessary modifier 'public' on method 'addPdu': the method is declared in an interface type 170171
UnnecessaryModifier Unnecessary modifier 'public' on method 'removePdu': the method is declared in an interface type 182
UnnecessaryModifier Unnecessary modifier 'public' on method 'encodePacket': the method is declared in an interface type 198200
UnnecessaryModifier Unnecessary modifier 'public' on method 'sendPacket': the method is declared in an interface type 210
UnnecessaryModifier Unnecessary modifier 'public' on method 'destroy': the method is declared in an interface type 216
UnnecessaryModifier Unnecessary modifier 'public' on method 'isDestroyed': the method is declared in an interface type 222
UnnecessaryModifier Unnecessary modifier 'public' on method 'addTrapListener': the method is declared in an interface type 239
UnnecessaryModifier Unnecessary modifier 'public' on method 'removeTrapListener': the method is declared in an interface type 255
UnnecessaryModifier Unnecessary modifier 'public' on method 'addTrapListener': the method is declared in an interface type 275
UnnecessaryModifier Unnecessary modifier 'public' on method 'removeTrapListener': the method is declared in an interface type 295
UnnecessaryModifier Unnecessary modifier 'public' on method 'addTrapListener': the method is declared in an interface type 315
UnnecessaryModifier Unnecessary modifier 'public' on method 'removeTrapListener': the method is declared in an interface type 335
UnnecessaryModifier Unnecessary modifier 'public' on method 'addRequestPduListener': the method is declared in an interface type 360
UnnecessaryModifier Unnecessary modifier 'public' on method 'removeRequestPduListener': the method is declared in an interface type 378
UnnecessaryModifier Unnecessary modifier 'public' on method 'addRequestPduListener': the method is declared in an interface type 403
UnnecessaryModifier Unnecessary modifier 'public' on method 'removeRequestPduListener': the method is declared in an interface type 423
UnnecessaryModifier Unnecessary modifier 'public' on method 'addRequestPduListener': the method is declared in an interface type 448
UnnecessaryModifier Unnecessary modifier 'public' on method 'removeRequestPduListener': the method is declared in an interface type 468
UnnecessaryModifier Unnecessary modifier 'public' on method 'processIncomingPdu': the method is declared in an interface type 476477
UnnecessaryModifier Unnecessary modifier 'public' on method 'clone': the method is declared in an interface type 486
UnnecessaryModifier Unnecessary modifier 'public' on method 'getHashKey': the method is declared in an interface type 494
uk/co/westhawk/snmp/stack/SnmpContextFace.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'version_id': the field is declared in an interface type 6768
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'DEFAULT_COMMUNITY': the field is declared in an interface type 73
UnnecessaryModifier Unnecessary modifier 'public' on method 'getCommunity': the method is declared in an interface type 78
UnnecessaryModifier Unnecessary modifier 'public' on method 'setCommunity': the method is declared in an interface type 88
uk/co/westhawk/snmp/stack/SnmpContextPool.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 93
EmptyCatchBlock Avoid empty catch blocks 254
uk/co/westhawk/snmp/stack/SnmpContextPoolItem.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 72
uk/co/westhawk/snmp/stack/SnmpContextv2c.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 75
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 172
UselessOverridingMethod Overriding method merely calls super 279282
uk/co/westhawk/snmp/stack/SnmpContextv2cFace.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'version_id': the field is declared in an interface type 6364
uk/co/westhawk/snmp/stack/SnmpContextv2cPool.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 74
uk/co/westhawk/snmp/stack/SnmpContextv3.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 92
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 298
CollapsibleIfStatements These nested if statements could be combined 453459
uk/co/westhawk/snmp/stack/SnmpContextv3Basis.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 115
UnusedLocalVariable Avoid unused local variables such as 'timew'. 187
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 610
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 617
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 621
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 867
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 882
CollapsibleIfStatements These nested if statements could be combined 902906
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 956
uk/co/westhawk/snmp/stack/SnmpContextv3Discovery.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 82
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 196
uk/co/westhawk/snmp/stack/SnmpContextv3Face.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'version_id': the field is declared in an interface type 6667
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMPv1_Security_Model': the field is declared in an interface type 73
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMPv2c_Security_Model': the field is declared in an interface type 79
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'USM_Security_Model': the field is declared in an interface type 85
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'MD5_PROTOCOL': the field is declared in an interface type 90
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SHA1_PROTOCOL': the field is declared in an interface type 95
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'DES_ENCRYPT': the field is declared in an interface type 100
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'AES_ENCRYPT': the field is declared in an interface type 105
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'Default_UserName': the field is declared in an interface type 111
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'Default_ContextName': the field is declared in an interface type 116
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ProtocolNames': the field is declared in an interface type 121127
UnnecessaryModifier Unnecessary modifier 'public' on method 'getUserName': the method is declared in an interface type 134
UnnecessaryModifier Unnecessary modifier 'public' on method 'setUserName': the method is declared in an interface type 145
UnnecessaryModifier Unnecessary modifier 'public' on method 'isUseAuthentication': the method is declared in an interface type 153
UnnecessaryModifier Unnecessary modifier 'public' on method 'setUseAuthentication': the method is declared in an interface type 161
UnnecessaryModifier Unnecessary modifier 'public' on method 'getUserAuthenticationPassword': the method is declared in an interface type 169
UnnecessaryModifier Unnecessary modifier 'public' on method 'setUserAuthenticationPassword': the method is declared in an interface type 178179
UnnecessaryModifier Unnecessary modifier 'public' on method 'setAuthenticationProtocol': the method is declared in an interface type 190191
UnnecessaryModifier Unnecessary modifier 'public' on method 'getAuthenticationProtocol': the method is declared in an interface type 202
UnnecessaryModifier Unnecessary modifier 'public' on method 'setPrivacyProtocol': the method is declared in an interface type 213214
UnnecessaryModifier Unnecessary modifier 'public' on method 'getPrivacyProtocol': the method is declared in an interface type 225
UnnecessaryModifier Unnecessary modifier 'public' on method 'isUsePrivacy': the method is declared in an interface type 233
UnnecessaryModifier Unnecessary modifier 'public' on method 'setUsePrivacy': the method is declared in an interface type 241
UnnecessaryModifier Unnecessary modifier 'public' on method 'getUserPrivacyPassword': the method is declared in an interface type 249
UnnecessaryModifier Unnecessary modifier 'public' on method 'setUserPrivacyPassword': the method is declared in an interface type 258259
UnnecessaryModifier Unnecessary modifier 'public' on method 'setContextEngineId': the method is declared in an interface type 284285
UnnecessaryModifier Unnecessary modifier 'public' on method 'getContextEngineId': the method is declared in an interface type 292
UnnecessaryModifier Unnecessary modifier 'public' on method 'setContextName': the method is declared in an interface type 305
UnnecessaryModifier Unnecessary modifier 'public' on method 'getContextName': the method is declared in an interface type 312
UnnecessaryModifier Unnecessary modifier 'public' on method 'addDiscoveryPdu': the method is declared in an interface type 324325
UnnecessaryModifier Unnecessary modifier 'public' on method 'encodeDiscoveryPacket': the method is declared in an interface type 337339
UnnecessaryModifier Unnecessary modifier 'public' on method 'setUsmAgent': the method is declared in an interface type 350
UnnecessaryModifier Unnecessary modifier 'public' on method 'getUsmAgent': the method is declared in an interface type 358
uk/co/westhawk/snmp/stack/SnmpContextv3Pool.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 90
uk/co/westhawk/snmp/stack/TimeWindow.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 76
uk/co/westhawk/snmp/stack/TimeWindowNode.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 60
uk/co/westhawk/snmp/stack/Transmitter.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 64
UnnecessarySemicolon Unnecessary semicolon 147
uk/co/westhawk/snmp/stack/TrapPduv1.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 75
EmptyCatchBlock Avoid empty catch blocks 348
uk/co/westhawk/snmp/stack/TrapPduv2.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 85
uk/co/westhawk/snmp/stack/UsmAgent.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'version_id': the field is declared in an interface type 7980
UnnecessaryModifier Unnecessary modifier 'public' on field 'MYFAKEHOSTNAME': the field is declared in an interface type 86
UnnecessaryModifier Unnecessary modifier 'public' on method 'getSnmpEngineId': the method is declared in an interface type 100
UnnecessaryModifier Unnecessary modifier 'public' on method 'getSnmpEngineBoots': the method is declared in an interface type 107
UnnecessaryModifier Unnecessary modifier 'public' on method 'getSnmpEngineTime': the method is declared in an interface type 114
UnnecessaryModifier Unnecessary modifier 'public' on method 'getUsmStatsUnknownEngineIDs': the method is declared in an interface type 120
UnnecessaryModifier Unnecessary modifier 'public' on method 'getUsmStatsNotInTimeWindows': the method is declared in an interface type 126
UnnecessaryModifier Unnecessary modifier 'public' on method 'setSnmpContext': the method is declared in an interface type 131
uk/co/westhawk/snmp/stack/usmStatsConstants.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'version_id': the field is declared in an interface type 6768
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'usmStatsUnsupportedSecLevels': the field is declared in an interface type 75
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'usmStatsNotInTimeWindows': the field is declared in an interface type 82
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'usmStatsUnknownUserNames': the field is declared in an interface type 89
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'usmStatsUnknownEngineIDs': the field is declared in an interface type 96
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'usmStatsWrongDigests': the field is declared in an interface type 103
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'usmStatsDecryptionErrors': the field is declared in an interface type 109
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'usmStatsOids': the field is declared in an interface type 114122
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'usmStatsStrings': the field is declared in an interface type 127135
uk/co/westhawk/snmp/stack/varbind.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 84
uk/co/westhawk/snmp/util/SnmpUtilities.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 70
UnusedLocalVariable Avoid unused local variables such as 'mask'. 118

Priority 4

org/bouncycastle/crypto/digests/GeneralDigest.java
Rule Violation Line
UselessParentheses Useless parentheses. 84
UselessParentheses Useless parentheses. 84
UselessParentheses Useless parentheses. 118
org/bouncycastle/crypto/digests/MD5Digest.java
Rule Violation Line
UselessParentheses Useless parentheses. 233
UselessParentheses Useless parentheses. 234
UselessParentheses Useless parentheses. 235
UselessParentheses Useless parentheses. 236
UselessParentheses Useless parentheses. 237
UselessParentheses Useless parentheses. 238
UselessParentheses Useless parentheses. 239
UselessParentheses Useless parentheses. 240
UselessParentheses Useless parentheses. 241
UselessParentheses Useless parentheses. 242
UselessParentheses Useless parentheses. 243
UselessParentheses Useless parentheses. 244
UselessParentheses Useless parentheses. 245
UselessParentheses Useless parentheses. 246
UselessParentheses Useless parentheses. 247
UselessParentheses Useless parentheses. 248
UselessParentheses Useless parentheses. 253
UselessParentheses Useless parentheses. 254
UselessParentheses Useless parentheses. 255
UselessParentheses Useless parentheses. 256
UselessParentheses Useless parentheses. 257
UselessParentheses Useless parentheses. 258
UselessParentheses Useless parentheses. 259
UselessParentheses Useless parentheses. 260
UselessParentheses Useless parentheses. 261
UselessParentheses Useless parentheses. 262
UselessParentheses Useless parentheses. 263
UselessParentheses Useless parentheses. 264
UselessParentheses Useless parentheses. 265
UselessParentheses Useless parentheses. 266
UselessParentheses Useless parentheses. 267
UselessParentheses Useless parentheses. 268
UselessParentheses Useless parentheses. 273
UselessParentheses Useless parentheses. 274
UselessParentheses Useless parentheses. 275
UselessParentheses Useless parentheses. 276
UselessParentheses Useless parentheses. 277
UselessParentheses Useless parentheses. 278
UselessParentheses Useless parentheses. 279
UselessParentheses Useless parentheses. 280
UselessParentheses Useless parentheses. 281
UselessParentheses Useless parentheses. 282
UselessParentheses Useless parentheses. 283
UselessParentheses Useless parentheses. 284
UselessParentheses Useless parentheses. 285
UselessParentheses Useless parentheses. 286
UselessParentheses Useless parentheses. 287
UselessParentheses Useless parentheses. 288
UselessParentheses Useless parentheses. 293
UselessParentheses Useless parentheses. 294
UselessParentheses Useless parentheses. 295
UselessParentheses Useless parentheses. 296
UselessParentheses Useless parentheses. 297
UselessParentheses Useless parentheses. 298
UselessParentheses Useless parentheses. 299
UselessParentheses Useless parentheses. 300
UselessParentheses Useless parentheses. 301
UselessParentheses Useless parentheses. 302
UselessParentheses Useless parentheses. 303
UselessParentheses Useless parentheses. 304
UselessParentheses Useless parentheses. 305
UselessParentheses Useless parentheses. 306
UselessParentheses Useless parentheses. 307
UselessParentheses Useless parentheses. 308
org/bouncycastle/crypto/digests/SHA1Digest.java
Rule Violation Line
UselessParentheses Useless parentheses. 164
UselessParentheses Useless parentheses. 172
UselessParentheses Useless parentheses. 180
UselessParentheses Useless parentheses. 197
org/bouncycastle/crypto/engines/AESEngine.java
Rule Violation Line
UselessParentheses Useless parentheses. 248
UselessParentheses Useless parentheses. 257
UselessParentheses Useless parentheses. 280
UselessParentheses Useless parentheses. 296
UselessParentheses Useless parentheses. 296
UselessParentheses Useless parentheses. 296
UselessParentheses Useless parentheses. 296
UselessParentheses Useless parentheses. 296
UselessParentheses Useless parentheses. 296
UselessParentheses Useless parentheses. 319
UselessParentheses Useless parentheses. 322
UselessParentheses Useless parentheses. 323
UselessParentheses Useless parentheses. 324
UselessParentheses Useless parentheses. 324
UselessParentheses Useless parentheses. 324
UselessParentheses Useless parentheses. 435
UselessParentheses Useless parentheses. 440
UselessParentheses Useless parentheses. 445
UselessParentheses Useless parentheses. 450
org/bouncycastle/crypto/engines/DESEngine.java
Rule Violation Line
UselessParentheses Useless parentheses. 335
UselessParentheses Useless parentheses. 429
UselessParentheses Useless parentheses. 434
UselessParentheses Useless parentheses. 438
UselessParentheses Useless parentheses. 441
UselessParentheses Useless parentheses. 444
UselessParentheses Useless parentheses. 447
UselessParentheses Useless parentheses. 491
UselessParentheses Useless parentheses. 494
UselessParentheses Useless parentheses. 497
UselessParentheses Useless parentheses. 500
uk/co/westhawk/snmp/beans/AnnexModemStatusBean.java
Rule Violation Line
UnnecessaryImport Unused import 'java.awt.*' 54
UnnecessaryImport Unused import 'java.text.*' 56
UnnecessaryImport Unused import 'java.beans.*' 59
UselessParentheses Useless parentheses. 428
ExtendsObject No need to explicitly extend Object. 699
uk/co/westhawk/snmp/beans/AscendActiveSessionBean.java
Rule Violation Line
UnnecessaryImport Unused import 'java.awt.*' 53
UnnecessaryImport Unused import 'java.text.*' 55
UnnecessaryImport Unused import 'java.beans.*' 58
uk/co/westhawk/snmp/beans/DialogChannelStatusBean.java
Rule Violation Line
UnnecessaryImport Unused import 'java.awt.*' 55
UnnecessaryImport Unused import 'java.text.*' 57
UnnecessaryImport Unused import 'java.beans.*' 60
UselessParentheses Useless parentheses. 421
ExtendsObject No need to explicitly extend Object. 648
uk/co/westhawk/snmp/beans/InterfaceIndexesBean.java
Rule Violation Line
UnnecessaryImport Unused import 'java.awt.*' 53
UnnecessaryImport Unused import 'java.text.*' 55
UnnecessaryImport Unused import 'java.beans.*' 58
uk/co/westhawk/snmp/beans/IsHostReachableBean.java
Rule Violation Line
UnnecessaryImport Unused import 'java.awt.*' 53
UnnecessaryImport Unused import 'java.beans.*' 58
uk/co/westhawk/snmp/beans/NTPrintQBean.java
Rule Violation Line
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.pdu.*' 52
UnnecessaryImport Unused import 'java.awt.*' 53
UnnecessaryImport Unused import 'java.text.*' 55
UnnecessaryImport Unused import 'java.beans.*' 58
uk/co/westhawk/snmp/beans/NTServiceNamesBean.java
Rule Violation Line
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.pdu.*' 52
UnnecessaryImport Unused import 'java.awt.*' 53
UnnecessaryImport Unused import 'java.text.*' 55
UnnecessaryImport Unused import 'java.beans.*' 58
uk/co/westhawk/snmp/beans/NTSharedResBean.java
Rule Violation Line
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.pdu.*' 52
UnnecessaryImport Unused import 'java.awt.*' 53
UnnecessaryImport Unused import 'java.text.*' 55
UnnecessaryImport Unused import 'java.beans.*' 58
uk/co/westhawk/snmp/beans/NTUserNamesBean.java
Rule Violation Line
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.pdu.*' 52
UnnecessaryImport Unused import 'java.awt.*' 53
UnnecessaryImport Unused import 'java.text.*' 55
UnnecessaryImport Unused import 'java.beans.*' 58
uk/co/westhawk/snmp/beans/NcdPerfDataBean.java
Rule Violation Line
UnnecessaryImport Unused import 'java.awt.*' 53
UnnecessaryImport Unused import 'java.text.*' 55
UselessParentheses Useless parentheses. 581
UselessParentheses Useless parentheses. 681
uk/co/westhawk/snmp/beans/OneInterfaceBean.java
Rule Violation Line
UnnecessaryImport Unused import 'java.awt.*' 53
UnnecessaryImport Unused import 'java.text.*' 55
UnnecessaryImport Unused import 'java.beans.*' 58
uk/co/westhawk/snmp/beans/OneNTPrintQBean.java
Rule Violation Line
UnnecessaryImport Unused import 'java.awt.*' 53
UnnecessaryImport Unused import 'java.text.*' 55
UnnecessaryImport Unused import 'java.beans.*' 58
uk/co/westhawk/snmp/beans/OneNTServiceBean.java
Rule Violation Line
UnnecessaryImport Unused import 'java.awt.*' 53
UnnecessaryImport Unused import 'java.text.*' 55
UnnecessaryImport Unused import 'java.beans.*' 58
UselessParentheses Useless parentheses. 359
UselessParentheses Useless parentheses. 362
uk/co/westhawk/snmp/beans/OneNTSharedResBean.java
Rule Violation Line
UnnecessaryImport Unused import 'java.awt.*' 53
UnnecessaryImport Unused import 'java.text.*' 55
UnnecessaryImport Unused import 'java.beans.*' 58
uk/co/westhawk/snmp/beans/SNMPBean.java
Rule Violation Line
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.pdu.*' 52
UnnecessaryImport Unused import 'java.awt.*' 53
UnnecessaryImport Unused import 'java.text.*' 55
uk/co/westhawk/snmp/beans/SNMPRunBean.java
Rule Violation Line
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.stack.*' 51
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.pdu.*' 52
UnnecessaryImport Unused import 'java.awt.*' 53
UnnecessaryImport Unused import 'java.util.*' 54
UnnecessaryImport Unused import 'java.text.*' 55
UnnecessaryImport Unused import 'java.io.*' 57
UnnecessaryImport Unused import 'java.beans.*' 58
uk/co/westhawk/snmp/beans/UsmBeingDiscoveredBean.java
Rule Violation Line
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.pdu.*' 52
UnnecessaryImport Unused import 'java.util.*' 55
uk/co/westhawk/snmp/beans/UsmDiscoveryBean.java
Rule Violation Line
UnnecessaryImport Unused import 'java.util.*' 53
uk/co/westhawk/snmp/event/RawPduEvent.java
Rule Violation Line
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.stack.*' 51
uk/co/westhawk/snmp/event/RawPduReceivedSupport.java
Rule Violation Line
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.stack.*' 52
UselessParentheses Useless parentheses. 172
uk/co/westhawk/snmp/net/StandardSocket.java
Rule Violation Line
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.stack.*' 54
UselessParentheses Useless parentheses. 97
UselessParentheses Useless parentheses. 122
UselessParentheses Useless parentheses. 127
uk/co/westhawk/snmp/net/TCPSocket.java
Rule Violation Line
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.stack.*' 54
UselessParentheses Useless parentheses. 114
UselessParentheses Useless parentheses. 138
UselessParentheses Useless parentheses. 143
uk/co/westhawk/snmp/pdu/BlockPdu.java
Rule Violation Line
ExtendsObject No need to explicitly extend Object. 63
uk/co/westhawk/snmp/pdu/InterfaceGetNextPdu.java
Rule Violation Line
UnnecessaryImport Unnecessary import from the current package 'uk.co.westhawk.snmp.pdu.*' 53
UnnecessaryImport Unused import 'java.util.*' 54
UselessParentheses Useless parentheses. 120
uk/co/westhawk/snmp/pdu/InterfaceGetNextPduStub.java
Rule Violation Line
UnnecessaryImport Unnecessary import from the current package 'uk.co.westhawk.snmp.pdu.*' 53
uk/co/westhawk/snmp/pdu/InterfacePdu.java
Rule Violation Line
UselessParentheses Useless parentheses. 278
UselessParentheses Useless parentheses. 278
UselessParentheses Useless parentheses. 284
uk/co/westhawk/snmp/pdu/OneTrapPduv1.java
Rule Violation Line
UnnecessaryImport Unused import 'java.util.*' 52
UnnecessaryImport Unused import 'java.io.*' 53
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.util.*' 56
uk/co/westhawk/snmp/pdu/OneTrapPduv2.java
Rule Violation Line
UnnecessaryImport Unused import 'java.util.*' 52
UnnecessaryImport Unused import 'java.io.*' 53
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.util.*' 56
uk/co/westhawk/snmp/stack/AbstractSnmpContext.java
Rule Violation Line
ExtendsObject No need to explicitly extend Object. 76
UselessParentheses Useless parentheses. 265
UselessParentheses Useless parentheses. 270
UselessParentheses Useless parentheses. 275
UselessParentheses Useless parentheses. 280
UselessParentheses Useless parentheses. 286
UselessParentheses Useless parentheses. 709
UselessParentheses Useless parentheses. 709
UselessParentheses Useless parentheses. 723
UselessParentheses Useless parentheses. 723
uk/co/westhawk/snmp/stack/AsnDecoderBase.java
Rule Violation Line
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.util.*' 66
UnnecessaryImport Unused import 'java.util.*' 68
ExtendsObject No need to explicitly extend Object. 78
uk/co/westhawk/snmp/stack/AsnDecoderv1.java
Rule Violation Line
UnnecessaryImport Unused import 'java.util.*' 55
uk/co/westhawk/snmp/stack/AsnDecoderv2c.java
Rule Violation Line
UnnecessaryImport Unused import 'java.util.*' 67
uk/co/westhawk/snmp/stack/AsnDecoderv3.java
Rule Violation Line
UnnecessaryImport Unused import 'java.util.*' 67
UselessParentheses Useless parentheses. 316
UselessParentheses Useless parentheses. 393
UselessParentheses Useless parentheses. 480
uk/co/westhawk/snmp/stack/AsnEncoderBase.java
Rule Violation Line
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.util.*' 65
ExtendsObject No need to explicitly extend Object. 77
uk/co/westhawk/snmp/stack/AsnEncoderv1.java
Rule Violation Line
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.util.*' 65
uk/co/westhawk/snmp/stack/AsnEncoderv2c.java
Rule Violation Line
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.util.*' 65
uk/co/westhawk/snmp/stack/AsnInteger.java
Rule Violation Line
UnnecessaryImport Unused import 'java.util.*' 67
UselessParentheses Useless parentheses. 132
uk/co/westhawk/snmp/stack/AsnNull.java
Rule Violation Line
UnnecessaryImport Unused import 'java.util.*' 67
uk/co/westhawk/snmp/stack/AsnObject.java
Rule Violation Line
UnnecessaryImport Unused import 'java.util.*' 67
ExtendsObject No need to explicitly extend Object. 85
UselessParentheses Useless parentheses. 245
UselessParentheses Useless parentheses. 255
UselessParentheses Useless parentheses. 258
UselessParentheses Useless parentheses. 424
UselessParentheses Useless parentheses. 455
uk/co/westhawk/snmp/stack/AsnObjectId.java
Rule Violation Line
UselessParentheses Useless parentheses. 173
UselessParentheses Useless parentheses. 266
UselessParentheses Useless parentheses. 709
UselessParentheses Useless parentheses. 709
UselessParentheses Useless parentheses. 713
UselessParentheses Useless parentheses. 713
UselessParentheses Useless parentheses. 718
UselessParentheses Useless parentheses. 718
uk/co/westhawk/snmp/stack/AsnOctets.java
Rule Violation Line
UselessParentheses Useless parentheses. 591
UselessParentheses Useless parentheses. 799
uk/co/westhawk/snmp/stack/AsnPduSequence.java
Rule Violation Line
UnnecessaryImport Unused import 'java.util.*' 67
UselessParentheses Useless parentheses. 91
UselessParentheses Useless parentheses. 97
UselessParentheses Useless parentheses. 103
UselessParentheses Useless parentheses. 132
uk/co/westhawk/snmp/stack/AsnPrimitive.java
Rule Violation Line
UnnecessaryImport Unused import 'java.util.*' 53
uk/co/westhawk/snmp/stack/AsnSequence.java
Rule Violation Line
UselessParentheses Useless parentheses. 120
UselessParentheses Useless parentheses. 182
UselessParentheses Useless parentheses. 211
UselessParentheses Useless parentheses. 234
UselessParentheses Useless parentheses. 259
uk/co/westhawk/snmp/stack/AsnTrapPduv1Sequence.java
Rule Violation Line
UnnecessaryImport Unused import 'java.util.*' 53
uk/co/westhawk/snmp/stack/AsnUnsInteger.java
Rule Violation Line
UnnecessaryImport Unused import 'java.util.*' 67
UselessParentheses Useless parentheses. 152
uk/co/westhawk/snmp/stack/AsnUnsInteger64.java
Rule Violation Line
UnnecessaryImport Unused import 'java.util.*' 67
UselessParentheses Useless parentheses. 135
uk/co/westhawk/snmp/stack/BitsHelper.java
Rule Violation Line
UnnecessaryImport Unused import 'java.io.*' 52
UselessParentheses Useless parentheses. 167
uk/co/westhawk/snmp/stack/DefaultAsnOctetsPrintable.java
Rule Violation Line
UselessParentheses Useless parentheses. 111115
UselessParentheses Useless parentheses. 111
uk/co/westhawk/snmp/stack/DefaultTrapContext.java
Rule Violation Line
UnnecessaryImport Unused import 'java.util.*' 53
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.event.*' 55
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.net.*' 56
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.util.*' 57
uk/co/westhawk/snmp/stack/ListeningContext.java
Rule Violation Line
UnnecessaryImport Unused import 'java.util.*' 53
uk/co/westhawk/snmp/stack/Pdu.java
Rule Violation Line
UselessParentheses Useless parentheses. 260
UselessParentheses Useless parentheses. 285
UselessParentheses Useless parentheses. 701
UselessParentheses Useless parentheses. 701
UselessParentheses Useless parentheses. 701
uk/co/westhawk/snmp/stack/SnmpContext.java
Rule Violation Line
UnnecessaryImport Unused import 'java.net.*' 65
uk/co/westhawk/snmp/stack/SnmpContextBasisFace.java
Rule Violation Line
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.net.*' 52
uk/co/westhawk/snmp/stack/SnmpContextFace.java
Rule Violation Line
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.event.*' 51
uk/co/westhawk/snmp/stack/SnmpContextPoolItem.java
Rule Violation Line
UnnecessaryImport Unused import 'java.util.*' 52
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.event.*' 53
uk/co/westhawk/snmp/stack/SnmpContextv2c.java
Rule Violation Line
UnnecessaryImport Unused import 'java.net.*' 52
uk/co/westhawk/snmp/stack/SnmpContextv3.java
Rule Violation Line
UnnecessaryImport Unused import 'java.net.*' 51
UnnecessaryImport Unused import 'java.util.*' 53
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.pdu.*' 55
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.util.*' 56
uk/co/westhawk/snmp/stack/SnmpContextv3Basis.java
Rule Violation Line
UnnecessaryImport Unused import 'java.net.*' 51
UselessParentheses Useless parentheses. 657
UselessParentheses Useless parentheses. 973977
uk/co/westhawk/snmp/stack/SnmpContextv3Discovery.java
Rule Violation Line
UnnecessaryImport Unused import 'java.net.*' 51
UnnecessaryImport Unused import 'java.util.*' 53
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.pdu.*' 55
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.util.*' 56
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.event.*' 57
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.beans.*' 58
uk/co/westhawk/snmp/stack/TimeWindow.java
Rule Violation Line
UselessParentheses Useless parentheses. 270
UselessParentheses Useless parentheses. 317
UselessParentheses Useless parentheses. 374
uk/co/westhawk/snmp/stack/Transmitter.java
Rule Violation Line
UnnecessaryImport Unused import 'java.util.*' 53
ExtendsObject No need to explicitly extend Object. 62
UselessParentheses Useless parentheses. 139
UselessParentheses Useless parentheses. 139
uk/co/westhawk/snmp/stack/TrapPduv1.java
Rule Violation Line
UnnecessaryImport Unused import 'java.net.*' 54
UselessParentheses Useless parentheses. 273
uk/co/westhawk/snmp/stack/varbind.java
Rule Violation Line
ExtendsObject No need to explicitly extend Object. 82
UselessParentheses Useless parentheses. 216
uk/co/westhawk/snmp/util/SnmpUtilities.java
Rule Violation Line
UnnecessaryImport Unused import 'org.bouncycastle.crypto.*' 55
ExtendsObject No need to explicitly extend Object. 68
UselessParentheses Useless parentheses. 125
UselessParentheses Useless parentheses. 158
UselessParentheses Useless parentheses. 158
UselessParentheses Useless parentheses. 206
UselessParentheses Useless parentheses. 249
UselessParentheses Useless parentheses. 251
UselessParentheses Useless parentheses. 274
UselessParentheses Useless parentheses. 302
UselessParentheses Useless parentheses. 302
UselessParentheses Useless parentheses. 329
UselessParentheses Useless parentheses. 329
UselessParentheses Useless parentheses. 369
UselessParentheses Useless parentheses. 437
UselessParentheses Useless parentheses. 485
UselessParentheses Useless parentheses. 485
UselessParentheses Useless parentheses. 500
UselessParentheses Useless parentheses. 500
UselessParentheses Useless parentheses. 1042
UselessParentheses Useless parentheses. 1052

Files

org/bouncycastle/crypto/BlockCipher.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'init': the method is declared in an interface type 3 4041
UnnecessaryModifier Unnecessary modifier 'public' on method 'getAlgorithmName': the method is declared in an interface type 3 48
UnnecessaryModifier Unnecessary modifier 'public' on method 'getBlockSize': the method is declared in an interface type 3 55
UnnecessaryModifier Unnecessary modifier 'public' on method 'processBlock': the method is declared in an interface type 3 7071
UnnecessaryModifier Unnecessary modifier 'public' on method 'reset': the method is declared in an interface type 3 77

org/bouncycastle/crypto/Digest.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getAlgorithmName': the method is declared in an interface type 3 35
UnnecessaryModifier Unnecessary modifier 'public' on method 'getDigestSize': the method is declared in an interface type 3 42
UnnecessaryModifier Unnecessary modifier 'public' on method 'update': the method is declared in an interface type 3 49
UnnecessaryModifier Unnecessary modifier 'public' on method 'update': the method is declared in an interface type 3 58
UnnecessaryModifier Unnecessary modifier 'public' on method 'doFinal': the method is declared in an interface type 3 67
UnnecessaryModifier Unnecessary modifier 'public' on method 'reset': the method is declared in an interface type 3 72

org/bouncycastle/crypto/digests/GeneralDigest.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 84
UselessParentheses Useless parentheses. 4 84
UselessParentheses Useless parentheses. 4 118

org/bouncycastle/crypto/digests/MD5Digest.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 233
UselessParentheses Useless parentheses. 4 234
UselessParentheses Useless parentheses. 4 235
UselessParentheses Useless parentheses. 4 236
UselessParentheses Useless parentheses. 4 237
UselessParentheses Useless parentheses. 4 238
UselessParentheses Useless parentheses. 4 239
UselessParentheses Useless parentheses. 4 240
UselessParentheses Useless parentheses. 4 241
UselessParentheses Useless parentheses. 4 242
UselessParentheses Useless parentheses. 4 243
UselessParentheses Useless parentheses. 4 244
UselessParentheses Useless parentheses. 4 245
UselessParentheses Useless parentheses. 4 246
UselessParentheses Useless parentheses. 4 247
UselessParentheses Useless parentheses. 4 248
UselessParentheses Useless parentheses. 4 253
UselessParentheses Useless parentheses. 4 254
UselessParentheses Useless parentheses. 4 255
UselessParentheses Useless parentheses. 4 256
UselessParentheses Useless parentheses. 4 257
UselessParentheses Useless parentheses. 4 258
UselessParentheses Useless parentheses. 4 259
UselessParentheses Useless parentheses. 4 260
UselessParentheses Useless parentheses. 4 261
UselessParentheses Useless parentheses. 4 262
UselessParentheses Useless parentheses. 4 263
UselessParentheses Useless parentheses. 4 264
UselessParentheses Useless parentheses. 4 265
UselessParentheses Useless parentheses. 4 266
UselessParentheses Useless parentheses. 4 267
UselessParentheses Useless parentheses. 4 268
UselessParentheses Useless parentheses. 4 273
UselessParentheses Useless parentheses. 4 274
UselessParentheses Useless parentheses. 4 275
UselessParentheses Useless parentheses. 4 276
UselessParentheses Useless parentheses. 4 277
UselessParentheses Useless parentheses. 4 278
UselessParentheses Useless parentheses. 4 279
UselessParentheses Useless parentheses. 4 280
UselessParentheses Useless parentheses. 4 281
UselessParentheses Useless parentheses. 4 282
UselessParentheses Useless parentheses. 4 283
UselessParentheses Useless parentheses. 4 284
UselessParentheses Useless parentheses. 4 285
UselessParentheses Useless parentheses. 4 286
UselessParentheses Useless parentheses. 4 287
UselessParentheses Useless parentheses. 4 288
UselessParentheses Useless parentheses. 4 293
UselessParentheses Useless parentheses. 4 294
UselessParentheses Useless parentheses. 4 295
UselessParentheses Useless parentheses. 4 296
UselessParentheses Useless parentheses. 4 297
UselessParentheses Useless parentheses. 4 298
UselessParentheses Useless parentheses. 4 299
UselessParentheses Useless parentheses. 4 300
UselessParentheses Useless parentheses. 4 301
UselessParentheses Useless parentheses. 4 302
UselessParentheses Useless parentheses. 4 303
UselessParentheses Useless parentheses. 4 304
UselessParentheses Useless parentheses. 4 305
UselessParentheses Useless parentheses. 4 306
UselessParentheses Useless parentheses. 4 307
UselessParentheses Useless parentheses. 4 308

org/bouncycastle/crypto/digests/SHA1Digest.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 164
UselessParentheses Useless parentheses. 4 172
UselessParentheses Useless parentheses. 4 180
UselessParentheses Useless parentheses. 4 197

org/bouncycastle/crypto/engines/AESEngine.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 248
UselessParentheses Useless parentheses. 4 257
UselessParentheses Useless parentheses. 4 280
UselessParentheses Useless parentheses. 4 296
UselessParentheses Useless parentheses. 4 296
UselessParentheses Useless parentheses. 4 296
UselessParentheses Useless parentheses. 4 296
UselessParentheses Useless parentheses. 4 296
UselessParentheses Useless parentheses. 4 296
UselessParentheses Useless parentheses. 4 319
UselessParentheses Useless parentheses. 4 322
UselessParentheses Useless parentheses. 4 323
UselessParentheses Useless parentheses. 4 324
UselessParentheses Useless parentheses. 4 324
UselessParentheses Useless parentheses. 4 324
UnnecessaryModifier Unnecessary modifier 'final' on method 'unpackBlock': private methods cannot be overridden 3 429454
UselessParentheses Useless parentheses. 4 435
UselessParentheses Useless parentheses. 4 440
UselessParentheses Useless parentheses. 4 445
UselessParentheses Useless parentheses. 4 450
UnnecessaryModifier Unnecessary modifier 'final' on method 'packBlock': private methods cannot be overridden 3 456481
UnnecessaryModifier Unnecessary modifier 'final' on method 'encryptBlock': private methods cannot be overridden 3 484516
UnnecessaryModifier Unnecessary modifier 'final' on method 'decryptBlock': private methods cannot be overridden 3 518549

org/bouncycastle/crypto/engines/DESEngine.java

Rule Violation Priority Line
AvoidUsingOctalValues Do not start a literal by 0 unless its an octal value 3 125
AvoidUsingOctalValues Do not start a literal by 0 unless its an octal value 3 125
AvoidUsingOctalValues Do not start a literal by 0 unless its an octal value 3 125
AvoidUsingOctalValues Do not start a literal by 0 unless its an octal value 3 125
AvoidUsingOctalValues Do not start a literal by 0 unless its an octal value 3 125
UselessParentheses Useless parentheses. 4 335
UselessParentheses Useless parentheses. 4 429
UselessParentheses Useless parentheses. 4 434
UselessParentheses Useless parentheses. 4 438
UselessParentheses Useless parentheses. 4 441
UselessParentheses Useless parentheses. 4 444
UselessParentheses Useless parentheses. 4 447
UselessParentheses Useless parentheses. 4 491
UselessParentheses Useless parentheses. 4 494
UselessParentheses Useless parentheses. 4 497
UselessParentheses Useless parentheses. 4 500

org/bouncycastle/crypto/params/DESParameters.java

Rule Violation Priority Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2 102

org/sentrysoftware/snmp/client/SnmpClient.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 132136
CollapsibleIfStatements These nested if statements could be combined 3 133135
CollapsibleIfStatements These nested if statements could be combined 3 140144
CollapsibleIfStatements These nested if statements could be combined 3 141143

uk/co/westhawk/snmp/beans/AnnexModemStatusBean.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.awt.*' 4 54
UnnecessaryImport Unused import 'java.text.*' 4 56
UnnecessaryImport Unused import 'java.beans.*' 4 59
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 130
UnusedPrivateField Avoid unused private fields such as 'deviceType'. 3 243
UnusedPrivateField Avoid unused private fields such as 'openCount'. 3 244
UnusedPrivateField Avoid unused private fields such as 'modemStatus'. 3 245
UselessParentheses Useless parentheses. 4 428
UnnecessarySemicolon Unnecessary semicolon 3 513
PrimitiveWrapperInstantiation Do not use `new Long(...)`, prefer `Long.valueOf(...)` 3 546
PrimitiveWrapperInstantiation Do not use `new Long(...)`, prefer `Long.valueOf(...)` 3 644
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 3 646
ExtendsObject No need to explicitly extend Object. 4 699

uk/co/westhawk/snmp/beans/AscendActiveSessionBean.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.awt.*' 4 53
UnnecessaryImport Unused import 'java.text.*' 4 55
UnnecessaryImport Unused import 'java.beans.*' 4 58
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 94
UnusedPrivateField Avoid unused private fields such as 'none'. 3 130
UnusedPrivateField Avoid unused private fields such as 'other'. 3 131
UnusedPrivateField Avoid unused private fields such as 'ppp'. 3 132
UnusedPrivateField Avoid unused private fields such as 'slip'. 3 133
UnusedPrivateField Avoid unused private fields such as 'mpp'. 3 134
UnusedPrivateField Avoid unused private fields such as 'x25'. 3 135
UnusedPrivateField Avoid unused private fields such as 'combinet'. 3 136
UnusedPrivateField Avoid unused private fields such as 'frameRelay'. 3 137
UnusedPrivateField Avoid unused private fields such as 'euraw'. 3 138
UnusedPrivateField Avoid unused private fields such as 'euui'. 3 139
UnusedPrivateField Avoid unused private fields such as 'telnet'. 3 140
UnusedPrivateField Avoid unused private fields such as 'telnetBinary'. 3 141
UnusedPrivateField Avoid unused private fields such as 'rawTcp'. 3 142
UnusedPrivateField Avoid unused private fields such as 'terminalServer'. 3 143
UnusedPrivateField Avoid unused private fields such as 'mp'. 3 144
UnusedPrivateField Avoid unused private fields such as 'virtualConnect'. 3 145
UnusedPrivateField Avoid unused private fields such as 'dchannelX25'. 3 146
UnusedPrivateField Avoid unused private fields such as 'dtpt'. 3 147
AvoidUsingHardCodedIP Do not hard code the IP address 3 179
AvoidUsingHardCodedIP Do not hard code the IP address 3 180
UnnecessarySemicolon Unnecessary semicolon 3 334

uk/co/westhawk/snmp/beans/DialogChannelStatusBean.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.awt.*' 4 55
UnnecessaryImport Unused import 'java.text.*' 4 57
UnnecessaryImport Unused import 'java.beans.*' 4 60
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 117
UselessParentheses Useless parentheses. 4 421
UnnecessarySemicolon Unnecessary semicolon 3 508
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 3 541
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 3 550
ExtendsObject No need to explicitly extend Object. 4 648

uk/co/westhawk/snmp/beans/InterfaceIndexesBean.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.awt.*' 4 53
UnnecessaryImport Unused import 'java.text.*' 4 55
UnnecessaryImport Unused import 'java.beans.*' 4 58
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 93
UnnecessarySemicolon Unnecessary semicolon 3 236

uk/co/westhawk/snmp/beans/IsHostReachableBean.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.awt.*' 4 53
UnnecessaryImport Unused import 'java.beans.*' 4 58
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 85
PrimitiveWrapperInstantiation Do not use `new Boolean(...)`, prefer `Boolean.valueOf` 3 189
PrimitiveWrapperInstantiation Do not use `new Boolean(...)`, prefer `Boolean.valueOf` 3 190

uk/co/westhawk/snmp/beans/NTPrintQBean.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.pdu.*' 4 52
UnnecessaryImport Unused import 'java.awt.*' 4 53
UnnecessaryImport Unused import 'java.text.*' 4 55
UnnecessaryImport Unused import 'java.beans.*' 4 58
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 90
UnnecessarySemicolon Unnecessary semicolon 3 260
UnusedLocalVariable Avoid unused local variables such as 'hashKey'. 3 277

uk/co/westhawk/snmp/beans/NTServiceNamesBean.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.pdu.*' 4 52
UnnecessaryImport Unused import 'java.awt.*' 4 53
UnnecessaryImport Unused import 'java.text.*' 4 55
UnnecessaryImport Unused import 'java.beans.*' 4 58
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 90
UnnecessarySemicolon Unnecessary semicolon 3 262
UnusedLocalVariable Avoid unused local variables such as 'hashKey'. 3 279

uk/co/westhawk/snmp/beans/NTSharedResBean.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.pdu.*' 4 52
UnnecessaryImport Unused import 'java.awt.*' 4 53
UnnecessaryImport Unused import 'java.text.*' 4 55
UnnecessaryImport Unused import 'java.beans.*' 4 58
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 90
UnnecessarySemicolon Unnecessary semicolon 3 265
UnusedLocalVariable Avoid unused local variables such as 'hashKey'. 3 282

uk/co/westhawk/snmp/beans/NTUserNamesBean.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.pdu.*' 4 52
UnnecessaryImport Unused import 'java.awt.*' 4 53
UnnecessaryImport Unused import 'java.text.*' 4 55
UnnecessaryImport Unused import 'java.beans.*' 4 58
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 90
UnnecessarySemicolon Unnecessary semicolon 3 257
UnusedLocalVariable Avoid unused local variables such as 'hashKey'. 3 274

uk/co/westhawk/snmp/beans/NcdPerfDataBean.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.awt.*' 4 53
UnnecessaryImport Unused import 'java.text.*' 4 55
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 106
EmptyCatchBlock Avoid empty catch blocks 3 239241
UnnecessarySemicolon Unnecessary semicolon 3 414
UselessParentheses Useless parentheses. 4 581
PrimitiveWrapperInstantiation Do not use `new Long(...)`, prefer `Long.valueOf(...)` 3 588
PrimitiveWrapperInstantiation Do not use `new Long(...)`, prefer `Long.valueOf(...)` 3 589
UselessParentheses Useless parentheses. 4 681
UnusedLocalVariable Avoid unused local variables such as 'i'. 3 791
UnusedLocalVariable Avoid unused local variables such as 'n'. 3 792
UnusedPrivateField Avoid unused private fields such as 'memory'. 3 841
PrimitiveWrapperInstantiation Do not use `new Long(...)`, prefer `Long.valueOf(...)` 3 883
PrimitiveWrapperInstantiation Do not use `new Long(...)`, prefer `Long.valueOf(...)` 3 884

uk/co/westhawk/snmp/beans/OneInterfaceBean.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.awt.*' 4 53
UnnecessaryImport Unused import 'java.text.*' 4 55
UnnecessaryImport Unused import 'java.beans.*' 4 58
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 86
UnnecessarySemicolon Unnecessary semicolon 3 258

uk/co/westhawk/snmp/beans/OneNTPrintQBean.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.awt.*' 4 53
UnnecessaryImport Unused import 'java.text.*' 4 55
UnnecessaryImport Unused import 'java.beans.*' 4 58
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 91
UnnecessarySemicolon Unnecessary semicolon 3 261

uk/co/westhawk/snmp/beans/OneNTServiceBean.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.awt.*' 4 53
UnnecessaryImport Unused import 'java.text.*' 4 55
UnnecessaryImport Unused import 'java.beans.*' 4 58
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 91
UnnecessarySemicolon Unnecessary semicolon 3 330
UselessParentheses Useless parentheses. 4 359
UselessParentheses Useless parentheses. 4 362

uk/co/westhawk/snmp/beans/OneNTSharedResBean.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.awt.*' 4 53
UnnecessaryImport Unused import 'java.text.*' 4 55
UnnecessaryImport Unused import 'java.beans.*' 4 58
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 91
UnnecessarySemicolon Unnecessary semicolon 3 274

uk/co/westhawk/snmp/beans/SNMPBean.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.pdu.*' 4 52
UnnecessaryImport Unused import 'java.awt.*' 4 53
UnnecessaryImport Unused import 'java.text.*' 4 55
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 128
EmptyCatchBlock Avoid empty catch blocks 3 268270

uk/co/westhawk/snmp/beans/SNMPRunBean.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.stack.*' 4 51
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.pdu.*' 4 52
UnnecessaryImport Unused import 'java.awt.*' 4 53
UnnecessaryImport Unused import 'java.util.*' 4 54
UnnecessaryImport Unused import 'java.text.*' 4 55
UnnecessaryImport Unused import 'java.io.*' 4 57
UnnecessaryImport Unused import 'java.beans.*' 4 58
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 89
EmptyCatchBlock Avoid empty catch blocks 3 161163

uk/co/westhawk/snmp/beans/UsmBeingDiscoveredBean.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.pdu.*' 4 52
UnnecessaryImport Unused import 'java.util.*' 4 55
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 90

uk/co/westhawk/snmp/beans/UsmDiscoveryBean.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.util.*' 4 53
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 76

uk/co/westhawk/snmp/event/DecodedPduEvent.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 63

uk/co/westhawk/snmp/event/RawPduEvent.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.stack.*' 4 51
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 64

uk/co/westhawk/snmp/event/RawPduListener.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'version_id': the field is declared in an interface type 3 6162
UnnecessaryModifier Unnecessary modifier 'public' on method 'rawPduReceived': the method is declared in an interface type 3 68

uk/co/westhawk/snmp/event/RawPduReceivedSupport.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.stack.*' 4 52
UselessParentheses Useless parentheses. 4 172

uk/co/westhawk/snmp/event/RequestPduEvent.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 70

uk/co/westhawk/snmp/event/RequestPduListener.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'version_id': the field is declared in an interface type 3 6162
UnnecessaryModifier Unnecessary modifier 'public' on method 'requestPduReceived': the method is declared in an interface type 3 68

uk/co/westhawk/snmp/event/TrapEvent.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 62

uk/co/westhawk/snmp/event/TrapListener.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'version_id': the field is declared in an interface type 3 6061
UnnecessaryModifier Unnecessary modifier 'public' on method 'trapReceived': the method is declared in an interface type 3 67

uk/co/westhawk/snmp/net/ContextSocketFace.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'version_id': the field is declared in an interface type 3 6263
UnnecessaryModifier Unnecessary modifier 'public' on method 'create': the method is declared in an interface type 3 77
UnnecessaryModifier Unnecessary modifier 'public' on method 'create': the method is declared in an interface type 3 90
UnnecessaryModifier Unnecessary modifier 'public' on method 'getSendToHostAddress': the method is declared in an interface type 3 100
UnnecessaryModifier Unnecessary modifier 'public' on method 'getReceivedFromHostAddress': the method is declared in an interface type 3 111
UnnecessaryModifier Unnecessary modifier 'public' on method 'getLocalSocketAddress': the method is declared in an interface type 3 119
UnnecessaryModifier Unnecessary modifier 'public' on method 'getRemoteSocketAddress': the method is declared in an interface type 3 127
UnnecessaryModifier Unnecessary modifier 'public' on method 'receive': the method is declared in an interface type 3 136
UnnecessaryModifier Unnecessary modifier 'public' on method 'send': the method is declared in an interface type 3 145
UnnecessaryModifier Unnecessary modifier 'public' on method 'close': the method is declared in an interface type 3 150

uk/co/westhawk/snmp/net/StandardSocket.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.stack.*' 4 54
UselessParentheses Useless parentheses. 4 97
UselessParentheses Useless parentheses. 4 122
UselessParentheses Useless parentheses. 4 127

uk/co/westhawk/snmp/net/TCPSocket.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.stack.*' 4 54
UselessParentheses Useless parentheses. 4 114
UselessParentheses Useless parentheses. 4 138
UselessParentheses Useless parentheses. 4 143
EmptyControlStatement Empty if statement 3 200203
EmptyCatchBlock Avoid empty catch blocks 3 281
EmptyCatchBlock Avoid empty catch blocks 3 290

uk/co/westhawk/snmp/pdu/BlockPdu.java

Rule Violation Priority Line
ExtendsObject No need to explicitly extend Object. 4 63
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 65

uk/co/westhawk/snmp/pdu/DiscoveryPdu.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 66

uk/co/westhawk/snmp/pdu/GetNextPdu_vec.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 100

uk/co/westhawk/snmp/pdu/GetPdu_vec.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 99

uk/co/westhawk/snmp/pdu/InformPdu_vec.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 92

uk/co/westhawk/snmp/pdu/InterfaceGetNextPdu.java

Rule Violation Priority Line
UnnecessaryImport Unnecessary import from the current package 'uk.co.westhawk.snmp.pdu.*' 4 53
UnnecessaryImport Unused import 'java.util.*' 4 54
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 73
UselessParentheses Useless parentheses. 4 120
UnusedLocalVariable Avoid unused local variables such as 'answered'. 3 150

uk/co/westhawk/snmp/pdu/InterfaceGetNextPduStub.java

Rule Violation Priority Line
UnnecessaryImport Unnecessary import from the current package 'uk.co.westhawk.snmp.pdu.*' 4 53
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 72
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 3 138
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 3 139
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 3 140
UnusedLocalVariable Avoid unused local variables such as 'oid'. 3 237
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 3 420
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 3 488

uk/co/westhawk/snmp/pdu/InterfacePdu.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 68
UselessParentheses Useless parentheses. 4 278
UselessParentheses Useless parentheses. 4 278
UselessParentheses Useless parentheses. 4 284

uk/co/westhawk/snmp/pdu/InterfacesPdu.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 68

uk/co/westhawk/snmp/pdu/OneGetBulkPdu.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 81

uk/co/westhawk/snmp/pdu/OneGetNextPdu.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 80

uk/co/westhawk/snmp/pdu/OneGetPdu.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 78

uk/co/westhawk/snmp/pdu/OneInformPdu.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 88

uk/co/westhawk/snmp/pdu/OneIntPdu.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 91
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 3 165

uk/co/westhawk/snmp/pdu/OneSetPdu.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 81

uk/co/westhawk/snmp/pdu/OneTrapPduv1.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.util.*' 4 52
UnnecessaryImport Unused import 'java.io.*' 4 53
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.util.*' 4 56
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 68

uk/co/westhawk/snmp/pdu/OneTrapPduv2.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.util.*' 4 52
UnnecessaryImport Unused import 'java.io.*' 4 53
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.util.*' 4 56
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 72

uk/co/westhawk/snmp/pdu/PassiveTrapPduv1.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 76

uk/co/westhawk/snmp/pdu/PassiveTrapPduv2.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 76

uk/co/westhawk/snmp/pdu/SetPdu_vec.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 86

uk/co/westhawk/snmp/pdu/UpSincePdu.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 64

uk/co/westhawk/snmp/stack/AbstractSnmpContext.java

Rule Violation Priority Line
ExtendsObject No need to explicitly extend Object. 4 76
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 79
UselessParentheses Useless parentheses. 4 265
UselessParentheses Useless parentheses. 4 270
UselessParentheses Useless parentheses. 4 275
UselessParentheses Useless parentheses. 4 280
UselessParentheses Useless parentheses. 4 286
UselessParentheses Useless parentheses. 4 709
UselessParentheses Useless parentheses. 4 709
UselessParentheses Useless parentheses. 4 723
UselessParentheses Useless parentheses. 4 723
EmptyControlStatement Empty else statement 3 887890

uk/co/westhawk/snmp/stack/AgentException.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 61

uk/co/westhawk/snmp/stack/AsnDecoderBase.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.util.*' 4 66
UnnecessaryImport Unused import 'java.util.*' 4 68
ExtendsObject No need to explicitly extend Object. 4 78
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 80

uk/co/westhawk/snmp/stack/AsnDecoderv1.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.util.*' 4 55
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 67

uk/co/westhawk/snmp/stack/AsnDecoderv2c.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.util.*' 4 67
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 79

uk/co/westhawk/snmp/stack/AsnDecoderv3.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.util.*' 4 67
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 79
UnusedLocalVariable Avoid unused local variables such as 'contextName'. 3 299
UselessParentheses Useless parentheses. 4 316
UselessParentheses Useless parentheses. 4 393
UselessParentheses Useless parentheses. 4 480

uk/co/westhawk/snmp/stack/AsnEncoderBase.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.util.*' 4 65
ExtendsObject No need to explicitly extend Object. 4 77
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 79

uk/co/westhawk/snmp/stack/AsnEncoderv1.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.util.*' 4 65
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 79

uk/co/westhawk/snmp/stack/AsnEncoderv2c.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.util.*' 4 65
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 79

uk/co/westhawk/snmp/stack/AsnEncoderv3.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 79

uk/co/westhawk/snmp/stack/AsnInteger.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.util.*' 4 67
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 79
UselessParentheses Useless parentheses. 4 132

uk/co/westhawk/snmp/stack/AsnNull.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.util.*' 4 67
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 77
UnusedFormalParameter Avoid unused constructor parameters such as 'in'. 3 94
UnusedFormalParameter Avoid unused constructor parameters such as 'len'. 3 94
UnusedLocalVariable Avoid unused local variables such as 'anotherNull'. 3 132

uk/co/westhawk/snmp/stack/AsnObject.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.util.*' 4 67
ExtendsObject No need to explicitly extend Object. 4 85
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 87
UselessParentheses Useless parentheses. 4 245
UselessParentheses Useless parentheses. 4 255
UselessParentheses Useless parentheses. 4 258
UselessParentheses Useless parentheses. 4 424
UselessParentheses Useless parentheses. 4 455

uk/co/westhawk/snmp/stack/AsnObjectId.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 103
UselessParentheses Useless parentheses. 4 173
EmptyCatchBlock Avoid empty catch blocks 3 238240
UselessParentheses Useless parentheses. 4 266
UnusedLocalVariable Avoid unused local variables such as 'val'. 3 352
EmptyControlStatement Empty for statement 3 421422
UselessParentheses Useless parentheses. 4 709
UselessParentheses Useless parentheses. 4 709
UselessParentheses Useless parentheses. 4 713
UselessParentheses Useless parentheses. 4 713
UselessParentheses Useless parentheses. 4 718
UselessParentheses Useless parentheses. 4 718

uk/co/westhawk/snmp/stack/AsnOctets.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 99
EmptyControlStatement Empty else statement 3 225227
UnusedLocalVariable Avoid unused local variables such as 'str'. 3 357
UnnecessarySemicolon Unnecessary semicolon 3 369
UselessParentheses Useless parentheses. 4 591
UselessParentheses Useless parentheses. 4 799
UnusedLocalVariable Avoid unused local variables such as 'minUTC'. 3 814

uk/co/westhawk/snmp/stack/AsnOctetsPrintableFace.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'version_id': the field is declared in an interface type 3 7172
UnnecessaryModifier Unnecessary modifier 'public' on method 'isPrintable': the method is declared in an interface type 3 84
UnnecessaryModifier Unnecessary modifier 'public' on method 'toInternationalDisplayString': the method is declared in an interface type 3 105

uk/co/westhawk/snmp/stack/AsnPduSequence.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.util.*' 4 67
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 78
UselessParentheses Useless parentheses. 4 91
UselessParentheses Useless parentheses. 4 97
UselessParentheses Useless parentheses. 4 103
UselessParentheses Useless parentheses. 4 132

uk/co/westhawk/snmp/stack/AsnPrimitive.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.util.*' 4 53
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 67

uk/co/westhawk/snmp/stack/AsnSequence.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 79
UselessParentheses Useless parentheses. 4 120
UselessParentheses Useless parentheses. 4 182
UselessParentheses Useless parentheses. 4 211
UselessParentheses Useless parentheses. 4 234
UselessParentheses Useless parentheses. 4 259
EmptyCatchBlock Avoid empty catch blocks 3 280282

uk/co/westhawk/snmp/stack/AsnTrapPduv1Sequence.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.util.*' 4 53
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 64

uk/co/westhawk/snmp/stack/AsnUnsInteger.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.util.*' 4 67
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 83
UselessParentheses Useless parentheses. 4 152

uk/co/westhawk/snmp/stack/AsnUnsInteger64.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.util.*' 4 67
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 81
UselessParentheses Useless parentheses. 4 135

uk/co/westhawk/snmp/stack/BitsHelper.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.io.*' 4 52
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 83
UnusedLocalVariable Avoid unused local variables such as 'mask'. 3 157
UselessParentheses Useless parentheses. 4 167

uk/co/westhawk/snmp/stack/DecodingException.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 60

uk/co/westhawk/snmp/stack/DefaultAsnOctetsPrintable.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 111115
UselessParentheses Useless parentheses. 4 111

uk/co/westhawk/snmp/stack/DefaultTrapContext.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.util.*' 4 53
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.event.*' 4 55
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.net.*' 4 56
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.util.*' 4 57
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 118

uk/co/westhawk/snmp/stack/DefaultUsmAgent.java

Rule Violation Priority Line
AvoidUsingHardCodedIP Do not hard code the IP address 3 106

uk/co/westhawk/snmp/stack/EncodingException.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 60

uk/co/westhawk/snmp/stack/GetBulkPdu.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 87

uk/co/westhawk/snmp/stack/GetNextPdu.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 75

uk/co/westhawk/snmp/stack/GetPdu.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 63

uk/co/westhawk/snmp/stack/InformPdu.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 83

uk/co/westhawk/snmp/stack/ListeningContext.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.util.*' 4 53
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 105

uk/co/westhawk/snmp/stack/ListeningContextFace.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'version_id': the field is declared in an interface type 3 6263
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'DEFAULT_TRAP_PORT': the field is declared in an interface type 3 68
UnnecessaryModifier Unnecessary modifier 'public' on method 'getPort': the method is declared in an interface type 3 76
UnnecessaryModifier Unnecessary modifier 'public' on method 'getBindAddress': the method is declared in an interface type 3 85
UnnecessaryModifier Unnecessary modifier 'public' on method 'getTypeSocket': the method is declared in an interface type 3 94
UnnecessaryModifier Unnecessary modifier 'public' on method 'getMaxRecvSize': the method is declared in an interface type 3 105
UnnecessaryModifier Unnecessary modifier 'public' on method 'setMaxRecvSize': the method is declared in an interface type 3 115
UnnecessaryModifier Unnecessary modifier 'public' on method 'destroy': the method is declared in an interface type 3 121
UnnecessaryModifier Unnecessary modifier 'public' on method 'addRawPduListener': the method is declared in an interface type 3 147148
UnnecessaryModifier Unnecessary modifier 'public' on method 'removeRawPduListener': the method is declared in an interface type 3 156
UnnecessaryModifier Unnecessary modifier 'public' on method 'addUnhandledRawPduListener': the method is declared in an interface type 3 173174
UnnecessaryModifier Unnecessary modifier 'public' on method 'removeUnhandledRawPduListener': the method is declared in an interface type 3 182

uk/co/westhawk/snmp/stack/ListeningContextPool.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 67

uk/co/westhawk/snmp/stack/MultiResponsePdu.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 95
EmptyCatchBlock Avoid empty catch blocks 3 282

uk/co/westhawk/snmp/stack/PassiveSnmpContext.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 81

uk/co/westhawk/snmp/stack/PassiveSnmpContextv2c.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 82

uk/co/westhawk/snmp/stack/Pdu.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 79
UselessParentheses Useless parentheses. 4 260
UselessParentheses Useless parentheses. 4 285
UnusedPrivateMethod Avoid unused private methods such as 'dump(Vector,varbind)'. 3 427
UnnecessarySemicolon Unnecessary semicolon 3 683
UselessParentheses Useless parentheses. 4 701
UselessParentheses Useless parentheses. 4 701
UselessParentheses Useless parentheses. 4 701
CollapsibleIfStatements These nested if statements could be combined 3 728731
EmptyCatchBlock Avoid empty catch blocks 3 905

uk/co/westhawk/snmp/stack/PduException.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 58

uk/co/westhawk/snmp/stack/ReportPdu.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 71

uk/co/westhawk/snmp/stack/ResponsePdu.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 78

uk/co/westhawk/snmp/stack/SetPdu.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 77

uk/co/westhawk/snmp/stack/SnmpConstants.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'version_id': the field is declared in an interface type 3 5960
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ASN_BOOLEAN': the field is declared in an interface type 3 62
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ASN_INTEGER': the field is declared in an interface type 3 63
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ASN_BIT_STR': the field is declared in an interface type 3 64
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ASN_OCTET_STR': the field is declared in an interface type 3 65
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ASN_NULL': the field is declared in an interface type 3 66
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ASN_OBJECT_ID': the field is declared in an interface type 3 67
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ASN_SEQUENCE': the field is declared in an interface type 3 68
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ASN_SET': the field is declared in an interface type 3 69
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ASN_UNIVERSAL': the field is declared in an interface type 3 71
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ASN_APPLICATION': the field is declared in an interface type 3 72
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ASN_CONTEXT': the field is declared in an interface type 3 73
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ASN_PRIVATE': the field is declared in an interface type 3 74
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ASN_PRIMITIVE': the field is declared in an interface type 3 76
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ASN_CONSTRUCTOR': the field is declared in an interface type 3 77
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ASN_LONG_LEN': the field is declared in an interface type 3 79
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ASN_EXTENSION_ID': the field is declared in an interface type 3 80
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ASN_BIT8': the field is declared in an interface type 3 81
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'INTEGER': the field is declared in an interface type 3 83
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'STRING': the field is declared in an interface type 3 84
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'OBJID': the field is declared in an interface type 3 85
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'NULLOBJ': the field is declared in an interface type 3 86
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'IPADDRESS': the field is declared in an interface type 3 90
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'COUNTER': the field is declared in an interface type 3 91
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'GAUGE': the field is declared in an interface type 3 92
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'TIMETICKS': the field is declared in an interface type 3 93
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'OPAQUE': the field is declared in an interface type 3 94
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'COUNTER64': the field is declared in an interface type 3 95
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'NSAP_ADDRESS': the field is declared in an interface type 3 103
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'OBSOLETED_RFC1442_UINTEGER32': the field is declared in an interface type 3 115
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SMI_V2_UINTEGER32': the field is declared in an interface type 3 121
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_TRAP_COLDSTART': the field is declared in an interface type 3 126
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_TRAP_WARMSTART': the field is declared in an interface type 3 130
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_TRAP_LINKDOWN': the field is declared in an interface type 3 134
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_TRAP_LINKUP': the field is declared in an interface type 3 138
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_TRAP_AUTHFAIL': the field is declared in an interface type 3 142
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_TRAP_EGPNEIGHBORLOSS': the field is declared in an interface type 3 146
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_TRAP_ENTERPRISESPECIFIC': the field is declared in an interface type 3 150
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_VAR_NOSUCHOBJECT': the field is declared in an interface type 3 157
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_VAR_NOSUCHINSTANCE': the field is declared in an interface type 3 162
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_VAR_ENDOFMIBVIEW': the field is declared in an interface type 3 168
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_NOERROR': the field is declared in an interface type 3 175
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_TOOBIG': the field is declared in an interface type 3 181
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_NOSUCHNAME': the field is declared in an interface type 3 187
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_BADVALUE': the field is declared in an interface type 3 193
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_READONLY': the field is declared in an interface type 3 198
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_GENERR': the field is declared in an interface type 3 204
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_NOACCESS': the field is declared in an interface type 3 212
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_WRONGTYPE': the field is declared in an interface type 3 219
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_WRONGLENGTH': the field is declared in an interface type 3 226
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_WRONGENCODING': the field is declared in an interface type 3 232
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_WRONGVALUE': the field is declared in an interface type 3 238
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_NOCREATION': the field is declared in an interface type 3 246
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_INCONSISTENTVALUE': the field is declared in an interface type 3 253
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_RESOURCEUNAVAILABLE': the field is declared in an interface type 3 260
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_COMMITFAILED': the field is declared in an interface type 3 266
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_UNDOFAILED': the field is declared in an interface type 3 272
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_AUTHORIZATIONERR': the field is declared in an interface type 3 277
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_NOTWRITABLE': the field is declared in an interface type 3 292
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_INCONSISTENTNAME': the field is declared in an interface type 3 299
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_DECODING_EXC': the field is declared in an interface type 3 304
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_DECODINGASN_EXC': the field is declared in an interface type 3 310
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_ERR_DECODINGPKTLNGTH_EXC': the field is declared in an interface type 3 316
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_VERSION_1': the field is declared in an interface type 3 321
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_VERSION_2c': the field is declared in an interface type 3 325
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMP_VERSION_3': the field is declared in an interface type 3 333
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'GET_REQ_MSG': the field is declared in an interface type 3 338
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'GETNEXT_REQ_MSG': the field is declared in an interface type 3 342
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'GET_RSP_MSG': the field is declared in an interface type 3 346
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'SET_REQ_MSG': the field is declared in an interface type 3 350
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'TRP_REQ_MSG': the field is declared in an interface type 3 354
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'GETBULK_REQ_MSG': the field is declared in an interface type 3 359
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'INFORM_REQ_MSG': the field is declared in an interface type 3 363
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'TRPV2_REQ_MSG': the field is declared in an interface type 3 367
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'GET_RPRT_MSG': the field is declared in an interface type 3 371
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'CONS_SEQ': the field is declared in an interface type 3 373

uk/co/westhawk/snmp/stack/SnmpContext.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.net.*' 4 65
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 88
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 3 219
EmptyControlStatement Empty else statement 3 242244

uk/co/westhawk/snmp/stack/SnmpContextBasisFace.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.net.*' 4 52
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'version_id': the field is declared in an interface type 3 6869
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'DEFAULT_PORT': the field is declared in an interface type 3 74
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'STANDARD_SOCKET': the field is declared in an interface type 3 78
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'TCP_SOCKET': the field is declared in an interface type 3 82
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'MAXPDU': the field is declared in an interface type 3 88
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'MSS': the field is declared in an interface type 3 93
UnnecessaryModifier Unnecessary modifier 'public' on method 'getVersion': the method is declared in an interface type 3 104
UnnecessaryModifier Unnecessary modifier 'public' on method 'getHost': the method is declared in an interface type 3 111
UnnecessaryModifier Unnecessary modifier 'public' on method 'getPort': the method is declared in an interface type 3 118
UnnecessaryModifier Unnecessary modifier 'public' on method 'getBindAddress': the method is declared in an interface type 3 128
UnnecessaryModifier Unnecessary modifier 'public' on method 'getTypeSocket': the method is declared in an interface type 3 137
UnnecessaryModifier Unnecessary modifier 'public' on method 'getSendToHostAddress': the method is declared in an interface type 3 148
UnnecessaryModifier Unnecessary modifier 'public' on method 'getReceivedFromHostAddress': the method is declared in an interface type 3 159
UnnecessaryModifier Unnecessary modifier 'public' on method 'addPdu': the method is declared in an interface type 3 170171
UnnecessaryModifier Unnecessary modifier 'public' on method 'removePdu': the method is declared in an interface type 3 182
UnnecessaryModifier Unnecessary modifier 'public' on method 'encodePacket': the method is declared in an interface type 3 198200
UnnecessaryModifier Unnecessary modifier 'public' on method 'sendPacket': the method is declared in an interface type 3 210
UnnecessaryModifier Unnecessary modifier 'public' on method 'destroy': the method is declared in an interface type 3 216
UnnecessaryModifier Unnecessary modifier 'public' on method 'isDestroyed': the method is declared in an interface type 3 222
UnnecessaryModifier Unnecessary modifier 'public' on method 'addTrapListener': the method is declared in an interface type 3 239
UnnecessaryModifier Unnecessary modifier 'public' on method 'removeTrapListener': the method is declared in an interface type 3 255
UnnecessaryModifier Unnecessary modifier 'public' on method 'addTrapListener': the method is declared in an interface type 3 275
UnnecessaryModifier Unnecessary modifier 'public' on method 'removeTrapListener': the method is declared in an interface type 3 295
UnnecessaryModifier Unnecessary modifier 'public' on method 'addTrapListener': the method is declared in an interface type 3 315
UnnecessaryModifier Unnecessary modifier 'public' on method 'removeTrapListener': the method is declared in an interface type 3 335
UnnecessaryModifier Unnecessary modifier 'public' on method 'addRequestPduListener': the method is declared in an interface type 3 360
UnnecessaryModifier Unnecessary modifier 'public' on method 'removeRequestPduListener': the method is declared in an interface type 3 378
UnnecessaryModifier Unnecessary modifier 'public' on method 'addRequestPduListener': the method is declared in an interface type 3 403
UnnecessaryModifier Unnecessary modifier 'public' on method 'removeRequestPduListener': the method is declared in an interface type 3 423
UnnecessaryModifier Unnecessary modifier 'public' on method 'addRequestPduListener': the method is declared in an interface type 3 448
UnnecessaryModifier Unnecessary modifier 'public' on method 'removeRequestPduListener': the method is declared in an interface type 3 468
UnnecessaryModifier Unnecessary modifier 'public' on method 'processIncomingPdu': the method is declared in an interface type 3 476477
UnnecessaryModifier Unnecessary modifier 'public' on method 'clone': the method is declared in an interface type 3 486
UnnecessaryModifier Unnecessary modifier 'public' on method 'getHashKey': the method is declared in an interface type 3 494

uk/co/westhawk/snmp/stack/SnmpContextFace.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.event.*' 4 51
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'version_id': the field is declared in an interface type 3 6768
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'DEFAULT_COMMUNITY': the field is declared in an interface type 3 73
UnnecessaryModifier Unnecessary modifier 'public' on method 'getCommunity': the method is declared in an interface type 3 78
UnnecessaryModifier Unnecessary modifier 'public' on method 'setCommunity': the method is declared in an interface type 3 88

uk/co/westhawk/snmp/stack/SnmpContextPool.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 93
EmptyCatchBlock Avoid empty catch blocks 3 254

uk/co/westhawk/snmp/stack/SnmpContextPoolItem.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.util.*' 4 52
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.event.*' 4 53
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 72

uk/co/westhawk/snmp/stack/SnmpContextv2c.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.net.*' 4 52
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 75
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 3 172
UselessOverridingMethod Overriding method merely calls super 3 279282

uk/co/westhawk/snmp/stack/SnmpContextv2cFace.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'version_id': the field is declared in an interface type 3 6364

uk/co/westhawk/snmp/stack/SnmpContextv2cPool.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 74

uk/co/westhawk/snmp/stack/SnmpContextv3.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.net.*' 4 51
UnnecessaryImport Unused import 'java.util.*' 4 53
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.pdu.*' 4 55
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.util.*' 4 56
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 92
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 3 298
CollapsibleIfStatements These nested if statements could be combined 3 453459

uk/co/westhawk/snmp/stack/SnmpContextv3Basis.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.net.*' 4 51
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 115
UnusedLocalVariable Avoid unused local variables such as 'timew'. 3 187
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 3 610
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 3 617
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 3 621
UselessParentheses Useless parentheses. 4 657
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 3 867
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 3 882
CollapsibleIfStatements These nested if statements could be combined 3 902906
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 3 956
UselessParentheses Useless parentheses. 4 973977

uk/co/westhawk/snmp/stack/SnmpContextv3Discovery.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.net.*' 4 51
UnnecessaryImport Unused import 'java.util.*' 4 53
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.pdu.*' 4 55
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.util.*' 4 56
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.event.*' 4 57
UnnecessaryImport Unused import 'uk.co.westhawk.snmp.beans.*' 4 58
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 82
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 3 196

uk/co/westhawk/snmp/stack/SnmpContextv3Face.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'version_id': the field is declared in an interface type 3 6667
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMPv1_Security_Model': the field is declared in an interface type 3 73
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SNMPv2c_Security_Model': the field is declared in an interface type 3 79
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'USM_Security_Model': the field is declared in an interface type 3 85
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'MD5_PROTOCOL': the field is declared in an interface type 3 90
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SHA1_PROTOCOL': the field is declared in an interface type 3 95
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'DES_ENCRYPT': the field is declared in an interface type 3 100
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'AES_ENCRYPT': the field is declared in an interface type 3 105
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'Default_UserName': the field is declared in an interface type 3 111
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'Default_ContextName': the field is declared in an interface type 3 116
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ProtocolNames': the field is declared in an interface type 3 121127
UnnecessaryModifier Unnecessary modifier 'public' on method 'getUserName': the method is declared in an interface type 3 134
UnnecessaryModifier Unnecessary modifier 'public' on method 'setUserName': the method is declared in an interface type 3 145
UnnecessaryModifier Unnecessary modifier 'public' on method 'isUseAuthentication': the method is declared in an interface type 3 153
UnnecessaryModifier Unnecessary modifier 'public' on method 'setUseAuthentication': the method is declared in an interface type 3 161
UnnecessaryModifier Unnecessary modifier 'public' on method 'getUserAuthenticationPassword': the method is declared in an interface type 3 169
UnnecessaryModifier Unnecessary modifier 'public' on method 'setUserAuthenticationPassword': the method is declared in an interface type 3 178179
UnnecessaryModifier Unnecessary modifier 'public' on method 'setAuthenticationProtocol': the method is declared in an interface type 3 190191
UnnecessaryModifier Unnecessary modifier 'public' on method 'getAuthenticationProtocol': the method is declared in an interface type 3 202
UnnecessaryModifier Unnecessary modifier 'public' on method 'setPrivacyProtocol': the method is declared in an interface type 3 213214
UnnecessaryModifier Unnecessary modifier 'public' on method 'getPrivacyProtocol': the method is declared in an interface type 3 225
UnnecessaryModifier Unnecessary modifier 'public' on method 'isUsePrivacy': the method is declared in an interface type 3 233
UnnecessaryModifier Unnecessary modifier 'public' on method 'setUsePrivacy': the method is declared in an interface type 3 241
UnnecessaryModifier Unnecessary modifier 'public' on method 'getUserPrivacyPassword': the method is declared in an interface type 3 249
UnnecessaryModifier Unnecessary modifier 'public' on method 'setUserPrivacyPassword': the method is declared in an interface type 3 258259
UnnecessaryModifier Unnecessary modifier 'public' on method 'setContextEngineId': the method is declared in an interface type 3 284285
UnnecessaryModifier Unnecessary modifier 'public' on method 'getContextEngineId': the method is declared in an interface type 3 292
UnnecessaryModifier Unnecessary modifier 'public' on method 'setContextName': the method is declared in an interface type 3 305
UnnecessaryModifier Unnecessary modifier 'public' on method 'getContextName': the method is declared in an interface type 3 312
UnnecessaryModifier Unnecessary modifier 'public' on method 'addDiscoveryPdu': the method is declared in an interface type 3 324325
UnnecessaryModifier Unnecessary modifier 'public' on method 'encodeDiscoveryPacket': the method is declared in an interface type 3 337339
UnnecessaryModifier Unnecessary modifier 'public' on method 'setUsmAgent': the method is declared in an interface type 3 350
UnnecessaryModifier Unnecessary modifier 'public' on method 'getUsmAgent': the method is declared in an interface type 3 358

uk/co/westhawk/snmp/stack/SnmpContextv3Pool.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 90

uk/co/westhawk/snmp/stack/TimeWindow.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 76
UselessParentheses Useless parentheses. 4 270
UselessParentheses Useless parentheses. 4 317
UselessParentheses Useless parentheses. 4 374

uk/co/westhawk/snmp/stack/TimeWindowNode.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 60

uk/co/westhawk/snmp/stack/Transmitter.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.util.*' 4 53
ExtendsObject No need to explicitly extend Object. 4 62
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 64
UselessParentheses Useless parentheses. 4 139
UselessParentheses Useless parentheses. 4 139
UnnecessarySemicolon Unnecessary semicolon 3 147

uk/co/westhawk/snmp/stack/TrapPduv1.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.net.*' 4 54
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 75
UselessParentheses Useless parentheses. 4 273
EmptyCatchBlock Avoid empty catch blocks 3 348

uk/co/westhawk/snmp/stack/TrapPduv2.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 85

uk/co/westhawk/snmp/stack/UsmAgent.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'version_id': the field is declared in an interface type 3 7980
UnnecessaryModifier Unnecessary modifier 'public' on field 'MYFAKEHOSTNAME': the field is declared in an interface type 3 86
UnnecessaryModifier Unnecessary modifier 'public' on method 'getSnmpEngineId': the method is declared in an interface type 3 100
UnnecessaryModifier Unnecessary modifier 'public' on method 'getSnmpEngineBoots': the method is declared in an interface type 3 107
UnnecessaryModifier Unnecessary modifier 'public' on method 'getSnmpEngineTime': the method is declared in an interface type 3 114
UnnecessaryModifier Unnecessary modifier 'public' on method 'getUsmStatsUnknownEngineIDs': the method is declared in an interface type 3 120
UnnecessaryModifier Unnecessary modifier 'public' on method 'getUsmStatsNotInTimeWindows': the method is declared in an interface type 3 126
UnnecessaryModifier Unnecessary modifier 'public' on method 'setSnmpContext': the method is declared in an interface type 3 131

uk/co/westhawk/snmp/stack/usmStatsConstants.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'version_id': the field is declared in an interface type 3 6768
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'usmStatsUnsupportedSecLevels': the field is declared in an interface type 3 75
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'usmStatsNotInTimeWindows': the field is declared in an interface type 3 82
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'usmStatsUnknownUserNames': the field is declared in an interface type 3 89
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'usmStatsUnknownEngineIDs': the field is declared in an interface type 3 96
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'usmStatsWrongDigests': the field is declared in an interface type 3 103
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'usmStatsDecryptionErrors': the field is declared in an interface type 3 109
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'usmStatsOids': the field is declared in an interface type 3 114122
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'usmStatsStrings': the field is declared in an interface type 3 127135

uk/co/westhawk/snmp/stack/varbind.java

Rule Violation Priority Line
ExtendsObject No need to explicitly extend Object. 4 82
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 84
UselessParentheses Useless parentheses. 4 216

uk/co/westhawk/snmp/util/SnmpUtilities.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'org.bouncycastle.crypto.*' 4 55
ExtendsObject No need to explicitly extend Object. 4 68
UnusedPrivateField Avoid unused private fields such as 'version_id'. 3 70
UnusedLocalVariable Avoid unused local variables such as 'mask'. 3 118
UselessParentheses Useless parentheses. 4 125
UselessParentheses Useless parentheses. 4 158
UselessParentheses Useless parentheses. 4 158
UselessParentheses Useless parentheses. 4 206
UselessParentheses Useless parentheses. 4 249
UselessParentheses Useless parentheses. 4 251
UselessParentheses Useless parentheses. 4 274
UselessParentheses Useless parentheses. 4 302
UselessParentheses Useless parentheses. 4 302
UselessParentheses Useless parentheses. 4 329
UselessParentheses Useless parentheses. 4 329
UselessParentheses Useless parentheses. 4 369
UselessParentheses Useless parentheses. 4 437
UselessParentheses Useless parentheses. 4 485
UselessParentheses Useless parentheses. 4 485
UselessParentheses Useless parentheses. 4 500
UselessParentheses Useless parentheses. 4 500
UselessParentheses Useless parentheses. 4 1042
UselessParentheses Useless parentheses. 4 1052
No results.