Skip to content

Commit

Permalink
Code fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
runeflobakk committed Jun 3, 2024
1 parent e5a3e9b commit ea4e3de
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import java.time.Instant;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Enumeration;
import java.util.List;
import java.util.Objects;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class JarManifest extends Manifest {
);
}

JarManifest(Class classFromJar) {
JarManifest(Class<?> classFromJar) {
final String jarLocation = classFromJar.getProtectionDomain()
.getCodeSource()
.getLocation()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import io.micrometer.core.instrument.Gauge;
import io.micrometer.core.instrument.MeterRegistry;
import io.micrometer.core.instrument.binder.MeterBinder;
import io.micrometer.core.lang.NonNull;

/**
* @see RuntimeStatus for possible values of the metric
Expand All @@ -32,7 +31,7 @@ public RuntimeStatusBinder(RuntimeStatus status) {
}

@Override
public void bindTo(@NonNull MeterRegistry registry) {
public void bindTo(MeterRegistry registry) {
Gauge.builder("app_runtime_status", () -> status.get().getValue())
.description("State of application with regards the runtime status")
.register(registry);
Expand Down

0 comments on commit ea4e3de

Please sign in to comment.