Commit 8a25d00
Don't crash on empty type declarations.
JLS 7.6 says:
> Extra ";" tokens appearing at the level of type declarations in a compilation
> unit have no effect on the meaning of the compilation unit. Stray semicolons
> are permitted in the Java programming language solely as a concession to C++
> programmers who are used to placing ";" after a class declaration. They
> should not be used in new Java code.
The formatted output for this is not pretty, but we don't care.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=1065404841 parent 79b7f0f commit 8a25d00
File tree
5 files changed
+41
-0
lines changed- core/src
- main/java/com/google/googlejavaformat/java
- test/resources/com/google/googlejavaformat/java/testdata
- idea_plugin/src/main/scripts
- scripts
5 files changed
+41
-0
lines changedLines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
| 332 | + | |
| 333 | + | |
332 | 334 | | |
333 | 335 | | |
334 | 336 | | |
| |||
388 | 390 | | |
389 | 391 | | |
390 | 392 | | |
| 393 | + | |
391 | 394 | | |
392 | 395 | | |
393 | 396 | | |
394 | 397 | | |
395 | 398 | | |
| 399 | + | |
396 | 400 | | |
397 | 401 | | |
398 | 402 | | |
399 | 403 | | |
400 | 404 | | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
401 | 412 | | |
402 | 413 | | |
403 | 414 | | |
| |||
3166 | 3177 | | |
3167 | 3178 | | |
3168 | 3179 | | |
| 3180 | + | |
3169 | 3181 | | |
3170 | 3182 | | |
3171 | 3183 | | |
| |||
3184 | 3196 | | |
3185 | 3197 | | |
3186 | 3198 | | |
| 3199 | + | |
3187 | 3200 | | |
3188 | 3201 | | |
3189 | 3202 | | |
| |||
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
File mode changed.
File mode changed.
0 commit comments