squid:S2974 - Classes without public constructors should be final

This commit is contained in:
Mohammed Ezzat
2016-02-09 17:19:31 +02:00
parent 33224dd7d7
commit 632174b6dc
14 changed files with 14 additions and 14 deletions

View File

@ -34,7 +34,7 @@ import java.io.Serializable;
*
* @author mortezaadi@gmail.com
*/
public class InitializingOnDemandHolderIdiom implements Serializable {
public final class InitializingOnDemandHolderIdiom implements Serializable {
private static final long serialVersionUID = 1L;

View File

@ -31,7 +31,7 @@ package com.iluwatar.singleton;
*
* @author mortezaadi@gmail.com
*/
public class ThreadSafeDoubleCheckLocking {
public final class ThreadSafeDoubleCheckLocking {
private static volatile ThreadSafeDoubleCheckLocking instance;

View File

@ -29,7 +29,7 @@ package com.iluwatar.singleton;
* Note: if created by reflection then a singleton will not be created but multiple options in the
* same classloader
*/
public class ThreadSafeLazyLoadedIvoryTower {
public final class ThreadSafeLazyLoadedIvoryTower {
private static ThreadSafeLazyLoadedIvoryTower instance = null;