aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok
diff options
context:
space:
mode:
authorRoland Praml <praml@foconis.de>2018-07-08 16:57:00 +0200
committerRoel Spilker <r.spilker@gmail.com>2018-08-20 20:46:31 +0200
commitfe2117e7796e8f85b5710944bfd3efb499c87865 (patch)
tree4f9728d0485b16fabc852b4186b6cbc9fce73bf2 /src/core/lombok
parent46377b1be44c564ea7e37f30ddd7d81faf19d45e (diff)
downloadlombok-fe2117e7796e8f85b5710944bfd3efb499c87865.tar.gz
lombok-fe2117e7796e8f85b5710944bfd3efb499c87865.tar.bz2
lombok-fe2117e7796e8f85b5710944bfd3efb499c87865.zip
using map.get instead of searching for entry
Diffstat (limited to 'src/core/lombok')
-rw-r--r--src/core/lombok/core/LombokInternalAliasing.java6
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 {