BAEL-7051 - Catch Common Mistakes with Error-Prone Library in Java (#15278)
This commit is contained in:
@@ -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() {
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package com.baeldung;
|
||||
|
||||
public class ClassWithEmptyMethod {
|
||||
public void theEmptyMethod() {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user