From 5d3259c085ebf2b9c3dc975d90eaeba050b901ec Mon Sep 17 00:00:00 2001 From: schlaepfer Date: Thu, 31 Aug 2006 14:22:44 +0000 Subject: [PATCH] - compiler warnings fixed git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@171 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c --- java/src/ch/ntb/usb/logger/LogUtil.java | 4 ++-- java/src/ch/ntb/usb/testApp/TestGUI.java | 27 ++++++++++++------------ 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/java/src/ch/ntb/usb/logger/LogUtil.java b/java/src/ch/ntb/usb/logger/LogUtil.java index fd10a20..f411723 100644 --- a/java/src/ch/ntb/usb/logger/LogUtil.java +++ b/java/src/ch/ntb/usb/logger/LogUtil.java @@ -10,8 +10,8 @@ public class LogUtil { static { // set all loglevels here - ch_ntb_usb = getLogger("ch.ntb.usb", LogLevel.OFF); - ch_ntb_usb_test = getLogger("ch.ntb.usb.test", LogLevel.ALL); + ch_ntb_usb = getLogger("ch.ntb.usb", Level.OFF); + ch_ntb_usb_test = getLogger("ch.ntb.usb.test", Level.ALL); } public static void setLevel(UsbLogger logger, Level loglevel) { diff --git a/java/src/ch/ntb/usb/testApp/TestGUI.java b/java/src/ch/ntb/usb/testApp/TestGUI.java index 8138fa9..535451f 100644 --- a/java/src/ch/ntb/usb/testApp/TestGUI.java +++ b/java/src/ch/ntb/usb/testApp/TestGUI.java @@ -16,24 +16,24 @@ public class TestGUI { private static final int HEX_WIDTH = 5; private Shell rootShell = null; // @jve:decl-index=0:visual-constraint="10,10" private Group vendorIDGroup = null; - private Text vendorID = null; + Text vendorID = null; private Group productIDGroup = null; - private Text productID = null; + Text productID = null; private Group configGroup = null; - private Text configuration = null; + Text configuration = null; private Group interfaceGroup = null; - private Text interface_ = null; + Text interface_ = null; private Group altIntGroup = null; - private Text altInt = null; + Text altInt = null; private Group deviceGroup = null; private Group endpointGroup = null; private Group deviceGroup2 = null; private Group outEPGroup = null; - private Text outEP = null; + Text outEP = null; private Group inEPGroup = null; - private Text inEP = null; + Text inEP = null; private Group timeoutGroup = null; - private Text timeout = null; + Text timeout = null; private Group dataGroup = null; private Composite dataButtonComp = null; private Button sendButton = null; @@ -43,10 +43,10 @@ public class TestGUI { private Button devOpenButton = null; private Button devCloseButton = null; private Group dataFieldGoup = null; - private Text dataField = null; + Text dataField = null; private Button resetButton = null; - private int parseInt(String s) { + int parseInt(String s) { if (s == "") return 0; if (s.indexOf('x') > 0) { @@ -56,13 +56,12 @@ public class TestGUI { } return Integer.parseInt( s.substring(s.indexOf('x') + 1, s.length()), 16); - } else { - // is decimal number - return Integer.parseInt(s); } + // is decimal number + return Integer.parseInt(s); } - private byte[] parseByteArray(String s) { + byte[] parseByteArray(String s) { StringBuffer sb = new StringBuffer(); int stringIndex = 0, spaceIndex = 0; String ss;