From squid:
"Utility classes, which are a collection of static members,
are not meant to be instantiated. Even abstract utility
classes, which can be extended, should not have public constructors.
Java adds an implicit public constructor to every class
which does not define at least one explicitly. Hence,
at least one non-public constructor should be defined."
Change-Id: Ibc83dfbf6f1777acccd41e89ef5a371eabfa51d4
Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
public class NeutronUtil {
private static final Logger LOGGER = LoggerFactory
.getLogger(NeutronUtil.class);
+
+ private NeutronUtil() {
+ }
+
public static Object[] getInstances(Class<?> clazz,Object bundle) {
Object instances[] = null;
try {
import org.opendaylight.neutron.spi.NeutronSubnet;
public class PaginatedRequestFactory {
+
private static final Comparator<INeutronObject> NEUTRON_OBJECT_COMPARATOR = new Comparator<INeutronObject>() {
@Override
public int compare(INeutronObject o1, INeutronObject o2) {
}
}
+ private PaginatedRequestFactory() {
+ }
+
/*
* SuppressWarnings is needed because the compiler does not understand that we
* are actually safe here.