summaryrefslogtreecommitdiff
path: root/java/security/Signature.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/security/Signature.java')
-rw-r--r--java/security/Signature.java15
1 files changed, 8 insertions, 7 deletions
diff --git a/java/security/Signature.java b/java/security/Signature.java
index d7186395f..29ce53512 100644
--- a/java/security/Signature.java
+++ b/java/security/Signature.java
@@ -1,5 +1,5 @@
/* Signature.java --- Signature Class
- Copyright (C) 1999, 2002, 2003, 2004 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2002, 2003, 2004, 2014 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -332,8 +332,7 @@ public abstract class Signature extends SignatureSpi
{
if (state == SIGN)
return engineSign();
- else
- throw new SignatureException();
+ throw new SignatureException();
}
/**
@@ -365,8 +364,7 @@ public abstract class Signature extends SignatureSpi
{
if (state == SIGN)
return engineSign(outbuf, offset, len);
- else
- throw new SignatureException();
+ throw new SignatureException();
}
/**
@@ -383,8 +381,7 @@ public abstract class Signature extends SignatureSpi
{
if (state == VERIFY)
return engineVerify(signature);
- else
- throw new SignatureException();
+ throw new SignatureException();
}
/**
@@ -510,6 +507,7 @@ public abstract class Signature extends SignatureSpi
*
* @return a rstring representation of this instance.
*/
+ @Override
public String toString()
{
return (algorithm + " Signature");
@@ -527,6 +525,7 @@ public abstract class Signature extends SignatureSpi
* can not be changed, a security exception occured, etc.
* @deprecated use the other setParameter
*/
+ @Deprecated
public final void setParameter(String param, Object value)
throws InvalidParameterException
{
@@ -573,6 +572,7 @@ public abstract class Signature extends SignatureSpi
* if the parameter is invalid.
* @deprecated use the other getParameter
*/
+ @Deprecated
public final Object getParameter(String param)
throws InvalidParameterException
{
@@ -586,6 +586,7 @@ public abstract class Signature extends SignatureSpi
* @throws CloneNotSupportedException
* if the implementation does not support cloning.
*/
+ @Override
public Object clone() throws CloneNotSupportedException
{
return super.clone();