Code Review
/
yangtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
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
diff --git
a/yang/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/util/repo/AbstractCachingSchemaSourceProvider.java
b/yang/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/util/repo/AbstractCachingSchemaSourceProvider.java
index 6b1d6c61232e0221c718d15a9a16a95a0b03df54..b3a0a4c489cc371d51fea52301da06f32c4df5ab 100644
(file)
--- a/
yang/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/util/repo/AbstractCachingSchemaSourceProvider.java
+++ b/
yang/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/util/repo/AbstractCachingSchemaSourceProvider.java
@@
-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,
*
* 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;
*/
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 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
*
* @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>> {
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.
*/
* @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.
/**
* 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.
*/
* @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() {
@Override
public AdvancedSchemaSourceProvider<I> getDelegate() {
@@
-141,15
+143,13
@@
public abstract class AbstractCachingSchemaSourceProvider<I, O> implements Advan
*
*/
@Beta
*
*/
@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();
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
}
@Override