abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r555372 - /incubator/abdera/java/trunk/security/src/main/java/org/apache/abdera/security/util/DHContext.java
Date Wed, 11 Jul 2007 19:20:03 GMT
Author: jmsnell
Date: Wed Jul 11 12:20:02 2007
New Revision: 555372

URL: http://svn.apache.org/viewvc?view=rev&rev=555372
Log:
Bug fix. DHContext is only cloneable if publicKey is null

Modified:
    incubator/abdera/java/trunk/security/src/main/java/org/apache/abdera/security/util/DHContext.java

Modified: incubator/abdera/java/trunk/security/src/main/java/org/apache/abdera/security/util/DHContext.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/security/src/main/java/org/apache/abdera/security/util/DHContext.java?view=diff&rev=555372&r1=555371&r2=555372
==============================================================================
--- incubator/abdera/java/trunk/security/src/main/java/org/apache/abdera/security/util/DHContext.java
(original)
+++ incubator/abdera/java/trunk/security/src/main/java/org/apache/abdera/security/util/DHContext.java
Wed Jul 11 12:20:02 2007
@@ -219,7 +219,7 @@
   @Override
   public Object clone() 
     throws CloneNotSupportedException {
-      if (publicKey == null) throw new CloneNotSupportedException();
+      if (publicKey != null) throw new CloneNotSupportedException();
       // create a copy, not an actual clone
       return new DHContext(keyPair,p,g,l);
   }



Mime
View raw message