From ef000b5d2cc1b695f34e07b67b5c580a36608454 Mon Sep 17 00:00:00 2001 From: tkellner Date: Tue, 7 Jan 2014 15:24:29 +0000 Subject: get rid of some warnings git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1274 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- smcc/src/main/java/at/gv/egiz/smcc/util/MSCMException.java | 4 +++- smcc/src/main/java/at/gv/egiz/smcc/util/MSCMTransfer.java | 8 ++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/smcc/src/main/java/at/gv/egiz/smcc/util/MSCMException.java b/smcc/src/main/java/at/gv/egiz/smcc/util/MSCMException.java index 0466d30c..fc48c92d 100644 --- a/smcc/src/main/java/at/gv/egiz/smcc/util/MSCMException.java +++ b/smcc/src/main/java/at/gv/egiz/smcc/util/MSCMException.java @@ -1,7 +1,9 @@ package at.gv.egiz.smcc.util; public class MSCMException extends Exception { - private short hive; + private static final long serialVersionUID = 1L; + + private short hive; public MSCMException(short hive, String netException, String optional) { super(netException + " [ " + optional + " ]"); diff --git a/smcc/src/main/java/at/gv/egiz/smcc/util/MSCMTransfer.java b/smcc/src/main/java/at/gv/egiz/smcc/util/MSCMTransfer.java index ea4121a5..152ae37e 100644 --- a/smcc/src/main/java/at/gv/egiz/smcc/util/MSCMTransfer.java +++ b/smcc/src/main/java/at/gv/egiz/smcc/util/MSCMTransfer.java @@ -11,10 +11,6 @@ import javax.smartcardio.ResponseAPDU; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import at.gv.egiz.smcc.GemaltoNetV2_0Card; - -import java.nio.ByteBuffer; - public class MSCMTransfer implements MSCMConstants { private final Logger log = LoggerFactory @@ -117,8 +113,8 @@ public class MSCMTransfer implements MSCMConstants { return data; } - String namespaceString = MSCMDecoder.namespaceHiveToString(data, 0); - String typeString = MSCMDecoder.typeHiveToString(data, 4); +// String namespaceString = MSCMDecoder.namespaceHiveToString(data, 0); +// String typeString = MSCMDecoder.typeHiveToString(data, 4); short resultType = MSCMService.bytesToShort(data, 4); if(expectedType == resultType) { ByteArrayOutputStream str = new ByteArrayOutputStream(); -- cgit v1.2.3