/** * Check if feature is supported. * * @param f Feature. * @return {@code True} if feature is supported, {@code False} otherwise. */ public static boolean isSupported(Feature f) { try { validateFeature(f); return true; } catch (AssertionError ignore) { return false; } }
/** * Fails if feature is not supported. * * @param f feature. * @throws AssertionError If failed. * @deprecated Use {@link #skipIfNotSupported(Feature)} instead. */ @Deprecated public static void failIfNotSupported(Feature f) { if (!forcedMvcc()) return; validateFeature(f); }