using map.get instead of searching for entry

This commit is contained in:
Roland Praml authored and Roel Spilker committed 2018-08-20 20:46:31 +02:00
1 parent 46377b1be4
commit fe2117e779
1 file changed
+2 -4
@@ -36,10 +36,8 @@ public class LombokInternalAliasing {
*/
public static String processAliases(String in) {
if (in == null) return null;
for (Map.Entry<String, String> e : ALIASES.entrySet()) {
if (in.equals(e.getKey())) return e.getValue();
}
return in;
String ret = ALIASES.get(in);
return ret == null ? in : ret;
}
static {