harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r726379 - in /harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/ssl: HandshakeCompletedEvent.java SSLSessionBindingEvent.java
Date Sun, 14 Dec 2008 06:05:18 GMT
Author: ndbeyer
Date: Sat Dec 13 22:05:18 2008
New Revision: 726379

URL: http://svn.apache.org/viewvc?rev=726379&view=rev
Log:
Correct use of @serial; clean up and format code

Modified:
    harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/ssl/HandshakeCompletedEvent.java
    harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/ssl/SSLSessionBindingEvent.java

Modified: harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/ssl/HandshakeCompletedEvent.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/ssl/HandshakeCompletedEvent.java?rev=726379&r1=726378&r2=726379&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/ssl/HandshakeCompletedEvent.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/ssl/HandshakeCompletedEvent.java
Sat Dec 13 22:05:18 2008
@@ -28,17 +28,11 @@
 import javax.security.cert.X509Certificate;
 import java.util.EventObject;
 
-/**
- * @com.intel.drl.spec_ref
- * 
- */
-public class HandshakeCompletedEvent extends EventObject implements
-        Serializable {
+public class HandshakeCompletedEvent extends EventObject implements Serializable {
 
     /**
-     * @serial
-     * The 5.0 spec. doesn't declare this serialVersionUID field
-     * In order to be compatible it is explicitly declared here
+     * The 5.0 spec. doesn't declare this serialVersionUID field In order to be compatible
it is
+     * explicitly declared here
      */
     private static final long serialVersionUID = 7914963744257769778L;
 
@@ -61,26 +55,24 @@
         return session.getLocalCertificates();
     }
 
-    public Certificate[] getPeerCertificates()
-            throws SSLPeerUnverifiedException {
+    public Certificate[] getPeerCertificates() throws SSLPeerUnverifiedException {
         return session.getPeerCertificates();
     }
 
-    public X509Certificate[] getPeerCertificateChain()
-            throws SSLPeerUnverifiedException {
+    public X509Certificate[] getPeerCertificateChain() throws SSLPeerUnverifiedException
{
         return session.getPeerCertificateChain();
     }
 
     public Principal getPeerPrincipal() throws SSLPeerUnverifiedException {
         return session.getPeerPrincipal();
     }
-    
+
     public Principal getLocalPrincipal() {
         return session.getLocalPrincipal();
     }
-    
+
     public SSLSocket getSocket() {
-        return (SSLSocket)this.source;
+        return (SSLSocket) this.source;
     }
 
-}
\ No newline at end of file
+}

Modified: harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/ssl/SSLSessionBindingEvent.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/ssl/SSLSessionBindingEvent.java?rev=726379&r1=726378&r2=726379&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/ssl/SSLSessionBindingEvent.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/javax/net/ssl/SSLSessionBindingEvent.java
Sat Dec 13 22:05:18 2008
@@ -25,32 +25,30 @@
 import java.io.Serializable;
 import java.util.EventObject;
 
-/**
- * @com.intel.drl.spec_ref
- * 
- */
 public class SSLSessionBindingEvent extends EventObject implements Serializable {
 
     /**
-     * @serial
-     * The 5.0 spec. doesn't declare this serialVersionUID field
-     * In order to be compatible it is explicitly declared here
+     * The 5.0 spec. doesn't declare this serialVersionUID field In order to be compatible
+     * it is explicitly declared here
      */
     private static final long serialVersionUID = 3989172637106345L;
 
-    private String name;
+    /**
+     * @serial include
+     */
+    private final String name;
 
     public SSLSessionBindingEvent(SSLSession session, String name) {
         super(session);
         this.name = name;
     }
+
     public String getName() {
         return name;
     }
+
     public SSLSession getSession() {
-        return (SSLSession)this.source;
+        return (SSLSession) this.source;
     }
-    
-
 
-}
\ No newline at end of file
+}



Mime
View raw message