Skip to content

Commit f14cf4e

Browse files
committed
Minor cleanup
1 parent d552503 commit f14cf4e

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

java-does-usb/src/main/java/net/codecrete/usb/USBDeviceFilter.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
package net.codecrete.usb;
99

10-
import java.util.List;
11-
1210
/**
1311
* Filter condition for matching USB devices.
1412
* <p>

java-does-usb/src/main/java/net/codecrete/usb/USBDevicePredicate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public interface USBDevicePredicate {
3232
* @param predicates a list of filter predicates
3333
* @return {@code true} if it matches, {@code false} otherwise
3434
*/
35-
public static boolean matchesAny(USBDevice device, List<USBDevicePredicate> predicates) {
35+
static boolean matchesAny(USBDevice device, List<USBDevicePredicate> predicates) {
3636
return predicates.stream().anyMatch(predicate -> predicate.matches(device));
3737
}
3838
}

java-does-usb/src/main/java/net/codecrete/usb/common/USBDeviceImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
import static java.lang.foreign.ValueLayout.JAVA_BYTE;
1919

20+
@SuppressWarnings("SynchronizationOnLocalVariableOrMethodParameter")
2021
public abstract class USBDeviceImpl implements USBDevice {
2122

2223
/**

java-does-usb/src/main/java/net/codecrete/usb/linux/LinuxUSBDevice.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
import static net.codecrete.usb.linux.LinuxUSBException.throwException;
3737
import static net.codecrete.usb.linux.LinuxUSBException.throwLastError;
3838

39+
@SuppressWarnings("SynchronizationOnLocalVariableOrMethodParameter")
3940
public class LinuxUSBDevice extends USBDeviceImpl {
4041

4142
private int fd = -1;

0 commit comments

Comments
 (0)