初步完成 liteflow-solon-plugin 适配

This commit is contained in:
noear
2022-12-22 14:29:33 +08:00
parent 4db1bd40d0
commit fce386ec92
5 changed files with 10 additions and 5 deletions

View File

@@ -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);
}

View File

@@ -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);
}

View File

@@ -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);
}

View File

@@ -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);
}

View File

@@ -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);
}