Renable full Java 8 Compatibility (#1493)

This commit is contained in:
Thad House
2018-12-21 00:25:24 -08:00
committed by Peter Johnson
parent ca2acec88c
commit 0d7d880261
5 changed files with 7 additions and 8 deletions

View File

@@ -129,7 +129,7 @@ public final class CameraServer {
}
}
return values.toArray(String[]::new);
return values.toArray(new String[0]);
}
@SuppressWarnings({"JavadocMethod", "PMD.AvoidUsingHardCodedIP"})

View File

@@ -48,7 +48,7 @@ final class RecordingController {
}
public void addEventMarker(String name, String description, EventImportance importance) {
if (name == null || name.isEmpty() || name.isBlank()) {
if (name == null || name.isEmpty()) {
DriverStation.reportError(
"Shuffleboard event name was not specified", true);
return;
@@ -60,7 +60,7 @@ final class RecordingController {
return;
}
String eventDescription = description == null || description.isBlank() ? "" : description;
String eventDescription = description == null ? "" : description;
m_eventsTable.getSubTable(name)
.getEntry("Info")

View File

@@ -152,7 +152,7 @@ public class SendableChooser<V> extends SendableBase {
return m_defaultChoice;
}, null);
builder.addStringArrayProperty(OPTIONS, () -> {
return m_map.keySet().toArray(String[]::new);
return m_map.keySet().toArray(new String[0]);
}, null);
builder.addStringProperty(ACTIVE, () -> {
m_mutex.lock();