util classes should be final with a private constructor

This commit is contained in:
Sebastian Sdorra
2013-02-11 15:28:14 +01:00
parent 961c6f7f02
commit 114834d257
22 changed files with 232 additions and 51 deletions

View File

@@ -41,9 +41,17 @@ import sonia.scm.util.SystemUtil;
*
* @author Sebastian Sdorra
*/
public class HgInstallerFactory
public final class HgInstallerFactory
{
/**
* Constructs ...
*
*/
private HgInstallerFactory() {}
//~--- methods --------------------------------------------------------------
/**
* Method description
*

View File

@@ -30,6 +30,7 @@
*/
package sonia.scm.repository;
//~--- non-JDK imports --------------------------------------------------------
@@ -55,7 +56,7 @@ import java.io.IOException;
*
* @author Sebastian Sdorra
*/
public class HgPyFix
public final class HgPyFix
{
/** Field description */
@@ -72,6 +73,14 @@ public class HgPyFix
*/
private static final Logger logger = LoggerFactory.getLogger(HgUtil.class);
//~--- constructors ---------------------------------------------------------
/**
* Constructs ...
*
*/
private HgPyFix() {}
//~--- methods --------------------------------------------------------------
/**
@@ -108,7 +117,6 @@ public class HgPyFix
* Visible for testing
*
*
* @param hg
*
* @param hgBat
*/