Skip to content

Commit

Permalink
expand example
Browse files Browse the repository at this point in the history
  • Loading branch information
morgante committed Jun 7, 2024
1 parent df22205 commit d1e0e95
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .grit/patterns/java/unused_private_fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,14 @@ public class Test {
private static final String HELLO_WORLD = HELLO + WORLD;
private static final String REMOVE_THIS = "Remove this";

private final String GREETING = "Hello, ";
private final String NAME = "John";

private final String GREETING_NAME = GREETING + NAME;

public static void main(String[] args) {
System.out.println(HELLO_WORLD);
System.out.println(GREETING_NAME);
}
}
```
Expand All @@ -106,8 +112,14 @@ public class Test {

private static final String HELLO_WORLD = HELLO + WORLD;

private final String GREETING = "Hello, ";
private final String NAME = "John";

private final String GREETING_NAME = GREETING + NAME;

public static void main(String[] args) {
System.out.println(HELLO_WORLD);
System.out.println(GREETING_NAME);
}
}
```

0 comments on commit d1e0e95

Please sign in to comment.