Make utility class final 81/63781/3
authorDavid Suarez <david.suarez.fuentes@gmail.com>
Thu, 28 Sep 2017 15:21:28 +0000 (17:21 +0200)
committerDavid Suarez <david.suarez.fuentes@gmail.com>
Fri, 6 Oct 2017 09:59:07 +0000 (09:59 +0000)
Make utility class final to avoid subclassing and implement private
constructor to avoid instantiation.

Change-Id: I7655b402cc9682ecae347d4cfba0b51a415bff72
Signed-off-by: David Suarez <david.suarez.fuentes@gmail.com>
neutron-spi/src/test/java/org/opendaylight/neutron/spi/JaxbTestHelper.java

index 81d21145fdfecfe61c325bfaea0151c35cf34891..f24bc576e7902978d77895ea9989dcf751e39ca3 100644 (file)
@@ -18,7 +18,10 @@ import javax.xml.transform.stream.StreamSource;
 import org.eclipse.persistence.jaxb.JAXBContextProperties;
 import org.eclipse.persistence.jaxb.UnmarshallerProperties;
 
-public class JaxbTestHelper {
+public final class JaxbTestHelper {
+
+    private JaxbTestHelper() {
+    }
 
     @SuppressWarnings({ "rawtypes", "unchecked" })
     public static Object jaxbUnmarshall(Object schemaObject, String json) throws JAXBException {