From 46e011f75a478b2be18664ffcf1a1bf30f00e10c Mon Sep 17 00:00:00 2001 From: dim Date: Sun, 22 Jan 2017 18:46:18 +0800 Subject: [PATCH] fix bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修正:auto value 生成出错. --- .../org/gsonformat/intellij/process/AutoValueProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/gsonformat/intellij/process/AutoValueProcessor.java b/src/main/java/org/gsonformat/intellij/process/AutoValueProcessor.java index a7cb1f1..e8b2630 100644 --- a/src/main/java/org/gsonformat/intellij/process/AutoValueProcessor.java +++ b/src/main/java/org/gsonformat/intellij/process/AutoValueProcessor.java @@ -102,6 +102,6 @@ private String generateFieldText(ClassEntity classEntity, FieldEntity fieldEntit if (fieldEntity.getTargetClass() != null) { fieldEntity.getTargetClass().setGenerate(true); } - return fieldSb.append(String.format("\npublic abstract %s %s() ; " + fixme, fieldEntity.getFullNameType(), fieldName)).toString(); + return fieldSb.append(String.format("public abstract %s %s(); " + fixme, fieldEntity.getFullNameType(), fieldName)).toString(); } }