mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 20:22:07 +08:00
初步完成 liteflow-solon-plugin 适配
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user