Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge pull request #332 from stefanSchuhbaeck/warningsPlugin
Warnings plugin Issue JENKINS-17787 with docker
- Loading branch information
Showing
7 changed files
with
484 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
public class WarningMain { | ||
|
||
private static class TextClass {} | ||
|
||
public static void main(String[] args) { | ||
TextClass text = new TextClass(); | ||
TextClass text2 = new TextClass(); | ||
// useless casting for compiler warning generation | ||
text = (TextClass) text2; | ||
text2 = (TextClass) text; | ||
|
||
Integer inte = (int) 123L; | ||
inte = inte/0; | ||
} | ||
|
||
} |
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,12 @@ | ||
|
||
public class WarningMain2 { | ||
|
||
private static class TextClass {} | ||
|
||
public static void main(String[] args) { | ||
TextClass text2 = new TextClass(); | ||
// useless casting for compiler warning generation | ||
TextClass text = (TextClass) text2; | ||
} | ||
|
||
} |
Oops, something went wrong.