We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40450c5 commit fc680f8Copy full SHA for fc680f8
core/src/main/java/edu/wpi/grip/core/sources/NetworkTableEntrySource.java
@@ -73,6 +73,10 @@ protected SocketHint createSocketHint() {
73
public String toString() {
74
return CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.UPPER_CAMEL, name());
75
}
76
+
77
+ public String toProperty() {
78
+ return toString().toUpperCase();
79
+ }
80
81
82
@AssistedInject
@@ -134,7 +138,7 @@ protected boolean updateOutputSockets() {
134
138
public Properties getProperties() {
135
139
Properties properties = new Properties();
136
140
properties.setProperty(PATH_PROPERTY, path);
137
- properties.setProperty(TYPE_PROPERTY, type.toString().toUpperCase());
141
+ properties.setProperty(TYPE_PROPERTY, type.toProperty());
142
return properties;
143
144
0 commit comments