- missing override annotations added
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@158 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
This commit is contained in:
@@ -32,6 +32,7 @@ public class Usb_Bus {
|
||||
|
||||
public Usb_Device root_dev;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Usb_Bus " + dirname;
|
||||
}
|
||||
|
||||
@@ -71,6 +71,7 @@ public class Usb_Config_Descriptor extends Usb_Descriptor {
|
||||
|
||||
public int extralen;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Usb_Config_Descriptor bNumInterfaces: 0x"
|
||||
+ Integer.toHexString(bNumInterfaces);
|
||||
|
||||
@@ -50,6 +50,7 @@ public class Usb_Device {
|
||||
*/
|
||||
public Usb_Device children;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Usb_Device " + filename;
|
||||
}
|
||||
|
||||
@@ -95,6 +95,7 @@ public class Usb_Device_Descriptor extends Usb_Descriptor {
|
||||
*/
|
||||
public byte bNumConfigurations;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuffer sb = new StringBuffer();
|
||||
sb.append("Usb_Device_Descriptor idVendor: 0x"
|
||||
@@ -102,4 +103,4 @@ public class Usb_Device_Descriptor extends Usb_Descriptor {
|
||||
+ Integer.toHexString(idProduct & 0xFFFF));
|
||||
return sb.toString();
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -95,6 +95,7 @@ public class Usb_Endpoint_Descriptor extends Usb_Descriptor {
|
||||
|
||||
public int extralen;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Usb_Endpoint_Descriptor bEndpointAddress: 0x"
|
||||
+ Integer.toHexString(bEndpointAddress & 0xFF);
|
||||
|
||||
@@ -24,6 +24,7 @@ public class Usb_Interface {
|
||||
*/
|
||||
public int num_altsetting;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Usb_Interface num_altsetting: 0x"
|
||||
+ Integer.toHexString(num_altsetting);
|
||||
|
||||
@@ -68,6 +68,7 @@ public class Usb_Interface_Descriptor extends Usb_Descriptor {
|
||||
|
||||
public int extralen;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Usb_Interface_Descriptor bNumEndpoints: 0x"
|
||||
+ Integer.toHexString(bNumEndpoints);
|
||||
|
||||
@@ -4,6 +4,8 @@ import java.util.logging.Level;
|
||||
|
||||
public class LogLevel extends Level {
|
||||
|
||||
private static final long serialVersionUID = -8918592094095458645L;
|
||||
|
||||
public static final Level DEBUG = new LogLevel("DEBUG", 750);
|
||||
|
||||
protected LogLevel(String name, int value) {
|
||||
|
||||
@@ -20,6 +20,8 @@ import ch.ntb.usb.Usb_Bus;
|
||||
|
||||
public class UsbView extends JFrame {
|
||||
|
||||
private static final long serialVersionUID = 4693554326612734263L;
|
||||
|
||||
private static final int APP_WIDTH = 600, APP_HIGHT = 800;
|
||||
|
||||
private JPanel jContentPane = null;
|
||||
@@ -52,6 +54,7 @@ public class UsbView extends JFrame {
|
||||
this.setContentPane(getJContentPane());
|
||||
this.setTitle("USB View");
|
||||
this.addWindowListener(new java.awt.event.WindowAdapter() {
|
||||
@Override
|
||||
public void windowClosing(java.awt.event.WindowEvent e) {
|
||||
System.exit(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user