rehome some APIs to nb-api

This commit is contained in:
Jonathan Shook 2021-08-10 10:33:58 -05:00
parent c6c0ef2e68
commit 28bf7b6e91
29 changed files with 27 additions and 23 deletions

View File

@ -38,16 +38,6 @@
<version>4.15.52-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>io.dropwizard.metrics</groupId>
<artifactId>metrics-core</artifactId>
</dependency>
<dependency>
<groupId>org.graalvm.sdk</groupId>
<artifactId>graal-sdk</artifactId>
</dependency>
</dependencies>

View File

@ -75,15 +75,6 @@
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
</dependency>
<dependency>
<groupId>com.mitchtalmadge</groupId>
<artifactId>ascii-data</artifactId>
</dependency>
<dependency>
<groupId>org.hdrhistogram</groupId>
<artifactId>HdrHistogram</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>

View File

@ -87,6 +87,29 @@
<artifactId>commons-codec</artifactId>
</dependency>
<dependency>
<groupId>io.dropwizard.metrics</groupId>
<artifactId>metrics-core</artifactId>
</dependency>
<dependency>
<groupId>org.hdrhistogram</groupId>
<artifactId>HdrHistogram</artifactId>
</dependency>
<dependency>
<groupId>com.mitchtalmadge</groupId>
<artifactId>ascii-data</artifactId>
</dependency>
<dependency>
<groupId>org.graalvm.sdk</groupId>
<artifactId>graal-sdk</artifactId>
</dependency>
</dependencies>

View File

@ -23,11 +23,11 @@ import java.io.OutputStream;
public class ConvenientSnapshot extends Snapshot {
private double NS_PER_S = 1000000000.0D;
private double NS_PER_MS = 1000000.0D;
private double NS_PER_US = 1000.0D;
private final double NS_PER_S = 1000000000.0D;
private final double NS_PER_MS = 1000000.0D;
private final double NS_PER_US = 1000.0D;
private Snapshot snapshot;
private final Snapshot snapshot;
ConvenientSnapshot(Snapshot snapshot) {
this.snapshot = snapshot;
}