A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/google/google-java-format/commit/5e114ca5f0486a336cdff9697b0910c16f5689c5 below:

Do not crash when encountering double semi-colon after package statement · google/google-java-format@5e114ca · GitHub

File tree Expand file treeCollapse file tree 3 files changed

+13

-0

lines changed

Filter options

Expand file treeCollapse file tree 3 files changed

+13

-0

lines changed Original file line number Diff line number Diff line change

@@ -347,6 +347,7 @@ public Void visitCompilationUnit(CompilationUnitTree node, Void unused) {

347 347

builder.forcedBreak();

348 348

first = false;

349 349

}

350 +

dropEmptyDeclarations();

350 351

if (!node.getImports().isEmpty()) {

351 352

if (!first) {

352 353

builder.blankLineWanted(BlankLineWanted.YES);

Original file line number Diff line number Diff line change

@@ -0,0 +1,6 @@

1 +

package foo;;

2 + 3 +

import com.google.second.Foo;

4 +

import com.google.first.Bar;

5 + 6 +

public class Blim {}

Original file line number Diff line number Diff line change

@@ -0,0 +1,6 @@

1 +

package foo;

2 +

;

3 +

import com.google.second.Foo;

4 +

import com.google.first.Bar;

5 + 6 +

public class Blim {}

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4