jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1173155 - /jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/SubscriptionImpl.java
Date Tue, 20 Sep 2011 13:58:15 GMT
Author: mduerig
Date: Tue Sep 20 13:58:15 2011
New Revision: 1173155

URL: http://svn.apache.org/viewvc?rev=1173155&view=rev
Log:
Microkernel based Jackrabbit prototype (WIP) 
null check   

Modified:
    jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/SubscriptionImpl.java

Modified: jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/SubscriptionImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/SubscriptionImpl.java?rev=1173155&r1=1173154&r2=1173155&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/SubscriptionImpl.java
(original)
+++ jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/SubscriptionImpl.java
Tue Sep 20 13:58:15 2011
@@ -337,12 +337,7 @@ public class SubscriptionImpl implements
         }
 
         private CommitMessage parseCommitMessage(String msg) {
-            try {
-                return CommitMessage.parse(msg);
-            }
-            catch (IllegalArgumentException e) {
-                return null;
-            }
+            return msg == null ? null : CommitMessage.parse(msg);
         }
 
         private Collection<Event> getEvents(String changes, EventTemplate eventTemplate)
throws RepositoryException {



Mime
View raw message