This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-codec.git

commit 92cf816971a6a1ab09bf99252b305bb31da0e34a
Author: Alex Herbert <a.herb...@sussex.ac.uk>
AuthorDate: Sun Jun 12 20:04:24 2022 +0100

    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+
---
 pom.xml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/pom.xml b/pom.xml
index edd85f8d..33fa23f7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -401,6 +401,16 @@ limitations under the License.
           <source>${maven.compiler.source}</source>
         </configuration>
       </plugin>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>animal-sniffer-maven-plugin</artifactId>
+        <configuration>
+          <ignores>
+            <!-- JDK9 breaks compatibility by returning ByteBuffer not Buffer 
-->
+            <ignore>java.nio.ByteBuffer</ignore>
+          </ignores>
+        </configuration>
+      </plugin>
     </plugins>
   </build>
   <reporting>

Reply via email to