diff options
author | Maaartin Grajcar <grajcar@seznam.cz> | 2014-06-01 07:39:52 +0200 |
---|---|---|
committer | Maaartin Grajcar <grajcar@seznam.cz> | 2014-06-01 07:40:44 +0200 |
commit | 6159508d40ed2a79bae98ea4a7f24edc4af36d88 (patch) | |
tree | 633a630baa585f72a3dce4197582fce106d4872f /src/core/lombok/eclipse | |
parent | 8f7c2aa7a21141097f0a076d0f93dba633a94cf5 (diff) | |
download | lombok-6159508d40ed2a79bae98ea4a7f24edc4af36d88.tar.gz lombok-6159508d40ed2a79bae98ea4a7f24edc4af36d88.tar.bz2 lombok-6159508d40ed2a79bae98ea4a7f24edc4af36d88.zip |
Fix a trivial bug in generateNullCheck.
Diffstat (limited to 'src/core/lombok/eclipse')
-rw-r--r-- | src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java b/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java index c5135802..11f31c9d 100644 --- a/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java +++ b/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java @@ -1425,7 +1425,7 @@ public class EclipseHandlerUtil { if (isPrimitive(variable.type)) return null; AllocationExpression exception = new AllocationExpression(); setGeneratedBy(exception, source); - int partCount = 0; + int partCount = 1; String exceptionTypeStr = exceptionType.getExceptionType(); for (int i = 0; i < exceptionTypeStr.length(); i++) if (exceptionTypeStr.charAt(i) == '.') partCount++; long[] ps = new long[partCount]; |