Merge "Rename applySubtreeChange()"
authorTony Tkacik <ttkacik@cisco.com>
Wed, 25 Mar 2015 09:41:07 +0000 (09:41 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Wed, 25 Mar 2015 09:41:08 +0000 (09:41 +0000)
54 files changed:
code-generator/binding-model-api/src/main/java/org/opendaylight/yangtools/sal/binding/model/api/type/builder/MethodSignatureBuilder.java
code-generator/binding-model-api/src/main/java/org/opendaylight/yangtools/sal/binding/model/api/type/builder/package-info.java
code-generator/binding-model-api/src/main/java/org/opendaylight/yangtools/sal/binding/model/api/type/provider/package-info.java
common/concepts/src/main/java/org/opendaylight/yangtools/concepts/ClassBasedPropertyBuilder.java
common/concepts/src/main/java/org/opendaylight/yangtools/concepts/CompositeObjectRegistration.java
common/concepts/src/main/java/org/opendaylight/yangtools/concepts/Deserializer.java
common/concepts/src/main/java/org/opendaylight/yangtools/concepts/InvertibleTransformator.java
common/concepts/src/main/java/org/opendaylight/yangtools/concepts/Mutable.java
common/concepts/src/main/java/org/opendaylight/yangtools/concepts/ProductAwareBuilder.java
common/mockito-configuration/src/main/java/org/mockito/configuration/ArgumentsExtractorVerifier.java
common/mockito-configuration/src/main/java/org/mockito/configuration/MockitoConfiguration.java
common/mockito-configuration/src/main/java/org/mockito/configuration/ThrowsUnstubbedMethodException.java
common/mockito-configuration/src/main/java/org/mockito/configuration/UnstubbedMethodException.java
common/object-cache-api/src/main/java/org/opendaylight/yangtools/objcache/ObjectCache.java
common/object-cache-api/src/main/java/org/opendaylight/yangtools/objcache/impl/StaticObjectCacheBinder.java
common/object-cache-api/src/main/java/org/opendaylight/yangtools/objcache/spi/AbstractObjectCache.java
common/object-cache-api/src/main/java/org/opendaylight/yangtools/objcache/spi/AbstractObjectCacheBinder.java
common/object-cache-api/src/main/java/org/opendaylight/yangtools/objcache/spi/IObjectCacheFactory.java
common/object-cache-api/src/main/java/org/opendaylight/yangtools/objcache/spi/NoopObjectCache.java
common/object-cache-api/src/main/java/org/opendaylight/yangtools/objcache/spi/ObjectCacheFactoryBinder.java
common/object-cache-guava/src/main/java/org/opendaylight/yangtools/objcache/guava/GuavaObjectCacheFactory.java
common/object-cache-guava/src/main/java/org/opendaylight/yangtools/objcache/impl/StaticObjectCacheBinder.java
common/util/src/main/java/org/opendaylight/yangtools/util/UnmodifiableCollection.java
common/util/src/main/java/org/opendaylight/yangtools/util/concurrent/AsyncNotifyingListeningExecutorService.java
common/util/src/main/java/org/opendaylight/yangtools/util/concurrent/CachedThreadPoolExecutor.java
common/util/src/main/java/org/opendaylight/yangtools/util/concurrent/FastThreadPoolExecutor.java
common/util/src/main/java/org/opendaylight/yangtools/util/concurrent/ListenerNotificationQueueStats.java
yang/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/BindingMapping.java
yang/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/InstanceIdentifierBuilderImpl.java
yang/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/util/DataObjectReadingUtil.java
yang/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/util/NotificationListenerInvoker.java
yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/OperationFailedException.java
yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/RpcResultBuilder.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/AugmentationSchema.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/DerivableSchemaNode.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/DocumentedNode.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/NamespaceRevisionAware.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/SchemaContextHolder.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/stmt/ModuleStatement.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/api/MissingSchemaSourceException.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/api/SchemaContextFactory.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/api/SchemaRepository.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/api/SchemaResolutionException.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/api/SchemaSourceException.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/api/SchemaSourceFilter.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/api/SchemaSourceRepresentation.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/api/SourceIdentifier.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/api/YangTextSchemaSource.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/api/YinSchemaSource.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/spi/SchemaListenerRegistration.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/spi/SchemaSourceListener.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/spi/SchemaSourceProvider.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/spi/SchemaSourceRegistration.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/spi/SchemaSourceRegistry.java

index ecdf997e316d807dcc2e981edb9d3a74e7e92d52..71374525b752f1e7b0d5a8a7236700c7ea26978f 100644 (file)
@@ -1,10 +1,9 @@
-/**
-
- *
- * March 2013
+/*
+ * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
  *
- * Copyright (c) 2013 by Cisco Systems, Inc.
- * All rights reserved.
+ * 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/epl-v10.html
  */
 package org.opendaylight.yangtools.sal.binding.model.api.type.builder;
 
@@ -22,8 +21,8 @@ import org.opendaylight.yangtools.sal.binding.model.api.Type;
  * The methods as {@link #addAnnotation(String, String)} and
  * {@link #setComment(String)} can be used as optional because not all methods
  * MUST contain annotation or comment definitions.
- * 
- * 
+ *
+ *
  * @see MethodSignature
  */
 public interface MethodSignatureBuilder extends TypeMemberBuilder<MethodSignatureBuilder> {
@@ -33,7 +32,7 @@ public interface MethodSignatureBuilder extends TypeMemberBuilder<MethodSignatur
      * the flag <code>isAbstract == true</code> The instantiated Method
      * Signature MUST have return value for {@link MethodSignature#isAbstract()}
      * also equals to <code>true</code>.
-     * 
+     *
      * @param isAbstract
      *            is abstract flag
      */
@@ -42,11 +41,11 @@ public interface MethodSignatureBuilder extends TypeMemberBuilder<MethodSignatur
     /**
      * Adds Parameter into the List of method parameters. Neither the Name or
      * Type of parameter can be <code>null</code>.
-     * 
+     *
      * <br>
      * In case that any of parameters are defined as <code>null</code> the
      * method SHOULD throw an {@link IllegalArgumentException}
-     * 
+     *
      * @param type
      *            Parameter Type
      * @param name
@@ -61,7 +60,7 @@ public interface MethodSignatureBuilder extends TypeMemberBuilder<MethodSignatur
      * <code>class</code> or <code>interface</code> definition. In case that
      * defining Type will be passed as <code>null</code> reference the method
      * SHOULD thrown {@link IllegalArgumentException}.
-     * 
+     *
      * @param definingType
      *            Defining Type of Method Signature
      * @return <code>new</code> <i>immutable</i> instance of Method Signature.
index e4ac5a8505394da281d914c216445f103ed06e47..f46cc4c35535a4640572dd20d082b965b17ea370 100644 (file)
@@ -1,9 +1,8 @@
-/**
-
+/*
+ * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
  *
- * March 2013
- *
- * Copyright (c) 2013 by Cisco Systems, Inc.
- * All rights reserved.
+ * 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/epl-v10.html
  */
 package org.opendaylight.yangtools.sal.binding.model.api.type.builder;
\ No newline at end of file
index 4763f3931e95efb0c7f35902f3d9c5aa553be28a..b88b1abf9f136ceaea411c569899685661a729f5 100644 (file)
@@ -1,9 +1,8 @@
-/**
-
+/*
+ * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
  *
- * March 2013
- *
- * Copyright (c) 2013 by Cisco Systems, Inc.
- * All rights reserved.
+ * 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/epl-v10.html
  */
 package org.opendaylight.yangtools.sal.binding.model.api.type.provider;
\ No newline at end of file
index 85016b8e10835f4b172a3d8d75445a0642e0a2fd..2a2e70315edb0a060a814187302b1bf3a83b9a90 100644 (file)
@@ -7,21 +7,20 @@
  */
 package org.opendaylight.yangtools.concepts;
 
-public interface ClassBasedPropertyBuilder<P,T extends ClassBasedPropertyBuilder<P,T>> extends Builder<P> {
-
+public interface ClassBasedPropertyBuilder<P, T extends ClassBasedPropertyBuilder<P, T>> extends Builder<P> {
     /**
      * Sets a value of property uniquely identified by its
      * class.
-     * 
+     *
      * @param type Type of property to set
-     * @param value Value of property 
+     * @param value Value of property
      * @return Builder instance
      */
     <V> T set(Class<V> type, V value);
-    
+
     /**
      * Gets a value of property based on its type.
-     * 
+     *
      * @param type Type of property to get
      * @return Builder instance
      */
index 34bafc2dc1a285517c220bb22795e1a0e736e513..ab3c91e01c43590b014b4ef2a21a0c5ab61669c0 100644 (file)
@@ -39,8 +39,7 @@ public final class CompositeObjectRegistration<T> extends AbstractObjectRegistra
         return new CompositeObjectRegistrationBuilder<>(instance);
     }
 
-    public static final class CompositeObjectRegistrationBuilder<T> implements //
-    Builder<CompositeObjectRegistration<T>> {
+    public static final class CompositeObjectRegistrationBuilder<T> implements Builder<CompositeObjectRegistration<T>> {
 
         private final T instance;
         private final Set<Registration> registrations;
index 77034b8b2578eb437667c1a07d584be74f5e10d3..11dffc455bc59464c43da36fe35d3691db4263c9 100644 (file)
@@ -7,7 +7,18 @@
  */
 package org.opendaylight.yangtools.concepts;
 
-public interface Deserializer<P,I> {
-
+/**
+ * The concept of a serializer, which produces an object from some input.
+ *
+ * @param <P> Product type
+ * @param <I> Input type
+ */
+public interface Deserializer<P, I> {
+    /**
+     * Produce an object base on input.
+     *
+     * @param input Input object
+     * @return Product derived from input
+     */
     P deserialize(I input);
 }
index 31ca3b5ca741b9e70182c4639686b2fff450b616..51ebc22cc71080b4a45af34e80f6cfe0d3ba32e7 100644 (file)
@@ -7,7 +7,7 @@
  */
 package org.opendaylight.yangtools.concepts;
 
-public interface InvertibleTransformator<P, I> extends Transformator<P, I>{
+public interface InvertibleTransformator<P, I> extends Transformator<P, I> {
 
     I fromProduct(P product);
 
index af08aa1d88ab7b3fd6dccbaf3f3cb1e54590db96..82b2bb11571f8da41e8ef9f894b766c8f46e1009 100644 (file)
@@ -9,13 +9,13 @@ package org.opendaylight.yangtools.concepts;
 
 /**
  * Mutable object - object may change it's state during lifecycle.
- * 
+ *
  * This interface is mutually exclusive with {@link Immutable}  and other
  * {@link MutationBehaviour}s.
- * 
+ *
  * @author Tony Tkacik
  *
  */
-public interface Mutable extends MutationBehaviour<Mutable>{
-    
+public interface Mutable extends MutationBehaviour<Mutable> {
+
 }
index 771ceb2cac976dc35addf4ed4f57620d1de1e6dd..0ac9fdabe12769096f462cc99e1d5e46816f50d5 100644 (file)
@@ -15,22 +15,22 @@ package org.opendaylight.yangtools.concepts;
  * @param <P> Product type
  */
 public interface ProductAwareBuilder<P> extends Builder<P> {
-       /**
-        * Return the hash code of the product. This has to be equivalent
-        * of calling {@link #build()}.{@link Object#hashCode()}.
-        *
-        * @return the hash code of the product.
-        */
-       int productHashCode();
+    /**
+     * Return the hash code of the product. This has to be equivalent
+     * of calling {@link #build()}.{@link Object#hashCode()}.
+     *
+     * @return the hash code of the product.
+     */
+    int productHashCode();
 
-       /**
-        * Check whether an instance of the product that would be created
-        * by the builder is equal to an existing instance. This has to
-        * be equivalent of calling {@link #build()}.{@link Object#equals(Object)}.
-        *
-        * @param product Product instance
-        * @return Return true if the product is equal to the would-be
-        *         product of the builder.
-        */
-       boolean productEquals(Object product);
+    /**
+     * Check whether an instance of the product that would be created
+     * by the builder is equal to an existing instance. This has to
+     * be equivalent of calling {@link #build()}.{@link Object#equals(Object)}.
+     *
+     * @param product Product instance
+     * @return Return true if the product is equal to the would-be
+     *         product of the builder.
+     */
+    boolean productEquals(Object product);
 }
index 53db342c071d28a62b6e4396a44cfb038c33b7db..d8983f40fbac5062cf694e36f2f12c92b122d1e5 100644 (file)
@@ -7,34 +7,32 @@
  */
 package org.mockito.configuration;
 
+import java.util.List;
 import org.mockito.exceptions.base.MockitoException;
 import org.mockito.internal.invocation.InvocationsFinder;
 import org.mockito.internal.verification.api.VerificationData;
 import org.mockito.invocation.Invocation;
 import org.mockito.verification.VerificationMode;
 
-import java.util.List;
-
 /**
  * Verifier that extracts arguments from actual invocation. Useful when deeper validation of arguments is needed.
- *
  */
 public class ArgumentsExtractorVerifier implements VerificationMode {
-               private Object[] arguments;
+    private Object[] arguments;
 
-               @Override
-               public void verify(VerificationData data) {
-                       InvocationsFinder finder = new InvocationsFinder();
-                       List<Invocation> actualInvocations = finder.findInvocations(data.getAllInvocations(), data.getWanted());
-                       if (actualInvocations.size() != 1) {
-                               throw new MockitoException("This verifier can only be used with 1 invocation, got " + actualInvocations.size());
-                       }
-                       Invocation invocation = actualInvocations.get(0);
-                       arguments = invocation.getArguments();
-                       invocation.markVerified();
+    @Override
+    public void verify(final VerificationData data) {
+        InvocationsFinder finder = new InvocationsFinder();
+        List<Invocation> actualInvocations = finder.findInvocations(data.getAllInvocations(), data.getWanted());
+        if (actualInvocations.size() != 1) {
+            throw new MockitoException("This verifier can only be used with 1 invocation, got " + actualInvocations.size());
+        }
+        Invocation invocation = actualInvocations.get(0);
+        arguments = invocation.getArguments();
+        invocation.markVerified();
 
-               }
-               public Object[] getArguments(){
-                       return arguments;
-               }
-       }
+    }
+    public Object[] getArguments() {
+        return arguments;
+    }
+}
index 6c783e005d6654aff84ef38314f40186270d3221..b6909b5c443520ab24c009adeed75b191c8e22b5 100644 (file)
@@ -13,9 +13,8 @@ import org.mockito.stubbing.Answer;
  * Configuration customization for Mockito. Change default answer to {@link ThrowsUnstubbedMethodException}.
  */
 public class MockitoConfiguration extends DefaultMockitoConfiguration {
-
-       @Override
-       public Answer<Object> getDefaultAnswer() {
-               return new ThrowsUnstubbedMethodException();
-       }
+    @Override
+    public Answer<Object> getDefaultAnswer() {
+        return new ThrowsUnstubbedMethodException();
+    }
 }
index 83262bc5185ee9bdf768f7359dde3ce7bf4ac6f5..95b5c2054d41b32242b69676e50447178e414110 100644 (file)
@@ -8,7 +8,6 @@
 package org.mockito.configuration;
 
 import java.io.Serializable;
-
 import org.mockito.invocation.InvocationOnMock;
 import org.mockito.stubbing.Answer;
 
@@ -16,14 +15,10 @@ import org.mockito.stubbing.Answer;
  * Answer that throws {@link UnstubbedMethodException}.
  */
 public class ThrowsUnstubbedMethodException implements Answer<Object>, Serializable {
-       private static final long serialVersionUID = 1L;
-
-    public ThrowsUnstubbedMethodException() {
-    }
+    private static final long serialVersionUID = 1L;
 
     @Override
-       public Object answer(InvocationOnMock invocation) throws Throwable {
-        Throwable t = new UnstubbedMethodException(invocation.toString() + " was not stubbed");
-        throw t;
+    public Object answer(final InvocationOnMock invocation) throws UnstubbedMethodException {
+        throw new UnstubbedMethodException(invocation.toString() + " was not stubbed");
     }
 }
index ac748661c03b8eaa404719f6531bf2d8fae9391f..5432e7c83260402451c7293f27730495c8b7ff73 100644 (file)
@@ -7,16 +7,13 @@
  */
 package org.mockito.configuration;
 
-
 /**
  * Exception to be thrown on unstubbed method call.
  */
 public class UnstubbedMethodException extends RuntimeException {
+    private static final long serialVersionUID = 1L;
 
-       private static final long serialVersionUID = 1L;
-
-       public UnstubbedMethodException(String message) {
-               super(message);
-       }
-
+    public UnstubbedMethodException(final String message) {
+        super(message);
+    }
 }
index 9f3276837d035e989c25b446dbb9f1f53b2bd18b..4e275924248252ac351f971dcc026f1b4d93337e 100644 (file)
@@ -9,7 +9,6 @@ package org.opendaylight.yangtools.objcache;
 
 import javax.annotation.Nonnull;
 import javax.annotation.Nullable;
-
 import org.opendaylight.yangtools.concepts.Immutable;
 import org.opendaylight.yangtools.concepts.ProductAwareBuilder;
 
@@ -19,32 +18,35 @@ import org.opendaylight.yangtools.concepts.ProductAwareBuilder;
  * a cache in the instantiation path, one can expend some memory on
  * indexes and spend some CPU cycles on walking the index to potentially
  * end up with a reused object.
- * 
+ *
  * Note that the cached objects should really be semantically {@link Immutable}.
  * This interface does not enforce that interface contract simply because
  * there are third-party objects which fulfill this contract.
  */
 public interface ObjectCache {
-       /**
-        * Get a reference for an object which is equal to specified object.
-        * The cache is free return either a cached instance, or retain the
-        * object and return it back.
-        *
-        * @param object Requested object, may be null
-        * @return Reference to an object which is equal to the one passed in.
-        *         If @object was @null, this method returns @null.
-        */
-       <T> T getReference(@Nullable T object);
+    /**
+     * Get a reference for an object which is equal to specified object.
+     * The cache is free return either a cached instance, or retain the
+     * object and return it back.
+     *
+     * @param <T> object type
+     * @param object Requested object, may be null
+     * @return Reference to an object which is equal to the one passed in.
+     *         If @object was @null, this method returns @null.
+     */
+    <T> T getReference(@Nullable T object);
 
-       /**
-        * Get a reference to an object equal to the product of a builder.
-        * The builder is expected to remain constant while this method
-        * executes. Unlike {@link #getReference(Object)}, this method has
-        * the potential of completely eliding the product instantiation.
-        * 
-        * @param builder Builder instance, may not be null
-        * @return Result of builder's toInstance() product, or an equal
-        *         object.
-        */
-       <B extends ProductAwareBuilder<P>, P> P getProduct(@Nonnull B builder);
+    /**
+     * Get a reference to an object equal to the product of a builder.
+     * The builder is expected to remain constant while this method
+     * executes. Unlike {@link #getReference(Object)}, this method has
+     * the potential of completely eliding the product instantiation.
+     *
+     * @param <P> produced object type
+     * @param <B> builder type
+     * @param builder Builder instance, may not be null
+     * @return Result of builder's toInstance() product, or an equal
+     *         object.
+     */
+    <B extends ProductAwareBuilder<P>, P> P getProduct(@Nonnull B builder);
 }
index 59cd30f05a2fedeb8ff841e1985e1347034f0b2c..352d7df6250339976a87dc6b8a3e0d861d499d5d 100644 (file)
@@ -14,11 +14,11 @@ import org.opendaylight.yangtools.objcache.spi.AbstractObjectCacheBinder;
  * it at compile-time, but it is not packaged and thus not present at run-time.
  */
 public final class StaticObjectCacheBinder extends AbstractObjectCacheBinder {
-       private StaticObjectCacheBinder() {
-               super(null);
-       }
+    private StaticObjectCacheBinder() {
+        super(null);
+    }
 
-       public static StaticObjectCacheBinder getInstance() {
-               throw new IllegalStateException("This class should have been replaced");
-       }
+    public static StaticObjectCacheBinder getInstance() {
+        throw new IllegalStateException("This class should have been replaced");
+    }
 }
index 3e09e967ca8fdd86765cb4f9343bc3e1fae1ad8d..51ed7ae4acfc9c224aeb42def0e91855e20867e0 100644 (file)
@@ -84,8 +84,8 @@ public abstract class AbstractObjectCache implements ObjectCache {
     protected abstract static class SoftKey<T> extends FinalizableSoftReference<T> {
         private final int hashCode;
 
-        public SoftKey(final T referent, final FinalizableReferenceQueue q) {
-            super(Preconditions.checkNotNull(referent), q);
+        public SoftKey(final T referent, final FinalizableReferenceQueue queue) {
+            super(Preconditions.checkNotNull(referent), queue);
             hashCode = referent.hashCode();
         }
 
index be860eadcf8d160431cf681313bc0ac8794bf785..776f7273a8655a9ff6ecc9f60aea6d1bf49d34a2 100644 (file)
@@ -7,19 +7,18 @@
  */
 package org.opendaylight.yangtools.objcache.spi;
 
-import javax.annotation.Nonnull;
-
 import com.google.common.base.Preconditions;
+import javax.annotation.Nonnull;
 
 public abstract class AbstractObjectCacheBinder implements ObjectCacheFactoryBinder {
-       private final IObjectCacheFactory factory;
+    private final IObjectCacheFactory factory;
 
-       protected AbstractObjectCacheBinder(@Nonnull final IObjectCacheFactory factory) {
-               this.factory = Preconditions.checkNotNull(factory);
-       }
+    protected AbstractObjectCacheBinder(@Nonnull final IObjectCacheFactory factory) {
+        this.factory = Preconditions.checkNotNull(factory);
+    }
 
-       @Override
-       public final IObjectCacheFactory getProductCacheFactory() {
-               return factory;
-       }
+    @Override
+    public final IObjectCacheFactory getProductCacheFactory() {
+        return factory;
+    }
 }
index 7ee6bc411f2685cc9f2f5468f130cfc3820d9ee4..8a5047aa4fb5f981d9183377e2c15aff40807a8b 100644 (file)
@@ -8,9 +8,8 @@
 package org.opendaylight.yangtools.objcache.spi;
 
 import javax.annotation.Nonnull;
-
 import org.opendaylight.yangtools.objcache.ObjectCache;
 
 public interface IObjectCacheFactory {
-       ObjectCache getObjectCache(@Nonnull Class<?> objClass);
+    ObjectCache getObjectCache(@Nonnull Class<?> objClass);
 }
index a44543bfb2014569676117ec53ed636a9cc528da..e55f590ac6397c55d92c3e86c1e7b17e6fc0eec3 100644 (file)
@@ -15,29 +15,29 @@ import org.opendaylight.yangtools.objcache.ObjectCache;
  * does not do any caching, so it only returns the request object.
  */
 public final class NoopObjectCache implements ObjectCache {
-       private static final NoopObjectCache INSTANCE = new NoopObjectCache();
+    private static final NoopObjectCache INSTANCE = new NoopObjectCache();
 
-       private NoopObjectCache() {
+    private NoopObjectCache() {
 
-       }
+    }
 
-       /**
-        * Get the cache instance. Since the cache does not have any state,
-        * this method always returns a singleton instance.
-        *
-        * @return Cache instance.
-        */
-       public static NoopObjectCache getInstance() {
-               return INSTANCE;
-       }
+    /**
+     * Get the cache instance. Since the cache does not have any state,
+     * this method always returns a singleton instance.
+     *
+     * @return Cache instance.
+     */
+    public static NoopObjectCache getInstance() {
+        return INSTANCE;
+    }
 
-       @Override
-       public <T> T getReference(final T object) {
-               return object;
-       }
+    @Override
+    public <T> T getReference(final T object) {
+        return object;
+    }
 
-       @Override
-       public <B extends ProductAwareBuilder<P>, P> P getProduct(final B builder) {
-               return builder.build();
-       }
+    @Override
+    public <B extends ProductAwareBuilder<P>, P> P getProduct(final B builder) {
+        return builder.build();
+    }
 }
index 012428c04490061d957489bbda92e1db1f43f130..ab6f49bac261c7dcdc6580189aa721762b0eac42 100644 (file)
@@ -11,10 +11,10 @@ package org.opendaylight.yangtools.objcache.spi;
  * Interface binding an implementation into ObjectCacheFactory.
  */
 public interface ObjectCacheFactoryBinder {
-       /**
-        * Get the implementation-specific cache factory.
-        * 
-        * @return Implementation-specific factory.
-        */
-       IObjectCacheFactory getProductCacheFactory();
+    /**
+     * Get the implementation-specific cache factory.
+     *
+     * @return Implementation-specific factory.
+     */
+    IObjectCacheFactory getProductCacheFactory();
 }
index 895037625ddbf04e778f5cf4829da7a1b63de073..1ee0750b65a348d5ff70917571923e4b0cf0b12f 100644 (file)
@@ -7,11 +7,10 @@
  */
 package org.opendaylight.yangtools.objcache.guava;
 
+import com.google.common.base.FinalizableReferenceQueue;
 import org.opendaylight.yangtools.objcache.ObjectCache;
 import org.opendaylight.yangtools.objcache.spi.IObjectCacheFactory;
 
-import com.google.common.base.FinalizableReferenceQueue;
-
 public final class GuavaObjectCacheFactory implements AutoCloseable, IObjectCacheFactory {
     private static final GuavaObjectCacheFactory INSTANCE = new GuavaObjectCacheFactory();
     private final FinalizableReferenceQueue  queue = new FinalizableReferenceQueue();
@@ -29,9 +28,14 @@ public final class GuavaObjectCacheFactory implements AutoCloseable, IObjectCach
 
     @Override
     public void close() {
-       queue.close();
+        queue.close();
     }
 
+    /**
+     * Return a factory instance.
+     *
+     * @return A factory instance.
+     */
     public static GuavaObjectCacheFactory getInstance() {
         return INSTANCE;
     }
index 5867d556c9f2a763a5262cbefbe47e41ef37166a..ff46d729921395066d800bf37565eab1073cee6c 100644 (file)
@@ -11,13 +11,13 @@ import org.opendaylight.yangtools.objcache.guava.GuavaObjectCacheFactory;
 import org.opendaylight.yangtools.objcache.spi.AbstractObjectCacheBinder;
 
 public final class StaticObjectCacheBinder extends AbstractObjectCacheBinder {
-       private static final StaticObjectCacheBinder INSTANCE = new StaticObjectCacheBinder();
+    private static final StaticObjectCacheBinder INSTANCE = new StaticObjectCacheBinder();
 
-       private StaticObjectCacheBinder() {
-               super(GuavaObjectCacheFactory.getInstance());
-       }
+    private StaticObjectCacheBinder() {
+        super(GuavaObjectCacheFactory.getInstance());
+    }
 
-       public static StaticObjectCacheBinder getInstance() {
-               return INSTANCE;
-       }
+    public static StaticObjectCacheBinder getInstance() {
+        return INSTANCE;
+    }
 }
index 5b9d98a641dac4a26bd6306977679efab303a882..dc090a4c5bb90dd9f4f18e9cfa2980c340072470 100644 (file)
@@ -58,10 +58,11 @@ public final class UnmodifiableCollection<E> implements Collection<E>, Serializa
      * @param collection Target collection
      * @return An unmodifiable view of the collection
      */
-    public static <T> Collection<T> create(final @Nonnull Collection<T> collection) {
-        if (collection instanceof UnmodifiableCollection || collection instanceof ImmutableCollection ||
-                Collections.EMPTY_LIST == collection || Collections.EMPTY_SET == collection ||
-                UNMODIFIABLE_COLLECTION_CLASS.isInstance(collection) || SINGLETON_CLASSES.contains(collection.getClass())) {
+    public static <T> Collection<T> create(@Nonnull final Collection<T> collection) {
+        if (collection instanceof UnmodifiableCollection || collection instanceof ImmutableCollection
+                || Collections.EMPTY_LIST == collection || Collections.EMPTY_SET == collection
+                || UNMODIFIABLE_COLLECTION_CLASS.isInstance(collection)
+                || SINGLETON_CLASSES.contains(collection.getClass())) {
             return collection;
         }
 
index c5d00771ea27bde932207f741e3c76f910629ee8..d57ded358f4ab7b1013c84ab4edd03119ceb327c 100644 (file)
@@ -8,20 +8,18 @@
 
 package org.opendaylight.yangtools.util.concurrent;
 
+import com.google.common.base.MoreObjects;
+import com.google.common.base.MoreObjects.ToStringHelper;
+import com.google.common.base.Preconditions;
+import com.google.common.util.concurrent.AbstractListeningExecutorService;
+import com.google.common.util.concurrent.ListenableFuture;
 import java.util.List;
 import java.util.concurrent.Callable;
 import java.util.concurrent.Executor;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.TimeUnit;
-
 import javax.annotation.Nullable;
 
-import com.google.common.base.MoreObjects;
-import com.google.common.base.MoreObjects.ToStringHelper;
-import com.google.common.base.Preconditions;
-import com.google.common.util.concurrent.AbstractListeningExecutorService;
-import com.google.common.util.concurrent.ListenableFuture;
-
 /**
  * An {@link com.google.common.util.concurrent.ListeningExecutorService} implementation that also allows for an {@link Executor} to be
  * specified on construction that is used to execute {@link ListenableFuture} callback Runnables,
@@ -56,8 +54,8 @@ public class AsyncNotifyingListeningExecutorService extends AbstractListeningExe
      * @param listenableFutureExecutor the executor used to run listener callbacks asynchronously.
      *     If null, no executor is used.
      */
-    public AsyncNotifyingListeningExecutorService( ExecutorService delegate,
-            @Nullable Executor listenableFutureExecutor ) {
+    public AsyncNotifyingListeningExecutorService( final ExecutorService delegate,
+            @Nullable final Executor listenableFutureExecutor ) {
         this.delegate = Preconditions.checkNotNull( delegate );
         this.listenableFutureExecutor = listenableFutureExecutor;
     }
@@ -67,7 +65,7 @@ public class AsyncNotifyingListeningExecutorService extends AbstractListeningExe
      *
      * @param task the Callable to execute
      */
-    private <T> AsyncNotifyingListenableFutureTask<T> newFutureTask( Callable<T> task ) {
+    private <T> AsyncNotifyingListenableFutureTask<T> newFutureTask( final Callable<T> task ) {
         return AsyncNotifyingListenableFutureTask.create( task, listenableFutureExecutor );
     }
 
@@ -76,7 +74,7 @@ public class AsyncNotifyingListeningExecutorService extends AbstractListeningExe
      *
      * @param task the Runnable to execute
      */
-    private <T> AsyncNotifyingListenableFutureTask<T> newFutureTask( Runnable task, T result ) {
+    private <T> AsyncNotifyingListenableFutureTask<T> newFutureTask( final Runnable task, final T result ) {
         return AsyncNotifyingListenableFutureTask.create( task, result, listenableFutureExecutor );
     }
 
@@ -88,7 +86,7 @@ public class AsyncNotifyingListeningExecutorService extends AbstractListeningExe
     }
 
     @Override
-    public boolean awaitTermination( long timeout, TimeUnit unit ) throws InterruptedException {
+    public boolean awaitTermination( final long timeout, final TimeUnit unit ) throws InterruptedException {
         return delegate.awaitTermination( timeout, unit );
     }
 
@@ -113,37 +111,37 @@ public class AsyncNotifyingListeningExecutorService extends AbstractListeningExe
     }
 
     @Override
-    public void execute( Runnable command ) {
+    public void execute( final Runnable command ) {
         delegate.execute( command );
     }
 
     @Override
-    public <T> ListenableFuture<T> submit( Callable<T> task ) {
+    public <T> ListenableFuture<T> submit( final Callable<T> task ) {
         AsyncNotifyingListenableFutureTask<T> futureTask = newFutureTask( task );
         delegate.execute( futureTask );
         return futureTask;
     }
 
     @Override
-    public ListenableFuture<?> submit( Runnable task ) {
+    public ListenableFuture<?> submit( final Runnable task ) {
         AsyncNotifyingListenableFutureTask<Void> futureTask = newFutureTask( task, null );
         delegate.execute( futureTask );
         return futureTask;
     }
 
     @Override
-    public <T> ListenableFuture<T> submit( Runnable task, T result ) {
+    public <T> ListenableFuture<T> submit( final Runnable task, final T result ) {
         AsyncNotifyingListenableFutureTask<T> futureTask = newFutureTask( task, result );
         delegate.execute( futureTask );
         return futureTask;
     }
 
-    protected ToStringHelper addToStringAttributes( ToStringHelper toStringHelper ) {
+    protected ToStringHelper addToStringAttributes( final ToStringHelper toStringHelper ) {
         return toStringHelper;
     }
 
     @Override
-    public final String toString(){
+    public final String toString() {
         return addToStringAttributes( MoreObjects.toStringHelper( this )
                 .add( "delegate", delegate ) ).toString();
     }
index 66d332b5d7c6468b0aff6a1088dcd380fdef30a0..e7672ac4586351f81e8e977c649c2ed3d2a47df8 100644 (file)
@@ -7,6 +7,10 @@
  */
 package org.opendaylight.yangtools.util.concurrent;
 
+import com.google.common.base.MoreObjects;
+import com.google.common.base.MoreObjects.ToStringHelper;
+import com.google.common.base.Preconditions;
+import com.google.common.util.concurrent.ThreadFactoryBuilder;
 import java.util.concurrent.BlockingQueue;
 import java.util.concurrent.LinkedBlockingQueue;
 import java.util.concurrent.RejectedExecutionException;
@@ -14,10 +18,6 @@ import java.util.concurrent.RejectedExecutionHandler;
 import java.util.concurrent.SynchronousQueue;
 import java.util.concurrent.ThreadPoolExecutor;
 import java.util.concurrent.TimeUnit;
-import com.google.common.base.MoreObjects;
-import com.google.common.base.MoreObjects.ToStringHelper;
-import com.google.common.base.Preconditions;
-import com.google.common.util.concurrent.ThreadFactoryBuilder;
 
 /**
  * A ThreadPoolExecutor with a specified bounded queue capacity that favors reusing previously
@@ -50,7 +50,7 @@ public class CachedThreadPoolExecutor extends ThreadPoolExecutor {
      * @param threadPrefix
      *            the name prefix for threads created by this executor.
      */
-    public CachedThreadPoolExecutor( int maximumPoolSize, int maximumQueueSize, String threadPrefix ) {
+    public CachedThreadPoolExecutor( final int maximumPoolSize, final int maximumQueueSize, final String threadPrefix ) {
         // We're using a custom SynchronousQueue that has a backing bounded LinkedBlockingQueue.
         // We don't specify any core threads (first parameter) so, when a task is submitted,
         // the base class will always try to offer to the queue. If there is an existing waiting
@@ -77,18 +77,18 @@ public class CachedThreadPoolExecutor extends ThreadPoolExecutor {
     }
 
     @Override
-    public void setRejectedExecutionHandler( RejectedExecutionHandler handler ) {
+    public void setRejectedExecutionHandler( final RejectedExecutionHandler handler ) {
         Preconditions.checkNotNull( handler );
         rejectedTaskHandler.setDelegateRejectedExecutionHandler( handler );
     }
 
     @Override
-    public RejectedExecutionHandler getRejectedExecutionHandler(){
+    public RejectedExecutionHandler getRejectedExecutionHandler() {
         return rejectedTaskHandler.getDelegateRejectedExecutionHandler();
     }
 
     @Override
-    public BlockingQueue<Runnable> getQueue(){
+    public BlockingQueue<Runnable> getQueue() {
         return executorQueue.getBackingQueue();
     }
 
@@ -96,7 +96,7 @@ public class CachedThreadPoolExecutor extends ThreadPoolExecutor {
         return ((TrackingLinkedBlockingQueue<?>)executorQueue.getBackingQueue()).getLargestQueueSize();
     }
 
-    protected ToStringHelper addToStringAttributes( ToStringHelper toStringHelper ) {
+    protected ToStringHelper addToStringAttributes( final ToStringHelper toStringHelper ) {
         return toStringHelper;
     }
 
@@ -130,7 +130,7 @@ public class CachedThreadPoolExecutor extends ThreadPoolExecutor {
 
         private final LinkedBlockingQueue<Runnable> backingQueue;
 
-        ExecutorQueue( int maxBackingQueueSize ) {
+        ExecutorQueue( final int maxBackingQueueSize ) {
             backingQueue = new TrackingLinkedBlockingQueue<>( maxBackingQueueSize );
         }
 
@@ -139,7 +139,7 @@ public class CachedThreadPoolExecutor extends ThreadPoolExecutor {
         }
 
         @Override
-        public Runnable poll( long timeout, TimeUnit unit ) throws InterruptedException {
+        public Runnable poll( final long timeout, final TimeUnit unit ) throws InterruptedException {
             long totalWaitTime = unit.toMillis( timeout );
             long waitTime = Math.min( totalWaitTime, POLL_WAIT_TIME_IN_MS );
             Runnable task = null;
@@ -156,10 +156,10 @@ public class CachedThreadPoolExecutor extends ThreadPoolExecutor {
             //   periods, one thread will eventually wake up and get the task from the backingQueue
             //   and execute it, although slightly delayed.
 
-            while( task == null ) {
+            while (task == null) {
                 // First try to get a task from the backing queue.
                 task = backingQueue.poll();
-                if( task == null ) {
+                if (task == null) {
                     // No task in backing - call the base class to wait for one to be offered.
                     task = super.poll( waitTime, TimeUnit.MILLISECONDS );
 
@@ -193,14 +193,14 @@ public class CachedThreadPoolExecutor extends ThreadPoolExecutor {
         private final LinkedBlockingQueue<Runnable> backingQueue;
         private volatile RejectedExecutionHandler delegateRejectedExecutionHandler;
 
-        RejectedTaskHandler( LinkedBlockingQueue<Runnable> backingQueue,
-                             RejectedExecutionHandler delegateRejectedExecutionHandler ) {
+        RejectedTaskHandler( final LinkedBlockingQueue<Runnable> backingQueue,
+                             final RejectedExecutionHandler delegateRejectedExecutionHandler ) {
             this.backingQueue = backingQueue;
             this.delegateRejectedExecutionHandler = delegateRejectedExecutionHandler;
         }
 
         void setDelegateRejectedExecutionHandler(
-                RejectedExecutionHandler delegateRejectedExecutionHandler ) {
+                final RejectedExecutionHandler delegateRejectedExecutionHandler ) {
             this.delegateRejectedExecutionHandler = delegateRejectedExecutionHandler;
         }
 
@@ -209,12 +209,12 @@ public class CachedThreadPoolExecutor extends ThreadPoolExecutor {
         }
 
         @Override
-        public void rejectedExecution( Runnable task, ThreadPoolExecutor executor ) {
-            if( executor.isShutdown() ) {
+        public void rejectedExecution( final Runnable task, final ThreadPoolExecutor executor ) {
+            if (executor.isShutdown()) {
                 throw new RejectedExecutionException( "Executor has been shutdown." );
             }
 
-            if( !backingQueue.offer( task ) ) {
+            if (!backingQueue.offer(task)) {
                 delegateRejectedExecutionHandler.rejectedExecution( task, executor );
             }
         }
index 60a1b674609f6ef8268439e952f3fbdb260b432b..77a5846419e9db142c172d4dd30782a2827dbd37 100644 (file)
@@ -8,12 +8,11 @@
 
 package org.opendaylight.yangtools.util.concurrent;
 
-import java.util.concurrent.ThreadPoolExecutor;
-import java.util.concurrent.TimeUnit;
-
 import com.google.common.base.MoreObjects;
 import com.google.common.base.MoreObjects.ToStringHelper;
 import com.google.common.util.concurrent.ThreadFactoryBuilder;
+import java.util.concurrent.ThreadPoolExecutor;
+import java.util.concurrent.TimeUnit;
 
 /**
  * A ThreadPoolExecutor with a specified bounded queue capacity that favors creating new threads
@@ -41,7 +40,7 @@ public class FastThreadPoolExecutor extends ThreadPoolExecutor {
      * @param threadPrefix
      *            the name prefix for threads created by this executor.
      */
-    public FastThreadPoolExecutor( int maximumPoolSize, int maximumQueueSize, String threadPrefix ) {
+    public FastThreadPoolExecutor( final int maximumPoolSize, final int maximumQueueSize, final String threadPrefix ) {
         this( maximumPoolSize, maximumQueueSize, DEFAULT_IDLE_TIMEOUT_IN_SEC, TimeUnit.SECONDS,
               threadPrefix );
     }
@@ -60,8 +59,8 @@ public class FastThreadPoolExecutor extends ThreadPoolExecutor {
      * @param threadPrefix
      *            the name prefix for threads created by this executor.
      */
-    public FastThreadPoolExecutor( int maximumPoolSize, int maximumQueueSize, long keepAliveTime,
-            TimeUnit unit, String threadPrefix ) {
+    public FastThreadPoolExecutor( final int maximumPoolSize, final int maximumQueueSize, final long keepAliveTime,
+            final TimeUnit unit, final String threadPrefix ) {
         // We use all core threads (the first 2 parameters below equal) so, when a task is submitted,
         // if the thread limit hasn't been reached, a new thread will be spawned to execute
         // the task even if there is an existing idle thread in the pool. This is faster than
@@ -77,7 +76,7 @@ public class FastThreadPoolExecutor extends ThreadPoolExecutor {
         setThreadFactory( new ThreadFactoryBuilder().setDaemon( true )
                                                  .setNameFormat( threadPrefix + "-%d" ).build() );
 
-        if( keepAliveTime > 0 ) {
+        if (keepAliveTime > 0) {
             // Need to specifically configure core threads to timeout.
             allowCoreThreadTimeOut( true );
         }
@@ -89,7 +88,7 @@ public class FastThreadPoolExecutor extends ThreadPoolExecutor {
         return ((TrackingLinkedBlockingQueue<?>)getQueue()).getLargestQueueSize();
     }
 
-    protected ToStringHelper addToStringAttributes( ToStringHelper toStringHelper ) {
+    protected ToStringHelper addToStringAttributes( final ToStringHelper toStringHelper ) {
         return toStringHelper;
     }
 
index a8edd9ab462cf3cca541cec9e6cb0f114a576ca8..7da1e4bddc2261282dcdab42fcb1253c2145b0eb 100644 (file)
@@ -22,8 +22,8 @@ public class ListenerNotificationQueueStats {
     private final String listenerClassName;
     private final int currentQueueSize;
 
-    @ConstructorProperties({"listenerClassName","currentQueueSize"})
-    public ListenerNotificationQueueStats( String listenerClassName, int currentQueueSize ) {
+    @ConstructorProperties({ "listenerClassName","currentQueueSize" })
+    public ListenerNotificationQueueStats( final String listenerClassName, final int currentQueueSize ) {
         this.listenerClassName = listenerClassName;
         this.currentQueueSize = currentQueueSize;
     }
@@ -31,14 +31,14 @@ public class ListenerNotificationQueueStats {
     /**
      * Returns the name of the listener class.
      */
-    public String getListenerClassName(){
+    public String getListenerClassName() {
         return listenerClassName;
     }
 
     /**
      * Returns the current notification queue size.
      */
-    public int getCurrentQueueSize(){
+    public int getCurrentQueueSize() {
         return currentQueueSize;
     }
 }
index d628de016c44354fd721b5ba3f9a094799795d87..b13ab14043c44bdcce8863dacc8d858495c33121 100644 (file)
@@ -8,16 +8,13 @@
 package org.opendaylight.yangtools.yang.binding;
 
 import static com.google.common.base.Preconditions.checkArgument;
-
 import com.google.common.base.CharMatcher;
 import com.google.common.base.Splitter;
 import com.google.common.collect.ImmutableSet;
-
 import java.text.SimpleDateFormat;
 import java.util.Set;
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
-
 import org.opendaylight.yangtools.yang.common.QName;
 import org.opendaylight.yangtools.yang.common.QNameModule;
 
@@ -156,7 +153,7 @@ public final class BindingMapping {
 
     public static String getPropertyName(final String yangIdentifier) {
         final String potential = toFirstLower(toCamelCase(yangIdentifier));
-        if("class".equals(potential)) {
+        if ("class".equals(potential)) {
             return "xmlClass";
         }
         return potential;
index 5be717b574dbba76ea56458a0bb95fb8e7dd8bf0..6060f57c35ce33b701670a553242cdc4cd35a3f6 100644 (file)
@@ -7,15 +7,14 @@
  */
 package org.opendaylight.yangtools.yang.binding;
 
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.Iterables;
 import org.opendaylight.yangtools.util.HashCodeBuilder;
 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier.IdentifiableItem;
 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier.Item;
 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier.PathArgument;
 
-import com.google.common.base.Preconditions;
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.Iterables;
-
 final class InstanceIdentifierBuilderImpl<T extends DataObject> implements InstanceIdentifier.InstanceIdentifierBuilder<T> {
     private final ImmutableList.Builder<PathArgument> pathBuilder = ImmutableList.builder();
     private final HashCodeBuilder<PathArgument> hashBuilder;
@@ -54,7 +53,7 @@ final class InstanceIdentifierBuilderImpl<T extends DataObject> implements Insta
     }
 
     @SuppressWarnings("unchecked")
-    <N extends DataObject & Identifiable<K> , K extends Identifier<N>> InstanceIdentifierBuilderImpl<N> addNode(final Class<N> listItem, final K listKey) {
+    <N extends DataObject & Identifiable<K>, K extends Identifier<N>> InstanceIdentifierBuilderImpl<N> addNode(final Class<N> listItem, final K listKey) {
         arg = new IdentifiableItem<N, K>(listItem, listKey);
         hashBuilder.addArgument(arg);
         pathBuilder.add(arg);
@@ -103,6 +102,7 @@ final class InstanceIdentifierBuilderImpl<T extends DataObject> implements Insta
     /*
      * @deprecated Use #build() instead.
      */
+    @Override
     @Deprecated
     public InstanceIdentifier<T> toInstance() {
         return build();
index b187013b179a0c5a89f481570f15ccf554ee0044..23bb4ccde1f05a320e811b172a5c7a54392a36de 100644 (file)
@@ -1,8 +1,14 @@
+/*
+ * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
+ *
+ * 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/epl-v10.html
+ */
 package org.opendaylight.yangtools.yang.binding.util;
 
 import static com.google.common.base.Preconditions.checkArgument;
 import static com.google.common.base.Preconditions.checkState;
-
 import com.google.common.base.Optional;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableMap.Builder;
@@ -41,8 +47,8 @@ public class DataObjectReadingUtil {
      *            Path, which is nested to parent, and should be readed.
      * @return Value of object.
      */
-    public static final <T extends DataObject, P extends DataObject> Map<InstanceIdentifier<T>, T> readData(P parent,
-            InstanceIdentifier<P> parentPath, InstanceIdentifier<T> childPath) {
+    public static final <T extends DataObject, P extends DataObject> Map<InstanceIdentifier<T>, T> readData(final P parent,
+            final InstanceIdentifier<P> parentPath, final InstanceIdentifier<T> childPath) {
         checkArgument(parent != null, "Parent must not be null.");
         checkArgument(parentPath != null, "Parent path must not be null");
         checkArgument(childPath != null, "Child path must not be null");
@@ -70,12 +76,12 @@ public class DataObjectReadingUtil {
     }
 
     @SuppressWarnings("rawtypes")
-    private static Map<InstanceIdentifier, DataContainer> readData(Entry<InstanceIdentifier, DataContainer> entry,
-            PathArgument pathArgument) {
+    private static Map<InstanceIdentifier, DataContainer> readData(final Entry<InstanceIdentifier, DataContainer> entry,
+            final PathArgument pathArgument) {
         return readData(entry.getValue(), entry.getKey(), pathArgument);
     }
 
-    public static final <T extends DataObject> Optional<T> readData(DataObject source, Class<T> child) {
+    public static final <T extends DataObject> Optional<T> readData(final DataObject source, final Class<T> child) {
         checkArgument(source != null, "Object should not be null.");
         checkArgument(child != null, "Child type should not be null");
         Class<? extends DataContainer> parentClass = source.getImplementedInterface();
@@ -86,24 +92,24 @@ public class DataObjectReadingUtil {
     }
 
     @SuppressWarnings("rawtypes")
-    private static final Map<InstanceIdentifier, DataContainer> readData(DataContainer parent,
-            InstanceIdentifier parentPath, PathArgument child) {
+    private static final Map<InstanceIdentifier, DataContainer> readData(final DataContainer parent,
+            final InstanceIdentifier parentPath, final PathArgument child) {
         checkArgument(parent != null, "Object should not be null.");
         checkArgument(child != null, "Child argument should not be null");
         Class<? extends DataContainer> parentClass = parent.getImplementedInterface();
         return resolveReadStrategy(parentClass, child.getType()).readUsingPathArgument(parent, child, parentPath);
     }
 
-    private static DataObjectReadingStrategy resolveReadStrategy(Class<? extends DataContainer> parentClass,
-            Class<? extends DataContainer> type) {
+    private static DataObjectReadingStrategy resolveReadStrategy(final Class<? extends DataContainer> parentClass,
+            final Class<? extends DataContainer> type) {
 
         DataObjectReadingStrategy strategy = createReadStrategy(parentClass, type);
         // FIXME: Add caching of strategies
         return strategy;
     }
 
-    private static DataObjectReadingStrategy createReadStrategy(Class<? extends DataContainer> parent,
-            Class<? extends DataContainer> child) {
+    private static DataObjectReadingStrategy createReadStrategy(final Class<? extends DataContainer> parent,
+            final Class<? extends DataContainer> child) {
 
         if (Augmentable.class.isAssignableFrom(parent) && Augmentation.class.isAssignableFrom(child)) {
             return REAUSABLE_AUGMENTATION_READING_STRATEGY;
@@ -122,7 +128,7 @@ public class DataObjectReadingUtil {
         return new ContainerReadingStrategy(parent, child);
     }
 
-    private static Method resolveGetterMethod(Class<? extends DataContainer> parent, Class<?> child) {
+    private static Method resolveGetterMethod(final Class<? extends DataContainer> parent, final Class<?> child) {
         String methodName = "get" + child.getSimpleName();
         try {
             return parent.getMethod(methodName);
@@ -141,7 +147,7 @@ public class DataObjectReadingUtil {
         private final Method getterMethod;
 
         @SuppressWarnings("unchecked")
-        public DataObjectReadingStrategy(Class parentType, Class childType) {
+        public DataObjectReadingStrategy(final Class parentType, final Class childType) {
             super();
             checkArgument(DataContainer.class.isAssignableFrom(parentType));
             checkArgument(DataContainer.class.isAssignableFrom(childType));
@@ -151,7 +157,7 @@ public class DataObjectReadingUtil {
         }
 
         @SuppressWarnings("unchecked")
-        public DataObjectReadingStrategy(Class parentType, Class childType, Method getter) {
+        public DataObjectReadingStrategy(final Class parentType, final Class childType, final Method getter) {
             this.parentType = parentType;
             this.childType = childType;
             this.getterMethod = getter;
@@ -180,14 +186,14 @@ public class DataObjectReadingUtil {
     @SuppressWarnings("rawtypes")
     private static class ContainerReadingStrategy extends DataObjectReadingStrategy {
 
-        public ContainerReadingStrategy(Class<? extends DataContainer> parent, Class<? extends DataContainer> child) {
+        public ContainerReadingStrategy(final Class<? extends DataContainer> parent, final Class<? extends DataContainer> child) {
             super(parent, child);
             checkArgument(child.isAssignableFrom(getGetterMethod().getReturnType()));
         }
 
         @Override
-        public Map<InstanceIdentifier, DataContainer> readUsingPathArgument(DataContainer parent,
-                PathArgument childArgument, InstanceIdentifier parentPath) {
+        public Map<InstanceIdentifier, DataContainer> readUsingPathArgument(final DataContainer parent,
+                final PathArgument childArgument, final InstanceIdentifier parentPath) {
             final DataContainer result = read(parent, childArgument.getType());
             if (result != null) {
                 @SuppressWarnings("unchecked")
@@ -198,7 +204,7 @@ public class DataObjectReadingUtil {
         }
 
         @Override
-        public DataContainer read(DataContainer parent, Class<?> childType) {
+        public DataContainer read(final DataContainer parent, final Class<?> childType) {
             try {
                 Object potentialData = getGetterMethod().invoke(parent);
                 checkState(potentialData instanceof DataContainer);
@@ -213,21 +219,21 @@ public class DataObjectReadingUtil {
     @SuppressWarnings("rawtypes")
     private static class ListItemReadingStrategy extends DataObjectReadingStrategy {
 
-        public ListItemReadingStrategy(Class<? extends DataContainer> parent, Class child) {
+        public ListItemReadingStrategy(final Class<? extends DataContainer> parent, final Class child) {
             super(parent, child);
             checkArgument(Iterable.class.isAssignableFrom(getGetterMethod().getReturnType()));
         }
 
         @Override
-        public DataContainer read(DataContainer parent, Class<?> childType) {
+        public DataContainer read(final DataContainer parent, final Class<?> childType) {
             // This will always fail since we do not have key.
             return null;
         }
 
         @SuppressWarnings("unchecked")
         @Override
-        public Map<InstanceIdentifier, DataContainer> readUsingPathArgument(DataContainer parent,
-                PathArgument childArgument, InstanceIdentifier builder) {
+        public Map<InstanceIdentifier, DataContainer> readUsingPathArgument(final DataContainer parent,
+                final PathArgument childArgument, final InstanceIdentifier builder) {
             try {
                 Object potentialList = getGetterMethod().invoke(parent);
                 if (potentialList instanceof Iterable) {
@@ -249,8 +255,8 @@ public class DataObjectReadingUtil {
             return Collections.emptyMap();
         }
 
-        private Map<InstanceIdentifier, DataContainer> readAll(Iterable<Identifiable> dataList,
-                InstanceIdentifier parentPath) {
+        private Map<InstanceIdentifier, DataContainer> readAll(final Iterable<Identifiable> dataList,
+                final InstanceIdentifier parentPath) {
             Builder<InstanceIdentifier, DataContainer> result = ImmutableMap
                     .<InstanceIdentifier, DataContainer> builder();
             for (Identifiable item : dataList) {
@@ -262,8 +268,8 @@ public class DataObjectReadingUtil {
         }
 
         @SuppressWarnings("unchecked")
-        private Map<InstanceIdentifier, DataContainer> readUsingIdentifiableItem(Iterable<Identifiable> dataList,
-                IdentifiableItem childArgument, InstanceIdentifier parentPath) {
+        private Map<InstanceIdentifier, DataContainer> readUsingIdentifiableItem(final Iterable<Identifiable> dataList,
+                final IdentifiableItem childArgument, final InstanceIdentifier parentPath) {
             final Identifier<?> key = childArgument.getKey();
             for (Identifiable item : dataList) {
                 if (key.equals(item.getKey()) && item instanceof DataContainer) {
@@ -289,8 +295,8 @@ public class DataObjectReadingUtil {
 
         @SuppressWarnings("rawtypes")
         @Override
-        public Map<InstanceIdentifier, DataContainer> readUsingPathArgument(DataContainer parent,
-                PathArgument childArgument, InstanceIdentifier builder) {
+        public Map<InstanceIdentifier, DataContainer> readUsingPathArgument(final DataContainer parent,
+                final PathArgument childArgument, final InstanceIdentifier builder) {
             checkArgument(childArgument instanceof Item<?>, "Path Argument must be Item without keys");
             DataContainer aug = read(parent, childArgument.getType());
             if (aug != null) {
@@ -303,7 +309,7 @@ public class DataObjectReadingUtil {
         }
 
         @Override
-        public DataContainer read(DataContainer parent, Class<?> childType) {
+        public DataContainer read(final DataContainer parent, final Class<?> childType) {
             checkArgument(Augmentation.class.isAssignableFrom(childType), "Parent must be Augmentable.");
             checkArgument(parent instanceof Augmentable<?>, "Parent must be Augmentable.");
 
@@ -324,7 +330,7 @@ public class DataObjectReadingUtil {
      * @throws IllegalArgumentException
      *             if parent argument is bigger than child
      */
-    private static <P, C> List<C> subList(Iterable<P> parent, Iterable<C> child) {
+    private static <P, C> List<C> subList(final Iterable<P> parent, final Iterable<C> child) {
         Iterator<P> iParent = parent.iterator();
         List<C> result = new ArrayList<>();
         for (C arg : child) {
index ca37fc167d9bc921a66323dbf7c4a5b937260844..dce403e1d08e86f3badbce5de32017301ece2fe1 100644 (file)
@@ -42,7 +42,7 @@ public final class NotificationListenerInvoker {
             .build(new CacheLoader<Class<? extends NotificationListener>, NotificationListenerInvoker>() {
 
                 @Override
-                public NotificationListenerInvoker load(Class<? extends NotificationListener> key) throws Exception {
+                public NotificationListenerInvoker load(final Class<? extends NotificationListener> key) throws Exception {
                     return createInvoker(key);
                 }
 
@@ -50,7 +50,7 @@ public final class NotificationListenerInvoker {
 
     private final Map<QName, MethodHandle> methodInvokers;
 
-    public NotificationListenerInvoker(Map<QName, MethodHandle> map) {
+    public NotificationListenerInvoker(final Map<QName, MethodHandle> map) {
         this.methodInvokers = map;
     }
 
@@ -64,7 +64,7 @@ public final class NotificationListenerInvoker {
      *         supplied RPC type.
      *
      */
-    public static NotificationListenerInvoker from(Class<? extends NotificationListener> type) {
+    public static NotificationListenerInvoker from(final Class<? extends NotificationListener> type) {
         Preconditions.checkArgument(type.isInterface());
         Preconditions.checkArgument(BindingReflections.isBindingClass(type));
         return INVOKERS.getUnchecked(type);
@@ -82,8 +82,8 @@ public final class NotificationListenerInvoker {
      *            Input data for RPC.
      *
      */
-    public void invokeNotification(@Nonnull NotificationListener impl, @Nonnull QName rpcName,
-            @Nullable DataContainer input) {
+    public void invokeNotification(@Nonnull final NotificationListener impl, @Nonnull final QName rpcName,
+            @Nullable final DataContainer input) {
         Preconditions.checkNotNull(impl, "implemetation must be supplied");
         MethodHandle invoker = methodInvokers.get(rpcName);
         Preconditions.checkArgument(invoker != null, "Supplied notification is not valid for implementation %s", impl);
@@ -94,12 +94,12 @@ public final class NotificationListenerInvoker {
         }
     }
 
-    private static NotificationListenerInvoker createInvoker(Class<? extends NotificationListener> key) {
+    private static NotificationListenerInvoker createInvoker(final Class<? extends NotificationListener> key) {
         return new NotificationListenerInvoker(createInvokerMap(key));
     }
 
-    private static Map<QName, MethodHandle> createInvokerMap(Class<? extends NotificationListener> key) {
-        Builder<QName, MethodHandle> ret = ImmutableMap.<QName, MethodHandle> builder();
+    private static Map<QName, MethodHandle> createInvokerMap(final Class<? extends NotificationListener> key) {
+        Builder<QName, MethodHandle> ret = ImmutableMap.<QName, MethodHandle>builder();
         for (Method method : key.getMethods()) {
             if (BindingReflections.isNotificationCallback(method)) {
 
index b1ea0e437bbdc4b8cbaa445591d6994ed1810fa0..55974a3f87dda49ced9014273e1d763a79125390 100644 (file)
@@ -49,10 +49,9 @@ public class OperationFailedException extends Exception {
                                     final RpcError... errors) {
         super(Preconditions.checkNotNull(message), cause);
 
-        if( errors != null && errors.length > 0 ) {
+        if (errors != null && errors.length > 0) {
             errorList = ImmutableList.<RpcError>copyOf( Arrays.asList( errors ) );
-        }
-        else {
+        } else {
             // Add a default RpcError.
             errorList = ImmutableList.of(RpcResultBuilder.newError(ErrorType.APPLICATION, null,
                     getMessage(), null, null, getCause()));
index c063366a476945a068e3795718712085d8c0aa04..690e29517dde914ae3c3dac9add327431d474f40 100644 (file)
@@ -11,11 +11,9 @@ package org.opendaylight.yangtools.yang.common;
 import com.google.common.collect.ImmutableList;
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
-
 import java.io.Serializable;
 import java.util.Collection;
 import java.util.Collections;
-
 import org.opendaylight.yangtools.concepts.Builder;
 import org.opendaylight.yangtools.yang.common.RpcError.ErrorSeverity;
 import org.opendaylight.yangtools.yang.common.RpcError.ErrorType;
@@ -59,7 +57,7 @@ public final class RpcResultBuilder<T> implements Builder<RpcResult<T>> {
         }
 
         @Override
-        public String toString(){
+        public String toString() {
             return "RpcResult [successful=" + successful + ", result="
                     + result + ", errors=" + errors + "]";
         }
@@ -109,7 +107,7 @@ public final class RpcResultBuilder<T> implements Builder<RpcResult<T>> {
         }
 
         @Override
-        public String getMessage(){
+        public String getMessage() {
             return message;
         }
 
@@ -124,7 +122,7 @@ public final class RpcResultBuilder<T> implements Builder<RpcResult<T>> {
         }
 
         @Override
-        public String toString(){
+        public String toString() {
             return "RpcError [message=" + message + ", severity="
                     + severity + ", errorType=" + errorType + ", tag=" + tag
                     + ", applicationTag=" + applicationTag + ", info=" + info
@@ -154,7 +152,7 @@ public final class RpcResultBuilder<T> implements Builder<RpcResult<T>> {
      * @param result the result value
      */
     public static <T> RpcResultBuilder<T> success( final T result ) {
-         return new RpcResultBuilder<T>( true, result );
+        return new RpcResultBuilder<T>( true, result );
     }
 
     /**
@@ -291,7 +289,7 @@ public final class RpcResultBuilder<T> implements Builder<RpcResult<T>> {
 
     private void addError( final RpcError error ) {
 
-        if( errors == null ) {
+        if (errors == null) {
             errors = new ImmutableList.Builder<RpcError>();
         }
 
@@ -400,8 +398,8 @@ public final class RpcResultBuilder<T> implements Builder<RpcResult<T>> {
      * @param errors the list of RpcErrors
      */
     public RpcResultBuilder<T> withRpcErrors( final Collection<RpcError> errors ) {
-        if( errors != null ) {
-            for( RpcError error: errors ) {
+        if (errors != null) {
+            for (RpcError error : errors) {
                 addError( error );
             }
         }
index f0854b30ae8ec2e1ab0873e4f2a36fcc72c26d8a..d3abae3465c4de36a5e21e20d3b9c435fa4ded21 100644 (file)
@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
+ *
  * 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/epl-v10.html
@@ -7,7 +8,6 @@
 package org.opendaylight.yangtools.yang.model.api;
 
 import com.google.common.base.Optional;
-
 import java.util.List;
 
 /**
index 7dd248cf379e8adc48c78bb580c52e56a4b8b19e..db707c56ed3cc3183353b9aed084c4e4f06492a6 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
+ *
+ * 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/epl-v10.html
+ */
 package org.opendaylight.yangtools.yang.model.api;
 
 import com.google.common.base.Optional;
index bb923b6f3f798e12629f6156d73b5feb7370dee6..36acbe9b5168c770bbff5558bf1d736b065bafea 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
+ *
+ * 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/epl-v10.html
+ */
 package org.opendaylight.yangtools.yang.model.api;
 
 /**
index 99a30a465a9f94d3b6925b181af55d9ffae9f07a..8d0dd54d9fdd71ae54ee9fe7f966ad2a7462e072 100644 (file)
@@ -1,8 +1,3 @@
-package org.opendaylight.yangtools.yang.model.api;
-
-import java.net.URI;
-import java.util.Date;
-
 /*
  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
  *
@@ -10,6 +5,11 @@ import java.util.Date;
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
+package org.opendaylight.yangtools.yang.model.api;
+
+import java.net.URI;
+import java.util.Date;
+
 public interface NamespaceRevisionAware {
 
     URI getNamespace();
index 4036658575d163dfb94417fc279d122a7a8cbd3c..7d17b042e6108dd76c1de2a831667775360639fa 100644 (file)
@@ -1,4 +1,3 @@
-
 /* Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
 *
 * This program and the accompanying materials are made available under the
index b4264dff133cd341ef3ef0eccb28459db0a89e3b..c5fb34faaff7b8c658bc5313ff18d15a29cc4eb2 100644 (file)
@@ -11,9 +11,7 @@ import javax.annotation.Nonnull;
 import org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement;
 
 public interface ModuleStatement extends DeclaredStatement<String>, ModuleHeaderGroup, LinkageGroup, MetaGroup,
-        RevisionGroup, BodyGroup
-
-    {
+        RevisionGroup, BodyGroup {
 
     @Nonnull String getName();
 
index 89138d6a57e7fdbf3772fa3a2d5c1524c7f2d539..2062a635516496682397f5bb1ce32d30bed329a7 100644 (file)
@@ -3,7 +3,7 @@
  *
  * 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.repo.api;
 
index 2597e9c185481d8886d4ee65155e74d9264cdc37..11782fe2acbc58820883fb70f900c624acc41cf5 100644 (file)
@@ -3,17 +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.repo.api;
 
 import com.google.common.annotations.Beta;
 import com.google.common.util.concurrent.CheckedFuture;
-
 import java.util.Collection;
-
 import javax.annotation.Nonnull;
-
 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
 
 /**
index 73569d384d3cd76091466ebe5474c70a96b57e6c..c86c25eb81a8febff2020e814b485e34e2487c19 100644 (file)
@@ -3,15 +3,13 @@
  *
  * 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.repo.api;
 
 import com.google.common.annotations.Beta;
 import com.google.common.util.concurrent.CheckedFuture;
-
 import javax.annotation.Nonnull;
-
 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
 
 /**
index 42c92d58baaaee64c4122badfe4e329c3f0a24eb..0070cab71fe3d7bcf734060e9bfc4d6e63351d50 100644 (file)
@@ -27,20 +27,20 @@ public class SchemaResolutionException extends SchemaSourceException {
     private final Multimap<SourceIdentifier, ModuleImport> unsatisfiedImports;
     private final Collection<SourceIdentifier> resolvedSources;
 
-    public SchemaResolutionException(final @Nonnull String message) {
+    public SchemaResolutionException(@Nonnull final String message) {
         this(message, (Throwable)null);
     }
 
-    public SchemaResolutionException(final @Nonnull String message, final Throwable cause) {
+    public SchemaResolutionException(@Nonnull final String message, final Throwable cause) {
         this(message, cause, Collections.<SourceIdentifier>emptySet(), ImmutableMultimap.<SourceIdentifier, ModuleImport>of());
     }
 
-    public SchemaResolutionException(final @Nonnull String message, final Collection<SourceIdentifier> resolvedSources,
+    public SchemaResolutionException(@Nonnull final String message, final Collection<SourceIdentifier> resolvedSources,
             final @Nonnull Multimap<SourceIdentifier, ModuleImport> unsatisfiedImports) {
         this(message, null, resolvedSources, unsatisfiedImports);
     }
 
-    public SchemaResolutionException(final @Nonnull String message, final Throwable cause,
+    public SchemaResolutionException(@Nonnull final String message, final Throwable cause,
             @Nonnull final Collection<SourceIdentifier> resolvedSources,
             @Nonnull final Multimap<SourceIdentifier, ModuleImport> unsatisfiedImports) {
         super(formatMessage(message, resolvedSources, unsatisfiedImports), cause);
index d31da32ac491719f3959f2a14897bd8d79a807cb..d307213fd207aa180fd3a93ee77d9ca0340a8c12 100644 (file)
@@ -3,7 +3,7 @@
  *
  * 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.repo.api;
 
index afeae46e5e3108d38cd6ea758eae775615e0a162..6da4ee301263ffbcb72c5200fdea0b54ee87c3da 100644 (file)
@@ -3,14 +3,13 @@
  *
  * 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.repo.api;
 
 import com.google.common.annotations.Beta;
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
-
 import java.util.Collections;
 
 /**
index 4bffdd505fd01caf6b4910b87120b46b390effc1..053fe79b345eb8b12d2dc2d3d64c8b1b984d2048 100644 (file)
@@ -3,12 +3,11 @@
  *
  * 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.repo.api;
 
 import com.google.common.annotations.Beta;
-
 import org.opendaylight.yangtools.concepts.Identifiable;
 import org.opendaylight.yangtools.concepts.Immutable;
 
index 2a688b3ff8347ede6894e73093dcd51e65f28010..f46ed3f426553be6f37a5a94e72b7d96b965c24c 100644 (file)
@@ -3,7 +3,7 @@
  *
  * 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.repo.api;
 
index 8ae9c287fb1c1c486f5c0a956603e8047e7e329b..e3083456ef16302008384266cdbc56cdfa9dbb1b 100644 (file)
@@ -3,22 +3,19 @@
  *
  * 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.repo.api;
 
 import static com.google.common.base.Preconditions.checkArgument;
-
 import com.google.common.annotations.Beta;
 import com.google.common.base.MoreObjects;
 import com.google.common.base.MoreObjects.ToStringHelper;
 import com.google.common.base.Optional;
 import com.google.common.base.Preconditions;
 import com.google.common.io.ByteSource;
-
 import java.io.IOException;
 import java.io.InputStream;
-
 import org.opendaylight.yangtools.concepts.Delegator;
 
 /**
index f09f525533e62982f6610c96344501414bcfa8b4..1fbe208536b4d8217ba5145d7791bf6d76dcda1e 100644 (file)
@@ -3,12 +3,11 @@
  *
  * 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.repo.api;
 
 import com.google.common.annotations.Beta;
-
 import org.w3c.dom.Document;
 
 /**
index 3e970949f50ac894e2248200301e39ec946ddd8c..7e480b9a692679d429b0c7cbe757d03724139269 100644 (file)
@@ -3,12 +3,11 @@
  *
  * 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.repo.spi;
 
 import com.google.common.annotations.Beta;
-
 import org.opendaylight.yangtools.concepts.ListenerRegistration;
 
 /**
index b4f55a812e3b9cbbe43f316046a3c584f6bf22dd..71ca20307ffe3f0f18a5ecd61ec14045f249d203 100644 (file)
@@ -3,14 +3,12 @@
  *
  * 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.repo.spi;
 
 import com.google.common.annotations.Beta;
-
 import java.util.EventListener;
-
 import org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceRepresentation;
 
 /**
index 90fc9dbe32c85303688651b67883729853b68eac..cdf6701805d94c700d856a49a0c32ea1ad3a3217 100644 (file)
@@ -3,13 +3,12 @@
  *
  * 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.repo.spi;
 
 import com.google.common.annotations.Beta;
 import com.google.common.util.concurrent.CheckedFuture;
-
 import org.opendaylight.yangtools.yang.model.repo.api.MissingSchemaSourceException;
 import org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceException;
 import org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceRepresentation;
index 6937c53e98ecbc42544cf61fa7f00b0ee792e880..d59c78d0f7483433ad390374e036ef2e732bb70d 100644 (file)
@@ -3,12 +3,11 @@
  *
  * 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.repo.spi;
 
 import com.google.common.annotations.Beta;
-
 import org.opendaylight.yangtools.concepts.ObjectRegistration;
 import org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceRepresentation;
 
index 075fcb5382d44ffb34532d20685c92de4cf86c7a..1b35c51d1c192ebec26f68a024355f5d3dd84257 100644 (file)
@@ -3,12 +3,11 @@
  *
  * 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.repo.spi;
 
 import com.google.common.annotations.Beta;
-
 import org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceRepresentation;
 import org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier;