<artifactId>openflowplugin</artifactId>
<packaging>bundle</packaging>
- <properties>
- <!-- FIXME: Remove this -->
- <odlparent.modernizer.enforce>false</odlparent.modernizer.enforce>
- </properties>
-
<build>
<plugins>
<plugin>
* 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.openflowplugin.openflow.md.core.sal.convertor.common;
-import com.google.common.base.Preconditions;
+import static java.util.Objects.requireNonNull;
+
import java.util.Arrays;
import java.util.List;
import java.util.Optional;
* @param errorOnEmpty the error on empty
* @param supportedVersions the supported versions
*/
- protected ConvertorCase(Class<F> type, boolean errorOnEmpty, Short... supportedVersions) {
+ protected ConvertorCase(final Class<F> type, final boolean errorOnEmpty, final Short... supportedVersions) {
this.type = type;
this.errorOnEmpty = errorOnEmpty;
- this.supportedVersions = Arrays.asList(Preconditions.checkNotNull(supportedVersions));
+ this.supportedVersions = Arrays.asList(requireNonNull(supportedVersions));
}
/**
*/
package org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.common;
+import static java.util.Objects.requireNonNull;
+
import com.google.common.base.MoreObjects;
import com.google.common.base.MoreObjects.ToStringHelper;
-import com.google.common.base.Preconditions;
/**
* Injection lookup key based on version and target object.
*/
public ConvertorKey(final int version, final Class<?> targetClazz) {
this.version = version;
- this.targetClazz = Preconditions.checkNotNull(targetClazz);
+ this.targetClazz = requireNonNull(targetClazz);
}
@Override