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 {
4
4
5
5
static final String KOTLIN_METADATA = "kotlin.Metadata" ;
6
6
static final String GENERATED_9 = "javax.annotation.processing.Generated" ;
7
- static final String GENERATED_8 = "javax.annotation.Generated" ;
8
7
9
8
static final String POSTCONSTRUCT = "javax.annotation.PostConstruct" ;
10
9
static final String PROVIDER = "javax.inject.Provider" ;
Original file line number Diff line number Diff line change @@ -53,10 +53,7 @@ class ProcessingContext {
53
53
}
54
54
55
55
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 ;
60
57
}
61
58
62
59
private boolean isTypeAvailable (String canonicalName ) {
You can’t perform that action at this time.
0 commit comments