Skip to content

Commit c38a393

Browse files
committed
Rename Java source to shorten its class name
1 parent 96622e4 commit c38a393

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

antlr-grammar-analyzer/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,5 @@ Check whether a sample Java source fits within the grammar without expressions:
7474
- whether it does not contain rules outside the grammar
7575

7676
```sh
77-
./bazel-bin/fits-grammar-noexpr resources/AllRulesWithoutExpr.java
77+
./bazel-bin/fits-grammar-noexpr resources/C.java
7878
```

antlr-grammar-analyzer/resources/AllRulesWithoutExpr.java renamed to antlr-grammar-analyzer/resources/C.java

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,27 @@
11
package p;
2-
import java.util.List;
32
import java.util.*;
3+
import java.util.List;
44
import static java.lang.Math.log;
55
import static java.lang.Math.*;
6-
public abstract class AllRulesWithoutExpr<T> extends Object implements RandomAccess {
6+
public abstract class C<T> extends Object
7+
implements RandomAccess {
78
private interface I extends Formattable {
89
public int[][] a = {{}, {}};
9-
abstract <E extends Formattable> void m() throws Exception;
10+
abstract <E extends Formattable>
11+
void m() throws Exception;
1012
}
1113
enum E { E1(); }
1214
static {}
1315
{}
1416
public List<? extends T>[][] b;
15-
public AllRulesWithoutExpr(float a, String b) { this(); }
16-
public AllRulesWithoutExpr() {
17+
public C(float a, String b) { this(); }
18+
public C() {
1719
l: ;
1820
for (int i;;) { break; }
1921
for (int i;;) { continue; }
2022
}
21-
private <A extends Collection<T> & Formattable> void n(AllRulesWithoutExpr<T> this) {
23+
private <A extends C<T> & Formattable>
24+
void n(C<T> this) {
2225
final List<int[]> v;
2326
try {} catch (Exception e) {} finally {}
2427
return;

0 commit comments

Comments
 (0)