Skip to content

Commit

Permalink
remove redundant evilMethod
Browse files Browse the repository at this point in the history
  • Loading branch information
nnym committed Aug 28, 2022
1 parent b411634 commit 83ba1cb
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions test/project/source/Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,8 @@ public Test() {
}

public static void main(String... args) {
evilMethod("output.txt", "I know what I'm doing.");
new Test();
System.out.println("Test.a = " + a);
}

public static void evilMethod(String file, String contents) {
Files.writeString(Path.of(file), contents);
log("Test.a = " + a);
}

private static void log(Object output) {
Expand Down

0 comments on commit 83ba1cb

Please sign in to comment.