-/**
+/*
* 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 {
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