1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- generated by Sonar -->
4 <description>Sonar way</description>
5 <rule ref="rulesets/unusedcode.xml/UnusedLocalVariable">
8 <rule ref="rulesets/finalizers.xml/AvoidCallingFinalize">
11 <rule ref="rulesets/unusedcode.xml/UnusedPrivateField">
12 <priority>3</priority>
14 <rule ref="rulesets/finalizers.xml/FinalizeOverloaded">
15 <priority>3</priority>
17 <rule ref="rulesets/finalizers.xml/FinalizeDoesNotCallSuperFinalize">
18 <priority>3</priority>
20 <rule ref="rulesets/finalizers.xml/EmptyFinalizer">
21 <priority>3</priority>
23 <rule ref="rulesets/unusedcode.xml/UnusedPrivateMethod">
24 <priority>3</priority>
26 <rule ref="rulesets/unusedcode.xml/UnusedFormalParameter">
27 <priority>3</priority>
29 <rule ref="rulesets/controversial.xml/UnusedModifier">
30 <priority>5</priority>
32 <rule ref="rulesets/controversial.xml/DontImportSun">
33 <priority>4</priority>
35 <rule ref="rulesets/design.xml/SingularField">
36 <priority>4</priority>
38 <rule ref="rulesets/coupling.xml/LooseCoupling">
39 <priority>3</priority>
41 <rule ref="rulesets/optimizations.xml/UseArrayListInsteadOfVector">
42 <priority>3</priority>
44 <rule ref="rulesets/optimizations.xml/UseArraysAsList">
45 <priority>3</priority>
47 <rule ref="rulesets/optimizations.xml/AvoidArrayLoops">
48 <priority>3</priority>
50 <rule ref="rulesets/basic.xml/EmptyIfStmt">
51 <priority>2</priority>
53 <rule ref="rulesets/basic.xml/EmptyWhileStmt">
54 <priority>2</priority>
56 <rule ref="rulesets/basic.xml/EmptyTryBlock">
57 <priority>3</priority>
59 <rule ref="rulesets/basic.xml/EmptyFinallyBlock">
60 <priority>2</priority>
62 <rule ref="rulesets/basic.xml/EmptySwitchStatements">
63 <priority>3</priority>
65 <rule ref="rulesets/basic.xml/EmptySynchronizedBlock">
66 <priority>2</priority>
68 <rule ref="rulesets/basic.xml/EmptyStaticInitializer">
69 <priority>3</priority>
71 <rule ref="rulesets/basic.xml/UnconditionalIfStatement">
72 <priority>2</priority>
74 <rule ref="rulesets/basic.xml/BooleanInstantiation">
75 <priority>3</priority>
77 <rule ref="rulesets/basic.xml/CollapsibleIfStatements">
78 <priority>4</priority>
80 <rule ref="rulesets/basic.xml/UselessOverridingMethod">
81 <priority>3</priority>
83 <rule ref="rulesets/basic.xml/ClassCastExceptionWithToArray">
84 <priority>3</priority>
86 <rule ref="rulesets/basic.xml/AvoidDecimalLiteralsInBigDecimalConstructor">
87 <priority>3</priority>
89 <rule ref="rulesets/basic.xml/UselessOperationOnImmutable">
90 <priority>2</priority>
92 <rule ref="rulesets/basic.xml/UnusedNullCheckInEquals">
93 <priority>3</priority>
95 <rule ref="rulesets/basic.xml/BrokenNullCheck">
96 <priority>2</priority>
98 <rule ref="rulesets/basic.xml/BigIntegerInstantiation">
99 <priority>3</priority>
101 <rule ref="rulesets/design.xml/ConstructorCallsOverridableMethod">
102 <priority>3</priority>
104 <rule ref="rulesets/design.xml/FinalFieldCouldBeStatic">
105 <priority>4</priority>
107 <rule ref="rulesets/design.xml/CloseResource">
108 <priority>3</priority>
110 <rule ref="rulesets/design.xml/EqualsNull">
111 <priority>2</priority>
113 <rule ref="rulesets/design.xml/InstantiationToGetClass">
114 <priority>3</priority>
116 <rule ref="rulesets/design.xml/IdempotentOperations">
117 <priority>3</priority>
119 <rule ref="rulesets/design.xml/MissingStaticMethodInNonInstantiatableClass">
120 <priority>3</priority>
122 <rule ref="rulesets/design.xml/AvoidInstanceofChecksInCatchClause">
123 <priority>4</priority>
125 <rule ref="rulesets/design.xml/SimplifyConditional">
126 <priority>3</priority>
128 <rule ref="rulesets/design.xml/CompareObjectsWithEquals">
129 <priority>3</priority>
131 <rule ref="rulesets/design.xml/UnnecessaryLocalBeforeReturn">
132 <priority>3</priority>
134 <rule ref="rulesets/design.xml/PreserveStackTrace">
135 <priority>3</priority>
137 <rule ref="rulesets/sunsecure.xml/ArrayIsStoredDirectly">
138 <priority>2</priority>
140 <rule ref="rulesets/strictexception.xml/AvoidCatchingThrowable">
141 <priority>2</priority>
143 <rule ref="rulesets/strictexception.xml/SignatureDeclareThrowsException">
144 <priority>3</priority>
146 <rule ref="rulesets/strictexception.xml/ExceptionAsFlowControl">
147 <priority>3</priority>
149 <rule ref="rulesets/strictexception.xml/AvoidCatchingNPE">
150 <priority>3</priority>
152 <rule ref="rulesets/strictexception.xml/AvoidThrowingRawExceptionTypes">
153 <priority>3</priority>
155 <rule ref="rulesets/strictexception.xml/AvoidThrowingNullPointerException">
156 <priority>3</priority>
158 <rule ref="rulesets/strictexception.xml/AvoidRethrowingException">
159 <priority>3</priority>
161 <rule ref="rulesets/strings.xml/AvoidDuplicateLiterals">
162 <priority>3</priority>
164 <rule ref="rulesets/strings.xml/StringInstantiation">
165 <priority>3</priority>
167 <rule ref="rulesets/strings.xml/StringToString">
168 <priority>3</priority>
170 <rule ref="rulesets/strings.xml/InefficientStringBuffering">
171 <priority>3</priority>
173 <rule ref="rulesets/strings.xml/UnnecessaryCaseChange">
174 <priority>4</priority>
176 <rule ref="rulesets/strings.xml/UseStringBufferLength">
177 <priority>4</priority>
179 <rule ref="rulesets/strings.xml/UseIndexOfChar">
180 <priority>3</priority>
182 <rule ref="rulesets/strings.xml/UselessStringValueOf">
183 <priority>4</priority>
185 <rule ref="rulesets/strings.xml/StringBufferInstantiationWithChar">
186 <priority>3</priority>
188 <rule ref="rulesets/codesize.xml/NcssMethodCount">
189 <priority>3</priority>
191 <property name="minimum" value="50"/>
194 <rule ref="rulesets/codesize.xml/NcssTypeCount">
195 <priority>3</priority>
197 <property name="minimum" value="800"/>
200 <rule ref="rulesets/imports.xml/DontImportJavaLang">
201 <priority>4</priority>
203 <rule ref="rulesets/clone.xml/CloneThrowsCloneNotSupportedException">
204 <priority>3</priority>
206 <rule ref="rulesets/logging-jakarta-commons.xml/UseCorrectExceptionLogging">
207 <priority>3</priority>
209 <rule ref="rulesets/naming.xml/ClassNamingConventions">
210 <priority>3</priority>
212 <rule ref="rulesets/naming.xml/AvoidDollarSigns">
213 <priority>4</priority>
215 <rule ref="rulesets/naming.xml/MethodWithSameNameAsEnclosingClass">
216 <priority>3</priority>
218 <rule ref="rulesets/naming.xml/SuspiciousHashcodeMethodName">
219 <priority>3</priority>
221 <rule ref="rulesets/naming.xml/SuspiciousConstantFieldName">
222 <priority>3</priority>
224 <rule ref="rulesets/naming.xml/SuspiciousEqualsMethodName">
225 <priority>2</priority>
227 <rule ref="rulesets/migrating.xml/ReplaceVectorWithList">
228 <priority>3</priority>
230 <rule ref="rulesets/migrating.xml/ReplaceHashtableWithMap">
231 <priority>3</priority>
233 <rule ref="rulesets/migrating.xml/ReplaceEnumerationWithIterator">
234 <priority>3</priority>
236 <rule ref="rulesets/migrating.xml/AvoidEnumAsIdentifier">
237 <priority>3</priority>
239 <rule ref="rulesets/migrating.xml/AvoidAssertAsIdentifier">
240 <priority>3</priority>
242 <rule ref="rulesets/migrating.xml/IntegerInstantiation">
243 <priority>3</priority>
245 <rule ref="rulesets/logging-java.xml/SystemPrintln">
246 <priority>3</priority>
248 <rule ref="rulesets/logging-java.xml/AvoidPrintStackTrace">
249 <priority>3</priority>
251 <rule ref="rulesets/braces.xml/IfStmtsMustUseBraces">
252 <priority>3</priority>
254 <rule ref="rulesets/braces.xml/WhileLoopsMustUseBraces">
255 <priority>3</priority>
257 <rule ref="rulesets/braces.xml/IfElseStmtsMustUseBraces">
258 <priority>3</priority>
260 <rule ref="rulesets/braces.xml/ForLoopsMustUseBraces">
261 <priority>3</priority>