diff --git a/liteflow-solon-plugin/src/main/java/com/yomahub/liteflow/solon/NodeBreakComponentOfMethod.java b/liteflow-solon-plugin/src/main/java/com/yomahub/liteflow/solon/NodeBreakComponentOfMethod.java index 1f8c97a15..3692deacb 100644 --- a/liteflow-solon-plugin/src/main/java/com/yomahub/liteflow/solon/NodeBreakComponentOfMethod.java +++ b/liteflow-solon-plugin/src/main/java/com/yomahub/liteflow/solon/NodeBreakComponentOfMethod.java @@ -26,7 +26,8 @@ public class NodeBreakComponentOfMethod extends NodeBreakComponent { throw new LiteFlowException("NodeBreakComponent method parameter cannot be more than one: " + methodFullName); } - if (method.getReturnType() != Boolean.class) { + if (method.getReturnType() != Boolean.class + && method.getReturnType() != boolean.class) { String methodFullName = beanWrap.clz().getName() + "::" + method.getName(); throw new LiteFlowException("NodeBreakComponent method returnType can only be boolean: " + methodFullName); } diff --git a/liteflow-solon-plugin/src/main/java/com/yomahub/liteflow/solon/NodeComponentOfMethod.java b/liteflow-solon-plugin/src/main/java/com/yomahub/liteflow/solon/NodeComponentOfMethod.java index 684623175..fbc58edb3 100644 --- a/liteflow-solon-plugin/src/main/java/com/yomahub/liteflow/solon/NodeComponentOfMethod.java +++ b/liteflow-solon-plugin/src/main/java/com/yomahub/liteflow/solon/NodeComponentOfMethod.java @@ -27,7 +27,8 @@ public class NodeComponentOfMethod extends NodeComponent { throw new LiteFlowException("NodeComponent method parameter cannot be more than one: " + methodFullName); } - if (method.getReturnType() != Void.class) { + if (method.getReturnType() != Void.class + && method.getReturnType() != void.class) { String methodFullName = beanWrap.clz().getName() + "::" + method.getName(); throw new LiteFlowException("NodeComponent method returnType can only be void: " + methodFullName); } diff --git a/liteflow-solon-plugin/src/main/java/com/yomahub/liteflow/solon/NodeForComponentOfMethod.java b/liteflow-solon-plugin/src/main/java/com/yomahub/liteflow/solon/NodeForComponentOfMethod.java index e27394eb4..587c62eb2 100644 --- a/liteflow-solon-plugin/src/main/java/com/yomahub/liteflow/solon/NodeForComponentOfMethod.java +++ b/liteflow-solon-plugin/src/main/java/com/yomahub/liteflow/solon/NodeForComponentOfMethod.java @@ -26,7 +26,8 @@ public class NodeForComponentOfMethod extends NodeForComponent { throw new LiteFlowException("NodeForComponent method parameter cannot be more than one: " + methodFullName); } - if (method.getReturnType() != Integer.class) { + if (method.getReturnType() != Integer.class + && method.getReturnType() != int.class) { String methodFullName = beanWrap.clz().getName() + "::" + method.getName(); throw new LiteFlowException("NodeForComponent method returnType can only be int: " + methodFullName); } diff --git a/liteflow-solon-plugin/src/main/java/com/yomahub/liteflow/solon/NodeIfComponentOfMethod.java b/liteflow-solon-plugin/src/main/java/com/yomahub/liteflow/solon/NodeIfComponentOfMethod.java index 85d85c4e7..da1e9744d 100644 --- a/liteflow-solon-plugin/src/main/java/com/yomahub/liteflow/solon/NodeIfComponentOfMethod.java +++ b/liteflow-solon-plugin/src/main/java/com/yomahub/liteflow/solon/NodeIfComponentOfMethod.java @@ -26,7 +26,8 @@ public class NodeIfComponentOfMethod extends NodeIfComponent { throw new LiteFlowException("NodeIfComponent method parameter cannot be more than one: " + methodFullName); } - if (method.getReturnType() != Boolean.class) { + if (method.getReturnType() != Boolean.class + && method.getReturnType() != boolean.class) { String methodFullName = beanWrap.clz().getName() + "::" + method.getName(); throw new LiteFlowException("NodeIfComponent method returnType can only be boolean: " + methodFullName); } diff --git a/liteflow-solon-plugin/src/main/java/com/yomahub/liteflow/solon/NodeWhileComponentOfMethod.java b/liteflow-solon-plugin/src/main/java/com/yomahub/liteflow/solon/NodeWhileComponentOfMethod.java index 577dd147d..c0138ee0e 100644 --- a/liteflow-solon-plugin/src/main/java/com/yomahub/liteflow/solon/NodeWhileComponentOfMethod.java +++ b/liteflow-solon-plugin/src/main/java/com/yomahub/liteflow/solon/NodeWhileComponentOfMethod.java @@ -26,7 +26,8 @@ public class NodeWhileComponentOfMethod extends NodeWhileComponent { throw new LiteFlowException("NodeWhileComponent method parameter cannot be more than one: " + methodFullName); } - if (method.getReturnType() != Boolean.class) { + if (method.getReturnType() != Boolean.class + && method.getReturnType() != boolean.class) { String methodFullName = beanWrap.clz().getName() + "::" + method.getName(); throw new LiteFlowException("NodeWhileComponent method returnType can only be boolean: " + methodFullName); }