From 3cf45d08d99d808aa270b5b4ec1e9ab28d2ef44b Mon Sep 17 00:00:00 2001 From: luozhan Date: Mon, 27 Apr 2020 20:44:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BC=A0=E5=85=A5class=E5=8A=A0=E5=85=A5vo?= =?UTF-8?q?id=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/robot/translator/core/Translator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/robot/translator/core/Translator.java b/src/main/java/com/robot/translator/core/Translator.java index 4a379fd..4d090ec 100644 --- a/src/main/java/com/robot/translator/core/Translator.java +++ b/src/main/java/com/robot/translator/core/Translator.java @@ -69,7 +69,7 @@ public static List parse(List 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 translateFieldList = Arrays.stream(classes)