jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1165744 - in /jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src: main/java/org/apache/jackrabbit/spi2microkernel/ test/java/org/apache/jackrabbit/spi2microkernel/tck/
Date Tue, 06 Sep 2011 16:15:03 GMT
Author: mduerig
Date: Tue Sep  6 16:15:03 2011
New Revision: 1165744

URL: http://svn.apache.org/viewvc?rev=1165744&view=rev
Log:
Microkernel based Jackrabbit prototype (WIP)
clean up

Modified:
    jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/Values.java
    jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/tck/RepositoryStubImpl.java
    jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/tck/TestContent.java

Modified: jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/Values.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/Values.java?rev=1165744&r1=1165743&r2=1165744&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/Values.java
(original)
+++ jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/Values.java
Tue Sep  6 16:15:03 2011
@@ -39,7 +39,6 @@ import java.io.ByteArrayOutputStream;
 import java.io.IOException;
 import java.io.StringWriter;
 import java.util.Calendar;
-import java.util.GregorianCalendar;
 import java.util.HashMap;
 import java.util.HashSet;
 import java.util.Map;
@@ -64,7 +63,7 @@ import static org.apache.jackrabbit.spi.
 import static org.apache.jackrabbit.spi.commons.name.NameConstants.JCR_UUID;
 import static org.apache.jackrabbit.spi.commons.name.NameConstants.MIX_CREATED;
 import static org.apache.jackrabbit.spi.commons.name.NameConstants.MIX_REFERENCEABLE;
-import static org.apache.jackrabbit.spi2microkernel.NodeTypes.*;
+import static org.apache.jackrabbit.spi2microkernel.NodeTypes.isSubType;
 
 public final class Values {
     static final Logger log = LoggerFactory.getLogger(Values.class);
@@ -439,7 +438,7 @@ public final class Values {
                     return FACTORY.create(uuid, PropertyType.STRING);
                 }
                 else if (JCR_CREATED.equals(propertyName)) {
-                    return FACTORY.create(GregorianCalendar.getInstance());
+                    return FACTORY.create(Calendar.getInstance());
                 }
                 else if (JCR_CREATEDBY.equals(propertyName)) {
                     return FACTORY.create(sessionInfo.getUserID(), PropertyType.STRING);
 

Modified: jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/tck/RepositoryStubImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/tck/RepositoryStubImpl.java?rev=1165744&r1=1165743&r2=1165744&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/tck/RepositoryStubImpl.java
(original)
+++ jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/tck/RepositoryStubImpl.java
Tue Sep  6 16:15:03 2011
@@ -34,7 +34,7 @@ import java.util.Properties;
 import static org.apache.jackrabbit.spi2microkernel.util.Exceptions.setCause;
 
 /**
- * <code>RepositoryStubImpl</code> implements a repository stub that
+ * {@code RepositoryStubImpl} implements a repository stub that
  * initializes a Jackrabbit 3 spi2microkernel repository.
  */
 public class RepositoryStubImpl extends RepositoryStub {

Modified: jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/tck/TestContent.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/tck/TestContent.java?rev=1165744&r1=1165743&r2=1165744&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/tck/TestContent.java
(original)
+++ jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/tck/TestContent.java
Tue Sep  6 16:15:03 2011
@@ -97,7 +97,7 @@ public class TestContent {
     private static void addPropertyTestData(Node node) throws RepositoryException {
         node.setProperty("boolean", true);
         node.setProperty("double", Math.PI);
-        node.setProperty("long", 90834953485278298l);
+        node.setProperty("long", 90834953485278298L);
         Calendar c = Calendar.getInstance();
         c.set(2005, 6, 18, 17, 30);
         node.setProperty("calendar", c);



Mime
View raw message