cosmetic: remove some unused imports/eliminate warnings
authorStefan Seifert <sseifert@apache.org>
Sat, 17 Dec 2016 08:31:22 +0000 (08:31 +0000)
committerStefan Seifert <sseifert@apache.org>
Sat, 17 Dec 2016 08:31:22 +0000 (08:31 +0000)
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1774719 13f79535-47bb-0310-9956-ffa450edef68

src/main/java/org/apache/sling/models/impl/ExportServlet.java
src/main/java/org/apache/sling/models/impl/injectors/BindingsInjector.java
src/main/java/org/apache/sling/models/impl/injectors/ResourcePathInjector.java
src/main/java/org/apache/sling/models/impl/injectors/ValuePreparer.java

index 799f820..ac528bd 100644 (file)
@@ -156,6 +156,7 @@ class ExportServlet extends SlingSafeMethodsServlet {
 
     }
 
+    @SuppressWarnings("unchecked")
     private Map<String, String> createOptionMap(SlingHttpServletRequest request) {
         Map<String, String[]> parameterMap = request.getParameterMap();
         String[] selectors = request.getRequestPathInfo().getSelectors();
index 2960d76..0f98d35 100644 (file)
@@ -31,20 +31,16 @@ import org.apache.sling.models.annotations.injectorspecific.InjectionStrategy;
 import org.apache.sling.models.annotations.injectorspecific.ScriptVariable;
 import org.apache.sling.models.spi.DisposalCallbackRegistry;
 import org.apache.sling.models.spi.Injector;
-import org.apache.sling.models.spi.injectorspecific.StaticInjectAnnotationProcessorFactory;
 import org.apache.sling.models.spi.injectorspecific.AbstractInjectAnnotationProcessor2;
 import org.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessor2;
+import org.apache.sling.models.spi.injectorspecific.StaticInjectAnnotationProcessorFactory;
 import org.osgi.framework.Constants;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 @Component
 @Service
 @Property(name = Constants.SERVICE_RANKING, intValue = 1000)
 public class BindingsInjector implements Injector, StaticInjectAnnotationProcessorFactory, ValuePreparer {
 
-    private static final Logger log = LoggerFactory.getLogger(BindingsInjector.class);
-
     @Override
     public @Nonnull String getName() {
         return "script-bindings";
index 2473387..b8f4eb3 100644 (file)
@@ -21,7 +21,6 @@ package org.apache.sling.models.impl.injectors;
 import java.lang.reflect.AnnotatedElement;
 import java.lang.reflect.Type;
 import java.util.ArrayList;
-import java.util.Arrays;
 import java.util.List;
 
 import javax.annotation.Nonnull;