jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r803376 - /jackrabbit/trunk/jackrabbit-spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/RepositoryServiceImpl.java
Date Wed, 12 Aug 2009 06:41:08 GMT
Author: angela
Date: Wed Aug 12 06:41:07 2009
New Revision: 803376

URL: http://svn.apache.org/viewvc?rev=803376&view=rev
Log:
remove unused code and redundant cast

Modified:
    jackrabbit/trunk/jackrabbit-spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/RepositoryServiceImpl.java

Modified: jackrabbit/trunk/jackrabbit-spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/RepositoryServiceImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/RepositoryServiceImpl.java?rev=803376&r1=803375&r2=803376&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/RepositoryServiceImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/RepositoryServiceImpl.java
Wed Aug 12 06:41:07 2009
@@ -354,7 +354,7 @@
         NamePathResolver resolver = sessionInfo.getNamePathResolver();
         if (resolver == null) {
             resolver = new NamePathResolverImpl(sessionInfo);
-            ((SessionInfoImpl) sessionInfo).setNamePathResolver(resolver);
+            sessionInfo.setNamePathResolver(resolver);
         }
         return resolver;
     }
@@ -574,7 +574,6 @@
                 throw new LoginException("Login failed: Unknown workspace '" + workspaceName+
"'.");
             }
 
-            boolean success = false;
             DavPropertySet props = responses[0].getProperties(DavServletResponse.SC_OK);
             if (props.contains(ItemResourceConstants.JCR_WORKSPACE_NAME)) {
                 String wspName = props.get(ItemResourceConstants.JCR_WORKSPACE_NAME).getValue().toString();



Mime
View raw message