Skip to content

Commit

Permalink
Use SuppressWarning Annotation to Fix PMD Violations
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorCavichioli committed Feb 20, 2024
1 parent 9472e38 commit 6c01ccc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
* WITH default_time_to_live = 600 AND gc_grace_seconds = 0;
* </pre>
*/
@SuppressWarnings({"GodClass", "TooManyFields", "SingularField", "ExcessiveMethodLength"})
public final class CASLockFactory implements LockFactory, Closeable
{
private static final Logger LOG = LoggerFactory.getLogger(CASLockFactory.class);
Expand Down
4 changes: 0 additions & 4 deletions pmd-rules.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@
<exclude name="DataClass" />
<exclude name="ExcessiveImports" />
<exclude name="AvoidUncheckedExceptionsInSignatures" />
<exclude name="GodClass" /> <!-- Should consider fixing this -->
<exclude name="TooManyFields" /> <!-- Should consider fixing this -->
<exclude name="SingularField" /> <!-- Should consider fixing this -->
<exclude name="ExcessiveMethodLength" /> <!-- Should consider fixing this -->
</rule>

<rule ref="category/java/bestpractices.xml">
Expand Down

0 comments on commit 6c01ccc

Please sign in to comment.