-
Notifications
You must be signed in to change notification settings - Fork 328
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1960 from jplag/feature/tokenPositionTestsJava_An…
…notations Added token position tests for annotations
- Loading branch information
Showing
9 changed files
with
47 additions
and
4 deletions.
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
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
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
3 changes: 3 additions & 0 deletions
3
languages/java/src/test/resources/de/jplag/java/tokenPositions/Anno_1.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,3 @@ | ||
>@SuppressWarnings | ||
$| J_ANNO 17 | ||
>class Anno {} |
3 changes: 3 additions & 0 deletions
3
languages/java/src/test/resources/de/jplag/java/tokenPositions/Anno_2.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,3 @@ | ||
>@SuppressWarnings("SomeWarning") | ||
$| J_ANNO 17 | ||
>class Anno {} |
6 changes: 6 additions & 0 deletions
6
languages/java/src/test/resources/de/jplag/java/tokenPositions/Anno_3.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 Anno { | ||
> @Deprecated | ||
$ | J_ANNO 11 | ||
> public void testFunction() { | ||
> } | ||
>} |
7 changes: 7 additions & 0 deletions
7
languages/java/src/test/resources/de/jplag/java/tokenPositions/Anno_4.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 @@ | ||
>import javax.annotation.processing.Generated; | ||
> | ||
>class Anno { | ||
> public void testMethod(@Generated String param) { | ||
$ | J_ANNO 10 | ||
> } | ||
>} |
3 changes: 3 additions & 0 deletions
3
languages/java/src/test/resources/de/jplag/java/tokenPositions/JAnnoTBegin-End_1.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,3 @@ | ||
>public @interface MyAnnotation {} | ||
$ | J_ANNO_T_BEGIN 23 | ||
$ | J_ANNO_T_END 1 |
4 changes: 4 additions & 0 deletions
4
languages/java/src/test/resources/de/jplag/java/tokenPositions/JAnnoTBegin-End_2.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 @@ | ||
>public @interface MyAnnotation { | ||
$ | J_ANNO_T_BEGIN 23 | ||
>} | ||
$| J_ANNO_T_END 1 |