Skip to content

Commit

Permalink
Update AutowiredProcessor.java
Browse files Browse the repository at this point in the history
JavaPoet will auto add ';' when you use the "addStatement" syntax. 
So the statement should not add ';' by ourself.
  • Loading branch information
crazy1235 authored Aug 14, 2017
1 parent 55aa184 commit 80253ab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private void generateHelper() throws IOException, IllegalAccessException {
FieldSpec jsonServiceField = FieldSpec.builder(TypeName.get(type_JsonService.asType()), "serializationService", Modifier.PRIVATE).build();
helper.addField(jsonServiceField);

injectMethodBuilder.addStatement("serializationService = $T.getInstance().navigation($T.class);", ARouterClass, ClassName.get(type_JsonService));
injectMethodBuilder.addStatement("serializationService = $T.getInstance().navigation($T.class)", ARouterClass, ClassName.get(type_JsonService));
injectMethodBuilder.addStatement("$T substitute = ($T)target", ClassName.get(parent), ClassName.get(parent));

// Generate method body, start inject.
Expand Down

0 comments on commit 80253ab

Please sign in to comment.