Skip to content
Snippets Groups Projects
Commit b22bca3c authored by Christian Wulf's avatar Christian Wulf
Browse files

fixed compiler errors

parent b3905713
No related branches found
No related tags found
No related merge requests found
...@@ -71,7 +71,7 @@ public final class CloneStrategy implements IDistributorStrategy { ...@@ -71,7 +71,7 @@ public final class CloneStrategy implements IDistributorStrategy {
for (Method method : clazz.getMethods()) { for (Method method : clazz.getMethods()) {
if (method.getReturnType() == Void.TYPE) { if (method.getReturnType() == Void.TYPE) {
if (method.getParameterCount() == 1) { if (method.getParameterTypes().length == 1) {
if (method.getName().matches("set[A-Z].*")) { if (method.getName().matches("set[A-Z].*")) {
methods.add(method); methods.add(method);
} }
...@@ -87,7 +87,7 @@ public final class CloneStrategy implements IDistributorStrategy { ...@@ -87,7 +87,7 @@ public final class CloneStrategy implements IDistributorStrategy {
for (Method method : clazz.getMethods()) { for (Method method : clazz.getMethods()) {
if (method.getReturnType() != Void.TYPE) { 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].*")) { if (method.getName().matches("get[A-Z].*") || method.getName().matches("is[A-Z].*")) {
methods.add(method); methods.add(method);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment