Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ public int getCanId() {

@Override
public boolean equals(Object o) {
if (!(o instanceof InvalidCanIdException)) return false;
InvalidCanIdException other = (InvalidCanIdException) o;
return getMessage().equals(other.getMessage());
if (o instanceof InvalidCanIdException other) {
return getMessage().equals(other.getMessage());
}
return false;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class BuildConstantsPublisherTest {

// Fake constants copied and adapted from this article
// https://docs.wpilib.org/en/stable/docs/software/advanced-gradlerio/deploy-git-data.html
public final class FakeBuildConstants {
public static final class FakeBuildConstants {
public static final String MAVEN_GROUP = "";
public static final String MAVEN_NAME = "2813Robot";
public static final String VERSION = "unspecified";
Expand All @@ -60,9 +60,10 @@ private FakeBuildConstants() {}
* A Truth {@link Subject} for asserting properties of strings that should parse as {@link
* LocalDateTime}.
*
* <p>Composed with the help of Gemini: https://g.co/gemini/share/d8db68a8fbaf
* <p>Composed with the help of Gemini: <a
* href="https://g.co/gemini/share/d8db68a8fbaf">thread</a>
*/
private class DateTimeStringSubject extends Subject {
private static class DateTimeStringSubject extends Subject {
private final String actual;

private DateTimeStringSubject(FailureMetadata metadata, String actual) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1645,10 +1645,7 @@ public static double[] getPythonScriptData(String limelightName) {

/** Asynchronously take snapshot. */
public static CompletableFuture<Boolean> takeSnapshot(String tableName, String snapshotName) {
return CompletableFuture.supplyAsync(
() -> {
return SYNCH_TAKESNAPSHOT(tableName, snapshotName);
});
return CompletableFuture.supplyAsync(() -> SYNCH_TAKESNAPSHOT(tableName, snapshotName));
}

private static boolean SYNCH_TAKESNAPSHOT(String tableName, String snapshotName) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public TalonFX motor() {
* <li>Brake: The motor stops applying an input, and actively opposes its inertia.
* </ul>
*
* @param mode
* @param mode the state of the motor controller bridge when output is neutral or disabled
*/
public void setNeutralMode(NeutralModeValue mode) {
motor.setNeutralMode(mode);
Expand Down
Loading