Add missing braces to switch code
/****************************************************************************
- * Copyright (C) 2012-2016 HS Coburg.
+ * Copyright (C) 2012-2018 HS Coburg.
* All rights reserved.
* Contact: ecsec GmbH (info@ecsec.de)
*
@@ -105,7 +105,8 @@ public class CryptoMarkerType extends AbstractMarkerType {
NodeList nodeList = node.getChildNodes();
for (int y = 0; y < nodeList.getLength(); y++) {
Node n = nodeList.item(y);
- if (null != n.getLocalName()) switch (n.getLocalName()) {
+ if (null != n.getLocalName()) {
+ switch (n.getLocalName()) {
case "Algorithm":
algorithmIdentifierType.setAlgorithm(n.getTextContent());
break;
@@ -114,6 +115,7 @@ public class CryptoMarkerType extends AbstractMarkerType {
break;
}
}
+ }
algorithmInfo.setAlgorithmIdentifier(algorithmIdentifierType);
break;
case "SupportedOperations":
@@ -187,7 +189,8 @@ public class CryptoMarkerType extends AbstractMarkerType {
{
if (certificateRefs == null) {
certificateRefs = new ArrayList<>();
- } CertificateRefType certificateRef = new CertificateRefType();
+ }
+ CertificateRefType certificateRef = new CertificateRefType();
NodeList nodeList = elem.getChildNodes();
for (int i = 0; i < nodeList.getLength(); i++) {
Node n = nodeList.item(i);
@@ -202,7 +205,8 @@ public class CryptoMarkerType extends AbstractMarkerType {
certificateRef.setCertificateType(n.getTextContent());
break;
}
- } certificateRefs.add(certificateRef);
+ }
+ certificateRefs.add(certificateRef);
break;
}
case "LegacyKeyName":
