summaryrefslogtreecommitdiff
path: root/smcc/src
diff options
context:
space:
mode:
Diffstat (limited to 'smcc/src')
-rw-r--r--smcc/src/main/java/at/gv/egiz/smcc/util/MSCMException.java4
-rw-r--r--smcc/src/main/java/at/gv/egiz/smcc/util/MSCMTransfer.java8
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();