Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove incorrect handling of covariant return types (#83)
* Remove incorrect handling of covariant return types * update integration test expectations
- Loading branch information
Showing
3 changed files
with
7 additions
and
36 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
animal-sniffer-maven-plugin/src/it/manimalsniffer-49/invoker.properties
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
invoker.goals=verify | ||
invoker.buildResult=failure | ||
# this is where the method signature change happened | ||
invoker.java.version = 1.9+,!16 | ||
|
4 changes: 2 additions & 2 deletions
4
animal-sniffer-maven-plugin/src/it/manimalsniffer-49/verify.groovy
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
File log = new File(basedir, 'build.log') | ||
assert log.exists() | ||
assert log.text.contains( 'ManimalSniffer49.java:51: Covariant return type change detected: java.nio.Buffer java.nio.ByteBuffer.flip() has been changed to java.nio.ByteBuffer java.nio.ByteBuffer.flip()' ) | ||
assert log.text.contains( 'ManimalSniffer49.java:76: Covariant return type change detected: java.nio.Buffer java.nio.ByteBuffer.flip() has been changed to java.nio.ByteBuffer java.nio.ByteBuffer.flip()' ) | ||
assert log.text.contains( 'ManimalSniffer49.java:51: Undefined reference: java.nio.ByteBuffer java.nio.ByteBuffer.flip()' ) | ||
assert log.text.contains( 'ManimalSniffer49.java:76: Undefined reference: java.nio.ByteBuffer java.nio.ByteBuffer.flip()' ) |
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