From 10b20d5486d74b011dbbf0008b95310d38eb1cf3 Mon Sep 17 00:00:00 2001 From: Ryan Blue Date: Thu, 14 Sep 2023 14:02:49 -0400 Subject: [PATCH] format --- .../main/java/edu/wpi/first/apriltag/AprilTagFieldLayout.java | 2 +- .../src/main/java/edu/wpi/first/apriltag/AprilTagFields.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apriltag/src/main/java/edu/wpi/first/apriltag/AprilTagFieldLayout.java b/apriltag/src/main/java/edu/wpi/first/apriltag/AprilTagFieldLayout.java index 834540d0eb0..3759f7a2cac 100644 --- a/apriltag/src/main/java/edu/wpi/first/apriltag/AprilTagFieldLayout.java +++ b/apriltag/src/main/java/edu/wpi/first/apriltag/AprilTagFieldLayout.java @@ -200,7 +200,7 @@ public void serialize(Path path) throws IOException { */ public static AprilTagFieldLayout loadFromResource(String resourcePath) throws IOException { InputStream stream = AprilTagFieldLayout.class.getResourceAsStream(resourcePath); - if(stream == null) { + if (stream == null) { // Class.getResourceAsStream() returns null if the resource does not exist. throw new IOException("Could not locate resource: " + resourcePath); } diff --git a/apriltag/src/main/java/edu/wpi/first/apriltag/AprilTagFields.java b/apriltag/src/main/java/edu/wpi/first/apriltag/AprilTagFields.java index 89d256e1a4a..dda8d343c52 100644 --- a/apriltag/src/main/java/edu/wpi/first/apriltag/AprilTagFields.java +++ b/apriltag/src/main/java/edu/wpi/first/apriltag/AprilTagFields.java @@ -32,7 +32,8 @@ public AprilTagFieldLayout loadAprilTagLayoutField() { try { return AprilTagFieldLayout.loadFromResource(m_resourceFile); } catch (IOException e) { - throw new UncheckedIOException("Could not load AprilTagFieldLayout from " + m_resourceFile, e); + throw new UncheckedIOException( + "Could not load AprilTagFieldLayout from " + m_resourceFile, e); } } }