Enforce modernizer in openflowplugin
[openflowplugin.git] / openflowplugin / src / main / java / org / opendaylight / openflowplugin / openflow / md / core / sal / convertor / common / ConvertorKey.java
index c25b5a677d77db804c226749567251190d8af15f..3a1b0da346341a71077c17ff86ae2d10956f9c0c 100644 (file)
@@ -1,20 +1,19 @@
-/**
+/*
  * 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
  */
-
 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
+ * Injection lookup key based on version and target object.
  */
 public class ConvertorKey {
 
@@ -22,12 +21,14 @@ public class ConvertorKey {
     private final Class<?> targetClazz;
 
     /**
+     * Constructor.
+     *
      * @param version openflow version
      * @param targetClazz target class
      */
     public ConvertorKey(final int version, final Class<?> targetClazz) {
         this.version = version;
-        this.targetClazz = Preconditions.checkNotNull(targetClazz);
+        this.targetClazz = requireNonNull(targetClazz);
     }
 
     @Override