public static boolean clean ( final java . nio . ByteBuffer buffer ) { if ( buffer == null || ! buffer . isDirect ( ) ) { return false ; } if ( cleanJava9 ( buffer ) ) { return true ; } return cleanOldsJDK ( buffer ) ; }
invokes the clean method on the ByteBuffer s cleaner