mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 18:15:55 +00:00
using map.get instead of searching for entry
This commit is contained in:
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 {
|
||||
|
||||
Reference in new issue
Block a user