From 806afc7627872328aaf798fa181bc96723868707 Mon Sep 17 00:00:00 2001 From: Starlight220 <53231611+Starlight220@users.noreply.github.com> Date: Wed, 29 Mar 2023 23:53:15 +0300 Subject: [PATCH] fmt --- .../networktables/sources/CompositeNetworkTableSource.java | 4 +++- .../networktables/sources/SingleKeyNetworkTableSource.java | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/networktables/src/main/java/edu/wpi/first/shuffleboard/plugin/networktables/sources/CompositeNetworkTableSource.java b/plugins/networktables/src/main/java/edu/wpi/first/shuffleboard/plugin/networktables/sources/CompositeNetworkTableSource.java index d4bc5c72b..7a90cd880 100644 --- a/plugins/networktables/src/main/java/edu/wpi/first/shuffleboard/plugin/networktables/sources/CompositeNetworkTableSource.java +++ b/plugins/networktables/src/main/java/edu/wpi/first/shuffleboard/plugin/networktables/sources/CompositeNetworkTableSource.java @@ -103,6 +103,8 @@ public Optional preferredWidget() { } private static Optional loadWidgetFromWidgetEntry(NetworkTable table) { - return Optional.ofNullable(table.getValue(".widget")).filter(NetworkTableValue::isString).map(NetworkTableValue::getString); + return Optional.ofNullable(table.getValue(".widget")) + .filter(NetworkTableValue::isString) + .map(NetworkTableValue::getString); } } diff --git a/plugins/networktables/src/main/java/edu/wpi/first/shuffleboard/plugin/networktables/sources/SingleKeyNetworkTableSource.java b/plugins/networktables/src/main/java/edu/wpi/first/shuffleboard/plugin/networktables/sources/SingleKeyNetworkTableSource.java index 7b9d6a2b5..ca6e571ee 100644 --- a/plugins/networktables/src/main/java/edu/wpi/first/shuffleboard/plugin/networktables/sources/SingleKeyNetworkTableSource.java +++ b/plugins/networktables/src/main/java/edu/wpi/first/shuffleboard/plugin/networktables/sources/SingleKeyNetworkTableSource.java @@ -108,7 +108,8 @@ private static Optional loadWidgetFromTopicProps(Topic topic) { JsonObject obj = parser.parse(metadata).getAsJsonObject(); JsonElement widgetProp = obj.get("widget"); if (widgetProp == null || !widgetProp.isJsonPrimitive()) { - System.err.println("Metadata widget field for topic `" + topic.getName() + "` doesn't exist or isn't primitive!"); + System.err.println("Metadata widget field for topic `" + topic.getName() + + "` doesn't exist or isn't primitive!"); return Optional.empty(); } return Optional.of(widgetProp.getAsString());