diff options
author | Roland Praml <praml@foconis.de> | 2018-07-08 16:57:00 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2018-08-20 20:46:31 +0200 |
commit | fe2117e7796e8f85b5710944bfd3efb499c87865 (patch) | |
tree | 4f9728d0485b16fabc852b4186b6cbc9fce73bf2 | |
parent | 46377b1be44c564ea7e37f30ddd7d81faf19d45e (diff) | |
download | lombok-fe2117e7796e8f85b5710944bfd3efb499c87865.tar.gz lombok-fe2117e7796e8f85b5710944bfd3efb499c87865.tar.bz2 lombok-fe2117e7796e8f85b5710944bfd3efb499c87865.zip |
using map.get instead of searching for entry
-rw-r--r-- | src/core/lombok/core/LombokInternalAliasing.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/lombok/core/LombokInternalAliasing.java b/src/core/lombok/core/LombokInternalAliasing.java index 3dc1bfa2..c1089580 100644 --- a/src/core/lombok/core/LombokInternalAliasing.java +++ b/src/core/lombok/core/LombokInternalAliasing.java @@ -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 { |