aboutsummaryrefslogtreecommitdiffstats
path: root/it/projects/java-bytecode/src/HasFindbugsViolation.java
diff options
context:
space:
mode:
Diffstat (limited to 'it/projects/java-bytecode/src/HasFindbugsViolation.java')
-rw-r--r--it/projects/java-bytecode/src/HasFindbugsViolation.java13
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);
+ }
+}