All Downloads are FREE. Search and download functionalities are using the official Maven repository.

coursierapi.shaded.scala.meta.internal.svm_subs.HasReleaseFenceMethod Maven / Gradle / Ivy

There is a newer version: 1.0.24
Show newest version
// from https://github.com/scalameta/svm-subs/tree/792c0f6cfc0726779c3d45f54031094f54519c7d
package coursierapi.shaded.scala.meta.internal.svm_subs;

import java.util.function.Predicate;

final class HasReleaseFenceMethod implements Predicate {
    @Override
    public boolean test(String className) {
        try {
            final Class classForName = Class.forName(className);
            classForName.getMethod("releaseFence");
            return true;
        } catch (Exception cnfe) {
            return false;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy