Skip to content

Commit

Permalink
[ Functions ] Fixed some incorrect usage methods. (#11167)
Browse files Browse the repository at this point in the history
- Fixed some useless loops.
- Fixed incorrect usage of Array tostring method.
  • Loading branch information
mattisonchao authored Jun 30, 2021
1 parent 8579929 commit 7ef489a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public void validateField(String name, Object o) {
if (count == 0) {
throw new IllegalArgumentException(
String.format("Field '%s' with value '%s' does not implement any of these classes %s",
name, o, classesImplements));
name, o, Arrays.toString(classesImplements)));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -944,6 +944,7 @@ private boolean needsStart(Assignment assignment) {
for (Function.FunctionState state : functionMetaData.getInstanceStatesMap().values()) {
if (state == Function.FunctionState.RUNNING) {
toStart = true;
break;
}
}
} else {
Expand Down

0 comments on commit 7ef489a

Please sign in to comment.