Fix license header violations in yang-model-util
[yangtools.git] / yang / yang-model-util / src / main / java / org / opendaylight / yangtools / yang / model / util / repo / AbstractCachingSchemaSourceProvider.java
index 6b1d6c61232e0221c718d15a9a16a95a0b03df54..b3a0a4c489cc371d51fea52301da06f32c4df5ab 100644 (file)
@@ -3,15 +3,14 @@
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/eplv10.html
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
 package org.opendaylight.yangtools.yang.model.util.repo;
 
-import org.opendaylight.yangtools.concepts.Delegator;
-
 import com.google.common.annotations.Beta;
 import com.google.common.base.Optional;
 import com.google.common.base.Preconditions;
+import org.opendaylight.yangtools.concepts.Delegator;
 
 
 /**
@@ -21,7 +20,10 @@ import com.google.common.base.Preconditions;
  *
  * @param <I> Input Schema Source Representation
  * @param <O> Output Schema Source Representation
+ *
+ * @deprecated Replaced with {@link org.opendaylight.yangtools.yang.model.repo.util.AbstractSchemaSourceCache}
  */
+@Deprecated
 public abstract class AbstractCachingSchemaSourceProvider<I, O> implements AdvancedSchemaSourceProvider<O>,
         Delegator<AdvancedSchemaSourceProvider<I>> {
 
@@ -96,7 +98,7 @@ public abstract class AbstractCachingSchemaSourceProvider<I, O> implements Advan
      * @param input Optional of schema source, representing one returned from delegate.
      * @return Optional of schema source, representing result returned from this cache.
      */
-    abstract protected Optional<O> cacheSchemaSource(SourceIdentifier identifier, Optional<I> input);
+    protected abstract Optional<O> cacheSchemaSource(SourceIdentifier identifier, Optional<I> input);
 
     /**
      * Returns cached schema source of {@link Optional#absent()} if source is not present in cache.
@@ -109,7 +111,7 @@ public abstract class AbstractCachingSchemaSourceProvider<I, O> implements Advan
      * @param identifier Source Identifier for which schema should be retrieved.
      * @return Cached schema source.
      */
-    abstract protected Optional<O> getCachedSchemaSource(SourceIdentifier identifier);
+    protected abstract Optional<O> getCachedSchemaSource(SourceIdentifier identifier);
 
     @Override
     public AdvancedSchemaSourceProvider<I> getDelegate() {
@@ -141,15 +143,13 @@ public abstract class AbstractCachingSchemaSourceProvider<I, O> implements Advan
      *
      */
     @Beta
-    private class SchemaSourceProviderInstance implements //
-    AdvancedSchemaSourceProvider<O>,
-    Delegator<AdvancedSchemaSourceProvider<I>> {
+    private class SchemaSourceProviderInstance implements AdvancedSchemaSourceProvider<O>, Delegator<AdvancedSchemaSourceProvider<I>> {
 
         private final AdvancedSchemaSourceProvider<I> delegate;
 
         protected SchemaSourceProviderInstance(final AdvancedSchemaSourceProvider<I> delegate) {
             super();
-            this.delegate = Preconditions.checkNotNull(delegate, "Delegate should not be null");;
+            this.delegate = Preconditions.checkNotNull(delegate, "Delegate should not be null");
         }
 
         @Override