util classes should be final with a private constructor

This commit is contained in:
Sebastian Sdorra
2013-01-31 10:26:16 +01:00
parent 2d5fa22ca4
commit 9adc65d9e5
34 changed files with 393 additions and 134 deletions

View File

@@ -48,12 +48,20 @@ import java.io.File;
*
* @author Sebastian Sdorra
*/
public class HgUtil
public final class HgUtil
{
/** Field description */
public static final String REVISION_TIP = "tip";
//~--- constructors ---------------------------------------------------------
/**
* Constructs ...
*
*/
private HgUtil() {}
//~--- get methods ----------------------------------------------------------
/**

View File

@@ -30,6 +30,7 @@
*/
package sonia.scm.repository;
//~--- non-JDK imports --------------------------------------------------------
@@ -40,9 +41,17 @@ import org.junit.Assume;
*
* @author Sebastian Sdorra
*/
public class HgTestUtil
public final class HgTestUtil
{
/**
* Constructs ...
*
*/
private HgTestUtil() {}
//~--- methods --------------------------------------------------------------
/**
* Method description
*
@@ -51,6 +60,7 @@ public class HgTestUtil
*/
public static void checkForSkip(HgRepositoryHandler handler)
{
// skip tests if hg not in path
if (!handler.isConfigured())
{