mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
Renable full Java 8 Compatibility (#1493)
This commit is contained in:
committed by
Peter Johnson
parent
ca2acec88c
commit
0d7d880261
@@ -129,7 +129,7 @@ public final class CameraServer {
|
||||
}
|
||||
}
|
||||
|
||||
return values.toArray(String[]::new);
|
||||
return values.toArray(new String[0]);
|
||||
}
|
||||
|
||||
@SuppressWarnings({"JavadocMethod", "PMD.AvoidUsingHardCodedIP"})
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user