From b22bca3c31ab9a34922452490fdec4c2044f9518 Mon Sep 17 00:00:00 2001 From: Christian Wulf <chw@informatik.uni-kiel.de> Date: Wed, 25 Feb 2015 16:03:13 +0100 Subject: [PATCH] fixed compiler errors --- .../java/teetime/stage/basic/distributor/CloneStrategy.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/teetime/stage/basic/distributor/CloneStrategy.java b/src/main/java/teetime/stage/basic/distributor/CloneStrategy.java index 46ed0588..ec3ef642 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); } -- GitLab