[xmlsectool] 01/03: Conventions: use of final.
Ian Young
ian at iay.org.uk
Tue May 24 13:18:34 EDT 2016
This is an automated email from the git hooks/post-receive script.
iay pushed a commit to branch master
in repository xmlsectool.
commit 5f4426354e1701671a8225a6fff1d6402520e5eb
Author: Ian Young <ian at iay.org.uk>
AuthorDate: Tue May 24 15:09:57 2016 +0100
Conventions: use of final.
---
src/main/java/net/shibboleth/tool/xmlsectool/XmlSecTool.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/net/shibboleth/tool/xmlsectool/XmlSecTool.java b/src/main/java/net/shibboleth/tool/xmlsectool/XmlSecTool.java
index 7d73fe6..f08d899 100644
--- a/src/main/java/net/shibboleth/tool/xmlsectool/XmlSecTool.java
+++ b/src/main/java/net/shibboleth/tool/xmlsectool/XmlSecTool.java
@@ -622,7 +622,7 @@ public final class XmlSecTool {
log.debug("XML document contained Signature element\n{}", SerializeSupport.prettyPrintXML(signatureElement));
log.debug("Creating XML security library XMLSignature object");
- XMLSignature signature = null;
+ final XMLSignature signature;
try {
signature = new XMLSignature(signatureElement, "");
} catch (XMLSecurityException e) {
@@ -698,7 +698,7 @@ public final class XmlSecTool {
throw new Terminator(ReturnCode.RC_SIG);
}
- Reference ref = null;
+ final Reference ref;
try {
ref = signature.getSignedInfo().item(0);
} catch (XMLSecurityException e) {
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list