aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2020-06-25 23:02:55 +0200
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2020-06-25 23:31:22 +0200
commit966852e410cfd99e311eca98cee36c163629949e (patch)
treea06ec39670458f77337f8e55bfbd091fc350520b /src/core
parent0f1c950b7700b476954c6e193e53d36ed34e2050 (diff)
downloadlombok-966852e410cfd99e311eca98cee36c163629949e.tar.gz
lombok-966852e410cfd99e311eca98cee36c163629949e.tar.bz2
lombok-966852e410cfd99e311eca98cee36c163629949e.zip
[bugfix] building would fail
due to an invalid reference from src/utils to src/core.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/lombok/core/handlers/HandlerUtil.java9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/core/lombok/core/handlers/HandlerUtil.java b/src/core/lombok/core/handlers/HandlerUtil.java
index 46ce3825..1c4437d7 100644
--- a/src/core/lombok/core/handlers/HandlerUtil.java
+++ b/src/core/lombok/core/handlers/HandlerUtil.java
@@ -745,13 +745,6 @@ public class HandlerUtil {
return b.toString();
}
- /** Matches any of the 8 primitive names, such as {@code boolean}. */
- private static final Pattern PRIMITIVE_TYPE_NAME_PATTERN = Pattern.compile("^(?:boolean|byte|short|int|long|float|double|char)$");
-
- public static boolean isPrimitive(String typeName) {
- return PRIMITIVE_TYPE_NAME_PATTERN.matcher(typeName).matches();
- }
-
/** Matches any of the 8 primitive wrapper names, such as {@code Boolean}. */
private static final Pattern PRIMITIVE_WRAPPER_TYPE_NAME_PATTERN = Pattern.compile("^(?:java\\.lang\\.)?(?:Boolean|Byte|Short|Integer|Long|Float|Double|Character)$");
@@ -759,7 +752,7 @@ public class HandlerUtil {
// Modification in this code should be documented
// 1. In the changelog this should be marked as an INPROBABLE BREAKING CHANGE, since the hashcode will change
// 2. In the javadoc of EqualsAndHashcode.Include#rank
- if (isPrimitive(typeName)) return 1000;
+ if (JavaIdentifiers.isPrimitive(typeName)) return 1000;
if (PRIMITIVE_WRAPPER_TYPE_NAME_PATTERN.matcher(typeName).matches()) return 800;
return 0;
}