This is an automated email from the ASF dual-hosted git repository.

kwin pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-resource.git


The following commit(s) were added to refs/heads/master by this push:
     new ab91019  remove unused import
ab91019 is described below

commit ab91019c209cc6b8941b7dca60719b8cbe83c9f2
Author: Konrad Windszus <[email protected]>
AuthorDate: Tue Jan 18 10:06:22 2022 +0100

    remove unused import
    
    use diamond operator
---
 .../jcr/resource/internal/helper/jcr/JcrResourceProvider.java    | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git 
a/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrResourceProvider.java
 
b/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrResourceProvider.java
index 3a01929..e2d774a 100644
--- 
a/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrResourceProvider.java
+++ 
b/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrResourceProvider.java
@@ -30,7 +30,6 @@ import java.util.Map;
 import java.util.Set;
 import java.util.SortedMap;
 import java.util.TreeMap;
-import java.util.concurrent.ConcurrentHashMap;
 import java.util.concurrent.atomic.AtomicReference;
 
 import org.jetbrains.annotations.Nullable;
@@ -95,7 +94,7 @@ public class JcrResourceProvider extends 
ResourceProvider<JcrProviderState> {
 
     private static final String REPOSITORY_REFERENCE_NAME = "repository";
 
-    private static final Set<String> IGNORED_PROPERTIES = new 
HashSet<String>();
+    private static final Set<String> IGNORED_PROPERTIES = new HashSet<>();
     static {
         IGNORED_PROPERTIES.add(NodeUtil.MIXIN_TYPES);
         IGNORED_PROPERTIES.add(NodeUtil.NODE_TYPE);
@@ -122,12 +121,12 @@ public class JcrResourceProvider extends 
ResourceProvider<JcrProviderState> {
 
     private volatile JcrProviderStateFactory stateFactory;
 
-    private final AtomicReference<DynamicClassLoaderManager> 
classLoaderManagerReference = new AtomicReference<DynamicClassLoaderManager>();
+    private final AtomicReference<DynamicClassLoaderManager> 
classLoaderManagerReference = new AtomicReference<>();
 
-    private AtomicReference<URIProvider[]> uriProviderReference = new 
AtomicReference<URIProvider[]>();
+    private AtomicReference<URIProvider[]> uriProviderReference = new 
AtomicReference<>();
 
     @Activate
-    protected void activate(final ComponentContext context) throws 
RepositoryException {
+    protected void activate(final ComponentContext context) {
         SlingRepository repository = 
context.locateService(REPOSITORY_REFERENCE_NAME,
                 this.repositoryReference);
         if (repository == null) {

Reply via email to