directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blorit...@apache.org
Subject svn commit: r109353 - /incubator/directory/seda/branches/berin_api_proposal /incubator/directory/seda/trunk/src/java/org/apache/seda/impl/util/ValuedEnum.java /incubator/directory/seda/trunk/src/test/org/apache/seda/ProtocolTestCase.java
Date Wed, 01 Dec 2004 16:03:37 GMT
Author: bloritsch
Date: Wed Dec  1 08:03:34 2004
New Revision: 109353

URL: http://svn.apache.org/viewcvs?view=rev&rev=109353
Log:
apply my changes to make seda more future friendly
Added:
   incubator/directory/seda/branches/berin_api_proposal/
Modified:
   incubator/directory/seda/trunk/src/java/org/apache/seda/impl/util/ValuedEnum.java
   incubator/directory/seda/trunk/src/test/org/apache/seda/ProtocolTestCase.java

Modified: incubator/directory/seda/trunk/src/java/org/apache/seda/impl/util/ValuedEnum.java
Url: http://svn.apache.org/viewcvs/incubator/directory/seda/trunk/src/java/org/apache/seda/impl/util/ValuedEnum.java?view=diff&rev=109353&p1=incubator/directory/seda/trunk/src/java/org/apache/seda/impl/util/ValuedEnum.java&r1=109352&p2=incubator/directory/seda/trunk/src/java/org/apache/seda/impl/util/ValuedEnum.java&r2=109353
==============================================================================
--- incubator/directory/seda/trunk/src/java/org/apache/seda/impl/util/ValuedEnum.java	(original)
+++ incubator/directory/seda/trunk/src/java/org/apache/seda/impl/util/ValuedEnum.java	Wed
Dec  1 08:03:34 2004
@@ -105,15 +105,15 @@
     private static final long serialVersionUID = -7129650521543789085L;
 
     /**
-     * The value contained in enum.
+     * The value contained in Enum.
      */
     private final int iValue;
 
     /**
-     * Constructor for enum item.
+     * Constructor for Enum item.
      *
-     * @param name  the name of enum item
-     * @param value  the value of enum item
+     * @param name  the name of Enum item
+     * @param value  the value of Enum item
      */
     protected ValuedEnum(String name, int value)
     {
@@ -144,11 +144,11 @@
 
         for (Iterator it = list.iterator(); it.hasNext();)
         {
-            ValuedEnum enum = (ValuedEnum) it.next();
+            ValuedEnum enumVal = (ValuedEnum) it.next();
 
-            if (enum.getValue() == value)
+            if (enumVal.getValue() == value)
             {
-                return enum;
+                return enumVal;
             }
         }
 

Modified: incubator/directory/seda/trunk/src/test/org/apache/seda/ProtocolTestCase.java
Url: http://svn.apache.org/viewcvs/incubator/directory/seda/trunk/src/test/org/apache/seda/ProtocolTestCase.java?view=diff&rev=109353&p1=incubator/directory/seda/trunk/src/test/org/apache/seda/ProtocolTestCase.java&r1=109352&p2=incubator/directory/seda/trunk/src/test/org/apache/seda/ProtocolTestCase.java&r2=109353
==============================================================================
--- incubator/directory/seda/trunk/src/test/org/apache/seda/ProtocolTestCase.java	(original)
+++ incubator/directory/seda/trunk/src/test/org/apache/seda/ProtocolTestCase.java	Wed Dec
 1 08:03:34 2004
@@ -85,22 +85,22 @@
         this.port = AvailablePortFinder.getNextAvailable(6666);
 
         InetServiceEntry srvEntry;
-        
+
         srvEntry = new InetServiceEntry(proto.getName(), port, proto, TransportTypeEnum.TCP);
         ((DefaultInetServicesDatabase) fe.getInetServicesDatabase()).addEntry(srvEntry);
         tcpConfig = new TCPListenerConfig(InetAddress.getLocalHost(), srvEntry);
         fe.getTCPListenerManager().bind(tcpConfig);
-        
+
         srvEntry = new InetServiceEntry(proto.getName(), port, proto, TransportTypeEnum.UDP);
         ((DefaultInetServicesDatabase) fe.getInetServicesDatabase()).addEntry(srvEntry);
         udpConfig = new UDPListenerConfig(InetAddress.getLocalHost(), srvEntry);
         fe.getUDPListenerManager().bind(udpConfig);
     }
-    
+
     public static void assertEquals(byte[] expected, byte[] actual) {
 		assertEquals(toString(expected), toString(actual));
     }
-    
+
     private static String toString(byte[] buf) {
     	StringBuffer str = new StringBuffer(buf.length * 4);
     	for (int i = 0; i < buf.length; i++) {

Mime
View raw message