jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1063764 - in /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation: EventDispatcher.java EventFilter.java EventImpl.java ObservationDispatcher.java
Date Wed, 26 Jan 2011 15:50:01 GMT
Author: angela
Date: Wed Jan 26 15:50:01 2011
New Revision: 1063764

URL: http://svn.apache.org/viewvc?rev=1063764&view=rev
Log:
minor improvement

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventDispatcher.java
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventFilter.java
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventImpl.java
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/ObservationDispatcher.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventDispatcher.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventDispatcher.java?rev=1063764&r1=1063763&r2=1063764&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventDispatcher.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventDispatcher.java
Wed Jan 26 15:50:01 2011
@@ -26,7 +26,7 @@ import org.apache.jackrabbit.core.state.
 abstract class EventDispatcher {
 
     /**
-     * Gives this dispatcher the oportunity to prepare the events for
+     * Gives this dispatcher the opportunity to prepare the events for
      * dispatching.
      *
      * @param events the {@link EventState}s to prepare.

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventFilter.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventFilter.java?rev=1063764&r1=1063763&r2=1063764&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventFilter.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventFilter.java
Wed Jan 26 15:50:01 2011
@@ -69,7 +69,7 @@ public class EventFilter {
 
     /**
      * If <code>noLocal</code> is true this filter will block events from
-     * the session that registerd this filter.
+     * the session that registered this filter.
      */
     private final boolean noLocal;
 
@@ -150,8 +150,8 @@ public class EventFilter {
             Set<NodeType> eventTypes = eventState.getNodeTypes(session.getNodeTypeManager());
             boolean match = false;
             for (int i = 0; i < nodeTypes.length && !match; i++) {
-                for (Iterator<NodeType> iter = eventTypes.iterator(); iter.hasNext();)
{
-                    NodeTypeImpl nodeType = (NodeTypeImpl) iter.next();
+                for (NodeType eventType : eventTypes) {
+                    NodeTypeImpl nodeType = (NodeTypeImpl) eventType;
                     match |= nodeType.getQName().equals(nodeTypes[i].getQName())
                             || nodeType.isDerivedFrom(nodeTypes[i].getQName());
                 }
@@ -189,6 +189,7 @@ public class EventFilter {
          *
          * @return always <code>true</code>.
          */
+        @Override
         boolean blocks(EventState eventState) {
             return true;
         }

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventImpl.java?rev=1063764&r1=1063763&r2=1063764&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventImpl.java
Wed Jan 26 15:50:01 2011
@@ -74,10 +74,10 @@ public final class EventImpl implements 
      * Creates a new {@link javax.jcr.observation.Event} instance based on an
      * {@link EventState eventState}.
      *
-     * @param session    the session of the registerd <code>EventListener</code>
+     * @param session    the session of the registered <code>EventListener</code>
      *                   where this <code>Event</code> will be delivered to.
      * @param eventState the underlying <code>EventState</code>.
-     * @param timestamp  the time when the change occured that caused this event.
+     * @param timestamp  the time when the change occurred that caused this event.
      * @param userData   the user data associated with this event.
      */
     EventImpl(SessionImpl session, EventState eventState,

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/ObservationDispatcher.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/ObservationDispatcher.java?rev=1063764&r1=1063763&r2=1063764&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/ObservationDispatcher.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/ObservationDispatcher.java
Wed Jan 26 15:50:01 2011
@@ -122,7 +122,7 @@ public final class ObservationDispatcher
     }
 
     /**
-     * Returns an unmodifieable <code>Set</code> of <code>EventConsumer</code>s.
+     * Returns an unmodifiable <code>Set</code> of <code>EventConsumer</code>s.
      *
      * @return <code>Set</code> of <code>EventConsumer</code>s.
      */
@@ -173,7 +173,7 @@ public final class ObservationDispatcher
     /**
      * {@inheritDoc}
      * <p/>
-     * Gives this observation manager the oportunity to
+     * Gives this observation manager the opportunity to
      * prepare the events for dispatching.
      */
     void prepareEvents(EventStateCollection events) {



Mime
View raw message