incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r608789 - in /incubator/sling/trunk/scripting/resolver/src/main/java/org/apache/sling/scripting/resolver/impl: DefaultSlingScriptResolver.java LogWriter.java
Date Fri, 04 Jan 2008 10:10:19 GMT
Author: cziegeler
Date: Fri Jan  4 02:10:09 2008
New Revision: 608789

URL: http://svn.apache.org/viewvc?rev=608789&view=rev
Log:
Remove unused imports.

Modified:
    incubator/sling/trunk/scripting/resolver/src/main/java/org/apache/sling/scripting/resolver/impl/DefaultSlingScriptResolver.java
    incubator/sling/trunk/scripting/resolver/src/main/java/org/apache/sling/scripting/resolver/impl/LogWriter.java

Modified: incubator/sling/trunk/scripting/resolver/src/main/java/org/apache/sling/scripting/resolver/impl/DefaultSlingScriptResolver.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/scripting/resolver/src/main/java/org/apache/sling/scripting/resolver/impl/DefaultSlingScriptResolver.java?rev=608789&r1=608788&r2=608789&view=diff
==============================================================================
--- incubator/sling/trunk/scripting/resolver/src/main/java/org/apache/sling/scripting/resolver/impl/DefaultSlingScriptResolver.java
(original)
+++ incubator/sling/trunk/scripting/resolver/src/main/java/org/apache/sling/scripting/resolver/impl/DefaultSlingScriptResolver.java
Fri Jan  4 02:10:09 2008
@@ -37,7 +37,6 @@
 import org.apache.sling.api.resource.ResourceResolver;
 import org.apache.sling.api.scripting.SlingScript;
 import org.apache.sling.api.scripting.SlingScriptResolver;
-import org.apache.sling.api.servlets.HttpConstants;
 import org.apache.sling.scripting.resolver.ScriptPathSupport;
 import org.osgi.framework.Bundle;
 import org.osgi.framework.BundleEvent;
@@ -52,13 +51,13 @@
  * by the extension of the current request and the desired script extension. For
  * example, a "js" script for a GET request on a Resource of type some/type with
  * request extension "html" should be stored as
- * 
+ *
  * <pre>
  *      /sling/scripts/some/type/get.html.js
  * </pre>
- * 
+ *
  * in the repository.
- * 
+ *
  * @scr.component metatype="no"
  * @scr.property name="service.vendor" value="The Apache Software Foundation"
  * @scr.property name="service.description" value="Default SlingScriptResolver"
@@ -94,7 +93,7 @@
     /**
      * Try to find a script Node that can process the given request, based on
      * the rules defined above.
-     * 
+     *
      * @return null if not found.
      */
     public SlingScript resolveScript(final SlingHttpServletRequest request)
@@ -165,21 +164,21 @@
 
     private ScriptEngineManager getScriptEngineManager() {
         if (scriptEngineManager == null) {
-            
+
             // create (empty) script engine manager
             ClassLoader loader = getClass().getClassLoader();
             ScriptEngineManager tmp = new ScriptEngineManager(loader);
-            
+
             // register script engines from bundles
             for (Bundle bundle : engineSpiBundles) {
                 registerFactories(tmp, bundle);
             }
-            
+
             // register script engines from registered services
             for (ScriptEngineFactory factory : engineSpiServices) {
                 registerFactory(tmp, factory);
             }
-            
+
             scriptEngineManager = tmp;
         }
         return scriptEngineManager;

Modified: incubator/sling/trunk/scripting/resolver/src/main/java/org/apache/sling/scripting/resolver/impl/LogWriter.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/scripting/resolver/src/main/java/org/apache/sling/scripting/resolver/impl/LogWriter.java?rev=608789&r1=608788&r2=608789&view=diff
==============================================================================
--- incubator/sling/trunk/scripting/resolver/src/main/java/org/apache/sling/scripting/resolver/impl/LogWriter.java
(original)
+++ incubator/sling/trunk/scripting/resolver/src/main/java/org/apache/sling/scripting/resolver/impl/LogWriter.java
Fri Jan  4 02:10:09 2008
@@ -18,7 +18,6 @@
  */
 package org.apache.sling.scripting.resolver.impl;
 
-import java.io.IOException;
 import java.io.Writer;
 
 import org.slf4j.Logger;



Mime
View raw message