Skip to content

Commit 960cdec

Browse files
committed
spotless apply
1 parent 288afdd commit 960cdec

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/internal/ExperimentalFileDescriptor.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import io.opentelemetry.api.OpenTelemetry;
99
import io.opentelemetry.api.metrics.Meter;
10-
import io.opentelemetry.instrumentation.runtimemetrics.java8.internal.JmxRuntimeMetricsUtil;
1110
import java.lang.management.ManagementFactory;
1211
import java.lang.management.OperatingSystemMXBean;
1312
import java.util.ArrayList;
@@ -51,4 +50,4 @@ static List<AutoCloseable> registerObservers(
5150
}
5251

5352
private ExperimentalFileDescriptor() {}
54-
}
53+
}

instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/internal/ExperimentalFileDescriptorTest.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ class ExperimentalFileDescriptorTest {
3434
void setUp() {
3535
// Skip tests on non-Unix systems since UnixOperatingSystemMXBean is only available on Unix
3636
OperatingSystemMXBean realOsBean = ManagementFactory.getOperatingSystemMXBean();
37-
assumeTrue(realOsBean instanceof UnixOperatingSystemMXBean,
37+
assumeTrue(
38+
realOsBean instanceof UnixOperatingSystemMXBean,
3839
"Skipping test: UnixOperatingSystemMXBean is only available on Unix systems");
3940
}
4041

@@ -55,9 +56,7 @@ void registerObservers() {
5556
.hasDescription("Number of open file descriptors as reported by the JVM.")
5657
.hasUnit("{file_descriptor}")
5758
.hasLongSumSatisfying(
58-
sum ->
59-
sum.hasPointsSatisfying(
60-
point -> point.hasValue(42)))));
59+
sum -> sum.hasPointsSatisfying(point -> point.hasValue(42)))));
6160
}
6261

6362
@Test
@@ -77,8 +76,6 @@ void registerObservers_NegativeValue() {
7776
.hasDescription("Number of open file descriptors as reported by the JVM.")
7877
.hasUnit("{file_descriptor}")
7978
.hasLongSumSatisfying(
80-
sum ->
81-
sum.hasPointsSatisfying(
82-
point -> point.hasValue(0)))));
79+
sum -> sum.hasPointsSatisfying(point -> point.hasValue(0)))));
8380
}
8481
}

0 commit comments

Comments
 (0)