|| !Deprecation.Level.ERROR.equals(p.getDeprecation().getLevel())) .collect(Collectors.toList());
private Deprecation.Level parseDeprecationLevel(String value) { if (value != null) { try { return Deprecation.Level.valueOf(value.toUpperCase(Locale.ENGLISH)); } catch (IllegalArgumentException ex) { // let's use the default } } return Deprecation.Level.WARNING; }
public static boolean isErrorDeprecated(ConfigurationMetadataProperty meta) { Deprecation depr = meta.getDeprecation(); return depr != null && depr.getLevel() != null && depr.getLevel().equals(Deprecation.Level.ERROR); }