Skip to content

Commit

Permalink
fix:传入class加入void判断
Browse files Browse the repository at this point in the history
  • Loading branch information
luozhan committed Apr 27, 2020
1 parent 757b493 commit 3cf45d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/robot/translator/core/Translator.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public static <T> List<T> parse(List<T> origins, Class<?>... classes) {
if (origins.size() == 0) {
return origins;
}
classes = (classes.length != 0) ? classes : new Class[]{origins.get(0).getClass()};
classes = (classes.length != 0 && classes[0] != void.class) ? classes : new Class[]{origins.get(0).getClass()};

// 获取bo中需要翻译的属性
List<Field> translateFieldList = Arrays.stream(classes)
Expand Down

0 comments on commit 3cf45d0

Please sign in to comment.