jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1354883 - /jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/observation/EventImpl.java
Date Thu, 28 Jun 2012 09:29:07 GMT
Author: mduerig
Date: Thu Jun 28 09:29:06 2012
New Revision: 1354883

URL: http://svn.apache.org/viewvc?rev=1354883&view=rev
Log:
OAK-144: Implement observation
do not return null for getInfo

Modified:
    jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/observation/EventImpl.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/observation/EventImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/observation/EventImpl.java?rev=1354883&r1=1354882&r2=1354883&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/observation/EventImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/observation/EventImpl.java
Thu Jun 28 09:29:06 2012
@@ -17,7 +17,6 @@
 package org.apache.jackrabbit.oak.jcr.observation;
 
 import java.util.Collections;
-import java.util.HashMap;
 import java.util.Map;
 
 import javax.jcr.RepositoryException;
@@ -31,14 +30,13 @@ public class EventImpl implements Event 
     private final String identifier;
     private final Map<?, ?> info;
     private final long date;
-    private static Map<?, ?> EMPTY_INFO = Collections.unmodifiableMap(new HashMap<Object,
Object>());
 
     public EventImpl(int type, String path, String userID, String identifier, Map<?, ?>
info, long date) {
         this.type = type;
         this.path = path;
         this.userID = userID;
         this.identifier = identifier;
-        this.info = info != null ? info : EMPTY_INFO;
+        this.info = info == null ? Collections.emptyMap() : info;
         this.date = date;
     }
 



Mime
View raw message