-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix] Make multi declaration detection stricter, fix #123
- Loading branch information
Showing
9 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
src/test/resources/clean/left_modified/multi_declaration_initialization_field/Base.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
class Cls { | ||
private int x = 2; | ||
protected String modelPackage = "", apiPackage = "", fileSuffix; | ||
} |
6 changes: 6 additions & 0 deletions
6
src/test/resources/clean/left_modified/multi_declaration_initialization_field/Expected.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class Cls { | ||
private int x = 3; | ||
protected String modelPackage = ""; | ||
protected String apiPackage = ""; | ||
protected String fileSuffix; | ||
} |
4 changes: 4 additions & 0 deletions
4
src/test/resources/clean/left_modified/multi_declaration_initialization_field/Left.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
class Cls { | ||
private int x = 3; | ||
protected String modelPackage = "", apiPackage = "", fileSuffix; | ||
} |
4 changes: 4 additions & 0 deletions
4
src/test/resources/clean/left_modified/multi_declaration_initialization_field/Right.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
class Cls { | ||
private int x = 2; | ||
protected String modelPackage = "", apiPackage = "", fileSuffix; | ||
} |
7 changes: 7 additions & 0 deletions
7
src/test/resources/clean/left_modified/multi_declaration_initialization_local/Base.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class Cls { | ||
|
||
public static void main(String[] args) { | ||
int x = 2; | ||
String modelPackage = "", apiPackage = "", fileSuffix; | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/test/resources/clean/left_modified/multi_declaration_initialization_local/Expected.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
class Cls { | ||
|
||
public static void main(String[] args) { | ||
int x = 3; | ||
String modelPackage = ""; | ||
String apiPackage = ""; | ||
String fileSuffix; | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/test/resources/clean/left_modified/multi_declaration_initialization_local/Left.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class Cls { | ||
public static void main(String[] args) { | ||
int x = 3; | ||
String modelPackage = "", apiPackage = "", fileSuffix; | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/test/resources/clean/left_modified/multi_declaration_initialization_local/Right.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class Cls { | ||
public static void main(String[] args) { | ||
int x = 2; | ||
String modelPackage = "", apiPackage = "", fileSuffix; | ||
} | ||
} |