File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed
packages/prettier-plugin-java
test/unit-test/generic_class Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ export class TypesValuesAndVariablesPrettierVisitor extends BaseCstPrettierPrint
95
95
segments . push ( rejectAndConcat ( currentSegment ) ) ;
96
96
currentSegment = [ ] ;
97
97
} else if ( isAnnotationCstNode ( token ) ) {
98
- currentSegment . push ( this . visit ( [ token ] ) ) ;
98
+ currentSegment . push ( this . visit ( [ token ] ) , " " ) ;
99
99
} else {
100
100
currentSegment . push ( token ) ;
101
101
if (
Original file line number Diff line number Diff line change @@ -35,3 +35,10 @@ public <BEAN> List<? super BEAN> getBean(final Class<BEAN> beanClass) {
35
35
}
36
36
37
37
}
38
+
39
+ public class Foo <T > {
40
+
41
+ public <U extends @ NotNull T > void example (U u ) {}
42
+
43
+ public <U extends com .java .Any .@ NotNull T > void example (U u ) {}
44
+ }
Original file line number Diff line number Diff line change @@ -27,3 +27,10 @@ public <BEAN> List<? super BEAN> getBean(final Class<BEAN> beanClass) {
27
27
return new ArrayList <>();
28
28
}
29
29
}
30
+
31
+ public class Foo <T > {
32
+
33
+ public <U extends @ NotNull T > void example (U u ) {}
34
+
35
+ public <U extends com .java .Any .@ NotNull T > void example (U u ) {}
36
+ }
You can’t perform that action at this time.
0 commit comments