diff options
Diffstat (limited to 'it/projects/java-bytecode/src/HasFindbugsViolation.java')
-rw-r--r-- | it/projects/java-bytecode/src/HasFindbugsViolation.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/it/projects/java-bytecode/src/HasFindbugsViolation.java b/it/projects/java-bytecode/src/HasFindbugsViolation.java new file mode 100644 index 0000000..c68f54f --- /dev/null +++ b/it/projects/java-bytecode/src/HasFindbugsViolation.java @@ -0,0 +1,13 @@ +public class HasFindbugsViolation { + + private String field; + + public void use() { + new DeprecatedExample().deprecatedMethod(); // violation of squid rule: CallToDeprecatedMethod + System.exit(33); // violation on findbugs rule: DM_EXIT + } + + public void useFieldForLcom4() { + System.out.println(field); + } +} |