- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {BufferedReader b =
InputStream in;new BufferedReader(new InputStreamReader(in))
Reader in;new BufferedReader(in)
File file;new BufferedReader(new FileReader(file))
- Smart code suggestions by Codota
}
public String getBaseName() { BaseName baseNameAnnotation = typeElementForEnum.getAnnotation(BaseName.class); return baseNameAnnotation.value(); } }
public String getBaseName() { BaseName rbnAnnotation = enumClass.getAnnotation(BaseName.class); if (rbnAnnotation == null) { return null; } return rbnAnnotation.value(); }
/** * Find java java.util.ResourceBundle for given messages enum. * * @param messages * Messages enum annotated with ch.qos.cal10n.BaseName * @return java.util.ResourceBundle object */ public static ResourceBundle findResourceBundle(Class<? extends Enum> messages) { BaseName baseName = messages.getAnnotation(BaseName.class); if (baseName != null) { String value = baseName.value(); ResourceBundle bundle = ResourceBundle.getBundle(value); return bundle; } return null; } }