From c5cd0c1f26dab1c5f824210f812e538873b9eeff Mon Sep 17 00:00:00 2001
From: Peter Powers <pmpowers@usgs.gov>
Date: Tue, 14 Dec 2021 17:49:26 -0700
Subject: [PATCH] spotbugs corrections

---
 .../usgs/earthquake/nshmp/model/NshmTestsLarge.java   | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/test/java/gov/usgs/earthquake/nshmp/model/NshmTestsLarge.java b/src/test/java/gov/usgs/earthquake/nshmp/model/NshmTestsLarge.java
index 777169a3e..4427652ac 100644
--- a/src/test/java/gov/usgs/earthquake/nshmp/model/NshmTestsLarge.java
+++ b/src/test/java/gov/usgs/earthquake/nshmp/model/NshmTestsLarge.java
@@ -92,14 +92,14 @@ class NshmTestsLarge {
   private static final Path DATA_PATH = Paths.get("src/test/resources/e2e");
 
   @Test
-  public void testConus2018() throws IOException {
+  public void testConus2018() {
     testModel("nshm-conus", 2018, CONUS_SITES);
   }
 
   private static void testModel(
       String modelName,
       int year,
-      List<NamedLocation> locations) throws IOException {
+      List<NamedLocation> locations) {
 
     Path modelPath = MODEL_PATH.resolve(modelName);
     HazardModel model = ModelLoader.load(modelPath);
@@ -112,7 +112,7 @@ class NshmTestsLarge {
       String modelName,
       int year,
       HazardModel model,
-      NamedLocation location) throws IOException {
+      NamedLocation location) {
 
     // String actual = generateActual(model, location);
     Map<String, XySequence> actual = generateActual(model, location);
@@ -209,6 +209,11 @@ class NshmTestsLarge {
   private static class Curve {
     double[] xs;
     double[] ys;
+
+    Curve(double[] xs, double[] ys) {
+      this.xs = xs;
+      this.ys = ys;
+    }
   }
 
   private static void writeExpecteds(
-- 
GitLab