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

@@ -37,9 +37,17 @@ package sonia.scm.user;
*
* @author Sebastian Sdorra
*/
public class UserTestData
public final class UserTestData
{
/**
* Constructs ...
*
*/
private UserTestData() {}
//~--- methods --------------------------------------------------------------
/**
* Method description
*
@@ -104,7 +112,7 @@ public class UserTestData
public static User createTrillian()
{
return new User("trillian", "Tricia McMillan",
"tricia.mcmillan@hitchhiker.com");
"tricia.mcmillan@hitchhiker.com");
}
/**
@@ -116,6 +124,6 @@ public class UserTestData
public static User createZaphod()
{
return new User("zaphod", "Zaphod Beeblebrox",
"zaphod.beeblebrox@hitchhiker.com");
"zaphod.beeblebrox@hitchhiker.com");
}
}