Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9d04544

Browse files
Bump com.diffplug.spotless:spotless-maven-plugin from 2.43.0 to 2.44.0 (#1252)
* Bump com.diffplug.spotless:spotless-maven-plugin from 2.43.0 to 2.44.0 Bumps [com.diffplug.spotless:spotless-maven-plugin](https://github.com/diffplug/spotless) from 2.43.0 to 2.44.0. - [Release notes](https://github.com/diffplug/spotless/releases) - [Changelog](https://github.com/diffplug/spotless/blob/main/CHANGES.md) - [Commits](diffplug/spotless@lib/2.43.0...lib/2.44.0) --- updated-dependencies: - dependency-name: com.diffplug.spotless:spotless-maven-plugin dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * format Signed-off-by: Gregor Zeitlinger <[email protected]> * format Signed-off-by: Gregor Zeitlinger <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Gregor Zeitlinger <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Gregor Zeitlinger <[email protected]>
1 parent 3814e48 commit 9d04544

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

checkstyle.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,6 @@
255255
<message key="ws.notPreceded"
256256
value="GenericWhitespace ''{0}'' is not preceded with whitespace."/>
257257
</module>
258-
<!-- this doesn't seem to be compatible with google auto-format
259258
<module name="Indentation">
260259
<property name="basicOffset" value="2"/>
261260
<property name="braceAdjustment" value="2"/>
@@ -264,7 +263,6 @@
264263
<property name="lineWrappingIndentation" value="4"/>
265264
<property name="arrayInitIndent" value="2"/>
266265
</module>
267-
-->
268266
<module name="OverloadMethodsDeclarationOrder"/>
269267
<module name="VariableDeclarationUsageDistance"/>
270268
<module name="CustomImportOrder">

integration-tests/it-spring-boot-smoke-test/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
<plugin>
7878
<groupId>com.diffplug.spotless</groupId>
7979
<artifactId>spotless-maven-plugin</artifactId>
80-
<version>2.43.0</version>
80+
<version>2.44.0</version>
8181
<configuration>
8282
<java>
8383
<googleJavaFormat/>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@
223223
<plugin>
224224
<groupId>com.diffplug.spotless</groupId>
225225
<artifactId>spotless-maven-plugin</artifactId>
226-
<version>2.43.0</version>
226+
<version>2.44.0</version>
227227
</plugin>
228228
</plugins>
229229
</pluginManagement>

prometheus-metrics-exporter-opentelemetry/src/main/java/io/prometheus/metrics/exporter/opentelemetry/otelmodel/PrometheusMetricData.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ static String convertUnit(Unit unit) {
5353
return null;
5454
}
5555
switch (unit.toString()) {
56-
// Time
56+
// Time
5757
case "days":
5858
return "d";
5959
case "hours":
@@ -68,7 +68,7 @@ static String convertUnit(Unit unit) {
6868
return "us";
6969
case "nanoseconds":
7070
return "ns";
71-
// Bytes
71+
// Bytes
7272
case "bytes":
7373
return "By";
7474
case "kibibytes":
@@ -87,7 +87,7 @@ static String convertUnit(Unit unit) {
8787
return "GBy";
8888
case "terabytes":
8989
return "TBy";
90-
// SI
90+
// SI
9191
case "meters":
9292
return "m";
9393
case "volts":
@@ -100,14 +100,14 @@ static String convertUnit(Unit unit) {
100100
return "W";
101101
case "grams":
102102
return "g";
103-
// Misc
103+
// Misc
104104
case "celsius":
105105
return "Cel";
106106
case "hertz":
107107
return "Hz";
108108
case "percent":
109109
return "%";
110-
// default
110+
// default
111111
default:
112112
return unit.toString();
113113
}

prometheus-metrics-instrumentation-dropwizard5/src/main/java/io/prometheus/metrics/instrumentation/dropwizard5/DropwizardExports.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import java.util.Collections;
2525
import java.util.Map;
2626
import java.util.Optional;
27+
import java.util.Set;
2728
import java.util.concurrent.TimeUnit;
2829
import java.util.logging.Level;
2930
import java.util.logging.Logger;
@@ -196,8 +197,9 @@ MetricSnapshot fromMeter(String dropwizardName, Meter meter) {
196197
@Override
197198
public MetricSnapshots collect() {
198199
MetricSnapshots.Builder metricSnapshots = MetricSnapshots.builder();
199-
for (@SuppressWarnings("rawtypes")
200-
Map.Entry<MetricName, Gauge> entry : registry.getGauges(metricFilter).entrySet()) {
200+
@SuppressWarnings("rawtypes")
201+
Set<Map.Entry<MetricName, Gauge>> entries = registry.getGauges(metricFilter).entrySet();
202+
for (@SuppressWarnings("rawtypes") Map.Entry<MetricName, Gauge> entry : entries) {
201203
Optional.ofNullable(fromGauge(entry.getKey().getKey(), entry.getValue()))
202204
.ifPresent(metricSnapshots::metricSnapshot);
203205
}

0 commit comments

Comments
 (0)