diff --git a/src/main/java/teetime/stage/basic/distributor/CloneStrategy.java b/src/main/java/teetime/stage/basic/distributor/CloneStrategy.java index 46ed05883ddf17bc070d585232535ac680ef26ae..ec3ef6428b9d76446c6948c6e9b9d39ab03b7122 100644 --- a/src/main/java/teetime/stage/basic/distributor/CloneStrategy.java +++ b/src/main/java/teetime/stage/basic/distributor/CloneStrategy.java @@ -71,7 +71,7 @@ public final class CloneStrategy implements IDistributorStrategy { for (Method method : clazz.getMethods()) { if (method.getReturnType() == Void.TYPE) { - if (method.getParameterCount() == 1) { + if (method.getParameterTypes().length == 1) { if (method.getName().matches("set[A-Z].*")) { methods.add(method); } @@ -87,7 +87,7 @@ public final class CloneStrategy implements IDistributorStrategy { for (Method method : clazz.getMethods()) { if (method.getReturnType() != Void.TYPE) { - if (method.getParameterCount() == 0) { + if (method.getParameterTypes().length == 0) { if (method.getName().matches("get[A-Z].*") || method.getName().matches("is[A-Z].*")) { methods.add(method); }