File tree Expand file tree Collapse file tree 5 files changed +73
-31
lines changed
jooby-openapi/src/test/kotlin/kt/i3705 Expand file tree Collapse file tree 5 files changed +73
-31
lines changed Original file line number Diff line number Diff line change 6868 <version >1.37</version >
6969 <scope >test</scope >
7070 </dependency >
71-
72- <dependency >
73- <groupId >org.openjdk.jmh</groupId >
74- <artifactId >jmh-generator-annprocess</artifactId >
75- <version >1.37</version >
76- <scope >test</scope >
77- </dependency >
7871 </dependencies >
72+
73+ <build >
74+ <plugins >
75+ <plugin >
76+ <artifactId >maven-compiler-plugin</artifactId >
77+ <version >${maven-compiler-plugin.version} </version >
78+ <configuration >
79+ <annotationProcessorPaths >
80+ <path >
81+ <groupId >org.openjdk.jmh</groupId >
82+ <artifactId >jmh-generator-annprocess</artifactId >
83+ <version >1.37</version >
84+ </path >
85+ </annotationProcessorPaths >
86+ </configuration >
87+ </plugin >
88+ </plugins >
89+ </build >
7990</project >
Original file line number Diff line number Diff line change 7171 <version >1.37</version >
7272 <scope >test</scope >
7373 </dependency >
74-
75- <dependency >
76- <groupId >org.openjdk.jmh</groupId >
77- <artifactId >jmh-generator-annprocess</artifactId >
78- <version >1.37</version >
79- <scope >test</scope >
80- </dependency >
81-
8274 </dependencies >
75+
76+ <build >
77+ <plugins >
78+ <plugin >
79+ <artifactId >maven-compiler-plugin</artifactId >
80+ <version >${maven-compiler-plugin.version} </version >
81+ <configuration >
82+ <annotationProcessorPaths >
83+ <path >
84+ <groupId >io.jstach</groupId >
85+ <artifactId >jstachio-apt</artifactId >
86+ <version >${jstachio.version} </version >
87+ </path >
88+ </annotationProcessorPaths >
89+ </configuration >
90+ </plugin >
91+ </plugins >
92+ </build >
8393</project >
Original file line number Diff line number Diff line change 2424 <artifactId >jstachio</artifactId >
2525 </dependency >
2626
27- <dependency >
28- <groupId >io.jstach</groupId >
29- <artifactId >jstachio-apt</artifactId >
30- <scope >provided</scope >
31- <optional >true</optional >
32- </dependency >
33-
3427 <!-- Test dependencies -->
3528 <dependency >
3629 <groupId >org.junit.jupiter</groupId >
4639 </dependency >
4740 </dependencies >
4841
42+ <build >
43+ <plugins >
44+ <plugin >
45+ <artifactId >maven-compiler-plugin</artifactId >
46+ <version >${maven-compiler-plugin.version} </version >
47+ <configuration >
48+ <annotationProcessorPaths >
49+ <path >
50+ <groupId >io.jstach</groupId >
51+ <artifactId >jstachio-apt</artifactId >
52+ <version >${jstachio.version} </version >
53+ </path >
54+ </annotationProcessorPaths >
55+ </configuration >
56+ </plugin >
57+ </plugins >
58+ </build >
59+
4960</project >
Original file line number Diff line number Diff line change 7575 <artifactId >mockito-core</artifactId >
7676 <scope >test</scope >
7777 </dependency >
78+
7879 <dependency >
7980 <groupId >org.slf4j</groupId >
8081 <artifactId >slf4j-simple</artifactId >
8889 <version >1.37</version >
8990 <scope >test</scope >
9091 </dependency >
91-
92- <dependency >
93- <groupId >org.openjdk.jmh</groupId >
94- <artifactId >jmh-generator-annprocess</artifactId >
95- <version >1.37</version >
96- <scope >test</scope >
97- </dependency >
98-
9992 </dependencies >
10093
94+ <build >
95+ <plugins >
96+ <plugin >
97+ <artifactId >maven-compiler-plugin</artifactId >
98+ <version >${maven-compiler-plugin.version} </version >
99+ <configuration >
100+ <annotationProcessorPaths >
101+ <path >
102+ <groupId >org.openjdk.jmh</groupId >
103+ <artifactId >jmh-generator-annprocess</artifactId >
104+ <version >1.37</version >
105+ </path >
106+ </annotationProcessorPaths >
107+ </configuration >
108+ </plugin >
109+ </plugins >
110+ </build >
101111 <profiles >
102112 <!-- Netty: -->
103113 <profile >
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ class C3705 {
2222
2323class BeanScope {
2424 fun <T > get (type : Class <T >): T {
25- return type.newInstance()
25+ return type.getDeclaredConstructor(). newInstance()
2626 }
2727}
2828
You can’t perform that action at this time.
0 commit comments