Skip to content

Commit

Permalink
Fix SAT findings
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
  • Loading branch information
jlaur committed Jun 10, 2022
1 parent 40e1876 commit 25a11b5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
@NonNullByDefault
public class DeviceStatus {

private static final Map<Integer, DeviceStatus> statusMap = Map.ofEntries(
private static final Map<Integer, DeviceStatus> STATUS_MAP = Map.ofEntries(
entry(0, new DeviceStatus("Reading status", false, DeviceCommand.RETURN)),
entry(257, new DeviceStatus("Charging", false, DeviceCommand.RETURN)),
entry(258, new DeviceStatus("Docked", true, DeviceCommand.RETURN)),
Expand Down Expand Up @@ -77,7 +77,7 @@ private DeviceStatus(String message, boolean isReadyToMow, @Nullable DeviceComma
* @return the {@link DeviceStatus} providing additional context for the code
*/
public static DeviceStatus fromCode(int code) {
DeviceStatus status = statusMap.get(code);
DeviceStatus status = STATUS_MAP.get(code);
if (status != null) {
return status;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
*/
public class SetStateRequest {

public final static String STATE_MOW = "mow";
public static final String STATE_MOW = "mow";

public final static String STATE_PAUSE = "pause";
public static final String STATE_PAUSE = "pause";

public final static String STATE_RETURN = "returnToDock";
public static final String STATE_RETURN = "returnToDock";

public String state;
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
public class DeviceCalendarResponse {

@SerializedName("sel_cal")
private int selectedEntryNumber;
public int selectedEntryNumber;

@SerializedName("cals")
private DeviceCalendarEntry[] entries;
public DeviceCalendarEntry[] entries;
}

0 comments on commit 25a11b5

Please sign in to comment.