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); } } }