Code cleanups
This commit is contained in:
parent
d0f7070fd7
commit
93c1078268
@ -92,7 +92,7 @@ public abstract class AbstractIrpQueue<T extends UsbIrp>
|
||||
|
||||
// Get next IRP and mark the thread as closing before sending the
|
||||
// events for the previous IRP
|
||||
T nextIrp = this.irps.poll();
|
||||
final T nextIrp = this.irps.poll();
|
||||
if (nextIrp == null) this.processor = null;
|
||||
|
||||
// Finish the previous IRP
|
||||
|
||||
@ -108,7 +108,7 @@ public final class Usb4JavaHub extends Usb4JavaDevice implements UsbHub,
|
||||
if (this == obj) return true;
|
||||
if (obj == null) return false;
|
||||
if (getClass() != obj.getClass()) return false;
|
||||
Usb4JavaDevice other = (Usb4JavaDevice) obj;
|
||||
final Usb4JavaDevice other = (Usb4JavaDevice) obj;
|
||||
return getId().equals(other.getId());
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user