Skip to content

Commit a9f405e

Browse files
committed
Merge pull request #210 from JLLeitschuh/fix/dontAddEmptyString
Fix adding empty string
2 parents 31f9ac6 + b3c5189 commit a9f405e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public final class CameraSource extends Source implements StartStoppable {
5050
*/
5151
public CameraSource(EventBus eventBus, int deviceNumber) throws IOException {
5252
this();
53-
this.properties.setProperty(DEVICE_NUMBER_PROPERTY, "" + deviceNumber);
53+
this.properties.setProperty(DEVICE_NUMBER_PROPERTY, Integer.toString(deviceNumber));
5454
this.createFromProperties(eventBus, this.properties);
5555
}
5656

ui/src/main/java/edu/wpi/grip/ui/preview/PointSizeSocketPreviewView.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public void onSocketChanged(SocketChangedEvent event) {
5555
}
5656

5757
private void updateTextFields() {
58-
this.x.setText("" + this.getSocket().getValue().get().get(0));
59-
this.y.setText("" + this.getSocket().getValue().get().get(1));
58+
this.x.setText(Integer.toString(this.getSocket().getValue().get().get(0)));
59+
this.y.setText(Integer.toString(this.getSocket().getValue().get().get(1)));
6060
}
6161
}

0 commit comments

Comments
 (0)