Skip to content

Commit fc680f8

Browse files
committed
Cleanup
1 parent 40450c5 commit fc680f8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

core/src/main/java/edu/wpi/grip/core/sources/NetworkTableEntrySource.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ protected SocketHint createSocketHint() {
7373
public String toString() {
7474
return CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.UPPER_CAMEL, name());
7575
}
76+
77+
public String toProperty() {
78+
return toString().toUpperCase();
79+
}
7680
}
7781

7882
@AssistedInject
@@ -134,7 +138,7 @@ protected boolean updateOutputSockets() {
134138
public Properties getProperties() {
135139
Properties properties = new Properties();
136140
properties.setProperty(PATH_PROPERTY, path);
137-
properties.setProperty(TYPE_PROPERTY, type.toString().toUpperCase());
141+
properties.setProperty(TYPE_PROPERTY, type.toProperty());
138142
return properties;
139143
}
140144

0 commit comments

Comments
 (0)