File tree 2 files changed +15
-5
lines changed
metrics-core/src/test/java/com/codahale/metrics
2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change
1
+ package com .codahale .metrics ;
2
+
3
+ import org .junit .Test ;
4
+
5
+ import static org .assertj .core .api .Assertions .assertThat ;
6
+
7
+ public class ClassMetadataTest {
8
+ @ Test
9
+ public void testParameterMetadataIsAvailable () throws NoSuchMethodException {
10
+ assertThat (DefaultSettableGauge .class .getConstructor (Object .class ).getParameters ())
11
+ .allSatisfy (parameter -> assertThat (parameter .isNamePresent ()).isTrue ());
12
+ }
13
+ }
Original file line number Diff line number Diff line change 146
146
<plugin >
147
147
<groupId >org.apache.maven.plugins</groupId >
148
148
<artifactId >maven-compiler-plugin</artifactId >
149
- <version >${maven-compiler-plugin.version} </version >
150
149
<configuration >
151
- <fork >true</fork >
152
150
<compilerArgs combine.children=" append" >
153
151
<arg >-J-Xbootclasspath/p:${settings.localRepository} /com/google/errorprone/javac/${errorprone.javac.version} /javac-${errorprone.javac.version} .jar</arg >
154
152
</compilerArgs >
167
165
<plugin >
168
166
<groupId >org.apache.maven.plugins</groupId >
169
167
<artifactId >maven-compiler-plugin</artifactId >
170
- <version >${maven-compiler-plugin.version} </version >
171
168
<configuration >
172
- <fork >true</fork >
173
169
<compilerArgs >
174
170
<arg >-Xlint:all</arg >
175
171
<arg >-XDcompilePolicy=simple</arg >
318
314
<plugin >
319
315
<groupId >org.apache.maven.plugins</groupId >
320
316
<artifactId >maven-compiler-plugin</artifactId >
321
- <version >${maven-compiler-plugin.version} </version >
322
317
<configuration >
323
318
<source >1.8</source >
324
319
<target >1.8</target >
320
+ <fork >true</fork >
321
+ <parameters >true</parameters >
325
322
<showWarnings >true</showWarnings >
326
323
<compilerArgs >
327
324
<arg >-Xlint:all</arg >
You can’t perform that action at this time.
0 commit comments