BAEL-7051 - Catch Common Mistakes with Error-Prone Library in Java (#15278)

This commit is contained in:
Alexandru Borza
2023-11-24 18:39:21 +02:00
committed by GitHub
parent 789ecf4581
commit c7ef62ee99
13 changed files with 240 additions and 39 deletions
@@ -0,0 +1,12 @@
package com.baeldung;
public class BuggyClass {
public static void main(String[] args) {
if (args.length == 0 || args[0] != null) {
new IllegalArgumentException();
}
}
public void emptyMethod() {
}
}
@@ -0,0 +1,6 @@
package com.baeldung;
public class ClassWithEmptyMethod {
public void theEmptyMethod() {
}
}