aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/eclipse/handlers
diff options
context:
space:
mode:
authorspc <spacanowski@gmail.com>2015-10-08 17:23:42 +0200
committerspc <spacanowski@gmail.com>2015-10-08 17:23:42 +0200
commit22e1fb91d4699a0bacafcd9f74fdca6acd8b275b (patch)
tree19b61ede5c40773110dcf679766751b4523199f8 /src/core/lombok/eclipse/handlers
parentdb8281f7f5c027c24cf9a1a8208a2aa92d06a73d (diff)
downloadlombok-22e1fb91d4699a0bacafcd9f74fdca6acd8b275b.tar.gz
lombok-22e1fb91d4699a0bacafcd9f74fdca6acd8b275b.tar.bz2
lombok-22e1fb91d4699a0bacafcd9f74fdca6acd8b275b.zip
Fixed typo, moved imports
Diffstat (limited to 'src/core/lombok/eclipse/handlers')
-rw-r--r--src/core/lombok/eclipse/handlers/singulars/EclipseGuavaSingularizer.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/core/lombok/eclipse/handlers/singulars/EclipseGuavaSingularizer.java b/src/core/lombok/eclipse/handlers/singulars/EclipseGuavaSingularizer.java
index c3a4c314..5a85bfa5 100644
--- a/src/core/lombok/eclipse/handlers/singulars/EclipseGuavaSingularizer.java
+++ b/src/core/lombok/eclipse/handlers/singulars/EclipseGuavaSingularizer.java
@@ -28,6 +28,12 @@ import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
+import lombok.core.GuavaTypeMap;
+import lombok.core.handlers.HandlerUtil;
+import lombok.eclipse.EclipseNode;
+import lombok.eclipse.handlers.EclipseSingularsRecipes.EclipseSingularizer;
+import lombok.eclipse.handlers.EclipseSingularsRecipes.SingularData;
+
import org.eclipse.jdt.internal.compiler.ast.Argument;
import org.eclipse.jdt.internal.compiler.ast.Assignment;
import org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration;
@@ -53,12 +59,6 @@ import org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants;
import org.eclipse.jdt.internal.compiler.lookup.TypeConstants;
import org.eclipse.jdt.internal.compiler.lookup.TypeIds;
-import lombok.core.GuavaTypeMap;
-import lombok.core.handlers.HandlerUtil;
-import lombok.eclipse.EclipseNode;
-import lombok.eclipse.handlers.EclipseSingularsRecipes.EclipseSingularizer;
-import lombok.eclipse.handlers.EclipseSingularsRecipes.SingularData;
-
abstract class EclipseGuavaSingularizer extends EclipseSingularizer {
protected static final char[][] JAVA_UTIL_MAP = {
{'j', 'a', 'v', 'a'}, {'u', 't', 'i', 'l'}, {'M', 'a', 'p'}
@@ -94,7 +94,7 @@ abstract class EclipseGuavaSingularizer extends EclipseSingularizer {
String simpleTypeName = getSimpleTargetTypeName(data);
char[][] tokenizedName = makeGuavaTypeName(simpleTypeName, true);
TypeReference type = new QualifiedTypeReference(tokenizedName, NULL_POSS);
- type = addTypeArgs(getTypeAgrumentsCount(isMap(), simpleTypeName), false, builderType, type, data.getTypeArgs());
+ type = addTypeArgs(getTypeArgumentsCount(isMap(), simpleTypeName), false, builderType, type, data.getTypeArgs());
FieldDeclaration buildField = new FieldDeclaration(data.getPluralName(), 0, -1);
buildField.bits |= ECLIPSE_DO_NOT_TOUCH_FLAG;
@@ -220,7 +220,7 @@ abstract class EclipseGuavaSingularizer extends EclipseSingularizer {
boolean mapMode = isMap();
TypeReference varType = new QualifiedTypeReference(fromQualifiedName(data.getTargetFqn()), NULL_POSS);
String simpleTypeName = getSimpleTargetTypeName(data);
- int agrumentsCount = getTypeAgrumentsCount(mapMode, simpleTypeName);
+ int agrumentsCount = getTypeArgumentsCount(mapMode, simpleTypeName);
varType = addTypeArgs(agrumentsCount, false, builderType, varType, data.getTypeArgs());
MessageSend emptyInvoke; {
@@ -268,7 +268,7 @@ abstract class EclipseGuavaSingularizer extends EclipseSingularizer {
return new IfStatement(cond, new Assignment(thisDotField2, createBuilderInvoke, 0), 0, 0);
}
- private int getTypeAgrumentsCount(boolean isMap, String simpleTypeName) {
+ private int getTypeArgumentsCount(boolean isMap, String simpleTypeName) {
return isMap ? 2 : getListSetTypeArgumentsCount(simpleTypeName);
}