directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1413752 - /directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/api/event/EventType.java
Date Mon, 26 Nov 2012 18:02:40 GMT
Author: elecharny
Date: Mon Nov 26 18:02:39 2012
New Revision: 1413752

URL: http://svn.apache.org/viewvc?rev=1413752&view=rev
Log:
Removed a useless private method.

Modified:
    directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/api/event/EventType.java

Modified: directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/api/event/EventType.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/api/event/EventType.java?rev=1413752&r1=1413751&r2=1413752&view=diff
==============================================================================
--- directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/api/event/EventType.java
(original)
+++ directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/api/event/EventType.java
Mon Nov 26 18:02:39 2012
@@ -40,9 +40,9 @@ public enum EventType
     MODIFY(4), 
     RENAME(8), 
     MOVE(16),
-    MOVE_AND_RENAME(24);    
+    MOVE_AND_RENAME(24); // MOVE | RENAME
     
-    public static final int ALL_EVENT_TYPES_MASK = getAllEventTypesMask();
+    public static final int ALL_EVENT_TYPES_MASK = ADD.mask | DELETE.mask | MODIFY.mask |
RENAME.mask | MOVE.mask;
     public static final int MOVE_AND_RENAME_MASK = MOVE.mask | RENAME.mask;
     private static final EventType[] EMPTY_EVENT_ARRAY = new EventType[0];
 
@@ -109,19 +109,6 @@ public enum EventType
     }
 
 
-    private static int getAllEventTypesMask()
-    {
-        int allTypes = 0;
-
-        for ( EventType type : values() )
-        {
-            allTypes |= type.getMask();
-        }
-
-        return allTypes;
-    }
-
-
     /**
      * Tells if the EventType is an ADD
      */



Mime
View raw message