private static Map<Long, String> productIdMap = new HashMap<>();
private static Map<Long, String> serialMap = new HashMap<>();
private static Map<Long, List<Long>> hubMap = new HashMap<>();
public static UsbDevice[] getUsbDevices(boolean tree) {
UsbDevice[] devices = getUsbDevices();
<BUG>if (!tree) {
return devices;</BUG>
}
List<UsbDevice> deviceList = new ArrayList<>();
for (UsbDevice device : devices) {

private static Map<Long, String> productIdMap = new HashMap<>();
private static Map<Long, String> serialMap = new HashMap<>();
private static Map<Long, List<Long>> hubMap = new HashMap<>();
public static UsbDevice[] getUsbDevices(boolean tree) {
UsbDevice[] devices = getUsbDevices();
if (tree) {
return devices;
}
List<UsbDevice> deviceList = new ArrayList<>();
for (UsbDevice device : devices) {
