File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed
dinject-generator/src/main/java/io/dinject/generator Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ class Constants {
44
55 static final String KOTLIN_METADATA = "kotlin.Metadata" ;
66 static final String GENERATED_9 = "javax.annotation.processing.Generated" ;
7- static final String GENERATED_8 = "javax.annotation.Generated" ;
87
98 static final String POSTCONSTRUCT = "javax.annotation.PostConstruct" ;
109 static final String PROVIDER = "javax.inject.Provider" ;
Original file line number Diff line number Diff line change @@ -53,10 +53,7 @@ class ProcessingContext {
5353 }
5454
5555 private String generatedAnnotation (boolean jdk8 ) {
56- if (jdk8 ) {
57- return isTypeAvailable (Constants .GENERATED_8 ) ? Constants .GENERATED_8 : null ;
58- }
59- return isTypeAvailable (Constants .GENERATED_9 ) ? Constants .GENERATED_9 : null ;
56+ return jdk8 ? null : isTypeAvailable (Constants .GENERATED_9 ) ? Constants .GENERATED_9 : null ;
6057 }
6158
6259 private boolean isTypeAvailable (String canonicalName ) {
You can’t perform that action at this time.
0 commit comments