aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-lib/src/main/java/at/gv/egiz/sl
diff options
context:
space:
mode:
authorTobias Kellner <tobias.kellner@iaik.tugraz.at>2014-03-15 00:25:37 +0100
committerTobias Kellner <tobias.kellner@iaik.tugraz.at>2014-04-03 15:38:37 +0200
commit82f28cc18b9371c81f3e6fa147080371a00443f5 (patch)
tree9f6e9f65dbe1b930d90d01ba09ae438cac2a0bd2 /pdf-as-lib/src/main/java/at/gv/egiz/sl
parent0f8777952974daf03099bf48c6db1d91bd431bb2 (diff)
downloadpdf-as-4-82f28cc18b9371c81f3e6fa147080371a00443f5.tar.gz
pdf-as-4-82f28cc18b9371c81f3e6fa147080371a00443f5.tar.bz2
pdf-as-4-82f28cc18b9371c81f3e6fa147080371a00443f5.zip
Don't use raw types! Also check casts where possible
Diffstat (limited to 'pdf-as-lib/src/main/java/at/gv/egiz/sl')
-rw-r--r--pdf-as-lib/src/main/java/at/gv/egiz/sl/util/BKUSLConnector.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/BKUSLConnector.java b/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/BKUSLConnector.java
index 9545b32f..c0a0b8aa 100644
--- a/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/BKUSLConnector.java
+++ b/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/BKUSLConnector.java
@@ -104,10 +104,9 @@ public class BKUSLConnector extends BaseSLConnector {
}
}
- @SuppressWarnings("rawtypes")
public InfoboxReadResponseType sendInfoboxReadRequest(
InfoboxReadRequestType request) throws PdfAsException {
- JAXBElement element = null;
+ JAXBElement<?> element = null;
String slRequest;
try {
slRequest = SLMarschaller.marshalToString(of
@@ -116,7 +115,7 @@ public class BKUSLConnector extends BaseSLConnector {
String slResponse = performHttpRequestToBKU(slRequest);
- element = (JAXBElement) SLMarschaller
+ element = (JAXBElement<?>) SLMarschaller
.unmarshalFromString(slResponse);
} catch (JAXBException e) {
@@ -146,7 +145,7 @@ public class BKUSLConnector extends BaseSLConnector {
public CreateCMSSignatureResponseType sendCMSRequest(
CreateCMSSignatureRequestType request) throws PdfAsException {
- JAXBElement element = null;
+ JAXBElement<?> element = null;
String slRequest;
try {
slRequest = SLMarschaller.marshalToString(of
@@ -155,7 +154,7 @@ public class BKUSLConnector extends BaseSLConnector {
String slResponse = performHttpRequestToBKU(slRequest);
- element = (JAXBElement) SLMarschaller
+ element = (JAXBElement<?>) SLMarschaller
.unmarshalFromString(slResponse);
} catch (JAXBException e) {
throw new PDFIOException("error.pdf.io.03", e);