directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r587971 - /directory/studio/trunk/studio-ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeAttributesJob.java
Date Wed, 24 Oct 2007 19:13:55 GMT
Author: seelmann
Date: Wed Oct 24 12:13:55 2007
New Revision: 587971

URL: http://svn.apache.org/viewvc?rev=587971&view=rev
Log:
Simplified loop.

Modified:
    directory/studio/trunk/studio-ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeAttributesJob.java

Modified: directory/studio/trunk/studio-ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeAttributesJob.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeAttributesJob.java?rev=587971&r1=587970&r2=587971&view=diff
==============================================================================
--- directory/studio/trunk/studio-ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeAttributesJob.java
(original)
+++ directory/studio/trunk/studio-ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeAttributesJob.java
Wed Oct 24 12:13:55 2007
@@ -142,12 +142,11 @@
      */
     protected void runNotification()
     {
-        for ( int pi = 0; pi < entries.length; pi++ )
+        for ( IEntry entry : entries )
         {
-            IEntry parent = entries[pi];
-            if ( parent.getBrowserConnection() != null && parent.isDirectoryEntry()
)
+            if ( entry.getBrowserConnection() != null && entry.isDirectoryEntry()
)
             {
-                EventRegistry.fireEntryUpdated( new AttributesInitializedEvent( parent ),
this );
+                EventRegistry.fireEntryUpdated( new AttributesInitializedEvent( entry ),
this );
             }
         }
     }



Mime
View raw message