Skip to content

Commit 92cf816

Browse files
committed
Ignore ByteBuffer in animal sniffer
JDK9 breaks compatibility with older versions for ByteBuffer.flip() by returning ByteBuffer instead of Buffer. This ignores this change to allow building on JDK 9+
1 parent 89cb957 commit 92cf816

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,16 @@ limitations under the License.
401401
<source>${maven.compiler.source}</source>
402402
</configuration>
403403
</plugin>
404+
<plugin>
405+
<groupId>org.codehaus.mojo</groupId>
406+
<artifactId>animal-sniffer-maven-plugin</artifactId>
407+
<configuration>
408+
<ignores>
409+
<!-- JDK9 breaks compatibility by returning ByteBuffer not Buffer -->
410+
<ignore>java.nio.ByteBuffer</ignore>
411+
</ignores>
412+
</configuration>
413+
</plugin>
404414
</plugins>
405415
</build>
406416
<reporting>

0 commit comments

Comments
 (0)