#794 - Refactor - tidy code, simplify if

This commit is contained in:
Robin Bygrave
2016-07-31 23:32:37 +12:00
parent 87c479cd95
commit 79b8395f8f
@@ -165,11 +165,7 @@ public class ImmutableMetaFactory {
if (methods[i].getParameterTypes().length == 0) {
// could be a getter
String methName = methods[i].getName();
if (methName.equals("hashCode")) {
} else if (methName.equals("toString")) {
} else {
if (!methName.equals("hashCode") && !methName.equals("toString")) {
Class<?> returnType = methods[i].getReturnType();
if (paramType.equals(returnType)) {
return methods[i];