Permalink
Browse files

Fixing spelling errors.

  • Loading branch information...
oshoukry committed May 30, 2017
1 parent 30f31de commit 8f09082a3936b3463f87dbbd524758edf6fb8851
@@ -43,7 +43,7 @@
boolean isPublic();
/**
* Package visibility only, often refered to default visibility when no visibility keywords are assigned.
* Package visibility only, often referred to default visibility when no visibility keywords are assigned.
* @return true if default.
*/
boolean isPackagePrivate();
@@ -87,13 +87,13 @@ public MethodVisitor visitMethod(int access, String name, String desc, String si
}
private int getParameterCount(String desc) {
String parameterSeperator = ";";
String parameterSeparator = ";";
int parameterCount = 0;
int idx = desc.indexOf(parameterSeperator, 0);
int idx = desc.indexOf(parameterSeparator, 0);
while (idx >= 0) {
parameterCount++;
idx = desc.indexOf(parameterSeperator, idx + 1);
idx = desc.indexOf(parameterSeparator, idx + 1);
}
return parameterCount;
@@ -30,8 +30,8 @@
*/
public final class ToStringHelper {
private static final String NAME_VALUE_TOKEN_FORMAT = "%s=%s";
private static final String LIST_TOKEN_SEPERATOR = ", ";
private static final String POJOCLASS_TOSTRING_FORMAT = "%s [@%s: %s]";
private static final String LIST_TOKEN_SEPARATOR = ", ";
private static final String POJO_CLASS_TO_STRING_FORMAT = "%s [@%s: %s]";
/**
* This method formats name value pairs into the proper string format.
@@ -58,7 +58,7 @@ public static String nameValuePair(final Object name, final Object value) {
*/
public static String pojoClassToString(final PojoClass pojoClass, final Object instance) {
return String.format(POJOCLASS_TOSTRING_FORMAT,
return String.format(POJO_CLASS_TO_STRING_FORMAT,
pojoClass.getName(),
Integer.toHexString(System.identityHashCode(instance)),
PojoFieldsToString(pojoClass.getPojoFields(), instance));
@@ -78,7 +78,7 @@ private static String PojoFieldsToString(final List<PojoField> pojoFields, final
for (int index = 0; index < pojoFields.size(); index++) {
pojoString += pojoFields.get(index).toString(instance);
if (index < pojoFields.size() - 1) {
pojoString += LIST_TOKEN_SEPERATOR;
pojoString += LIST_TOKEN_SEPARATOR;
}
}
return pojoString;
@@ -68,7 +68,7 @@ public TestClassMustBeProperlyNamedRule() {
* @param prefixes
* the prefix list to use.
* @param suffixes
* the sufix list to use
* the suffix list to use
*/
@SuppressWarnings("unchecked")
public TestClassMustBeProperlyNamedRule(Collection<String> prefixes, Collection<String> suffixes) {
@@ -82,7 +82,7 @@ public TestClassMustBeProperlyNamedRule(Collection<String> prefixes, Collection<
}
if (loadedAnnotations.size() == 0)
throw new IllegalStateException("No annotations loaded, exptected any of " + Arrays.toString(DEFAULT_ANNOTATIONS));
throw new IllegalStateException("No annotations loaded, expected any of " + Arrays.toString(DEFAULT_ANNOTATIONS));
}
@SuppressWarnings("unchecked")

0 comments on commit 8f09082

Please sign in to comment.