[Minor] Locator constructors are private use Locator.valueOf()

This commit is contained in:
Robert von Burg 2015-02-14 22:21:24 +01:00
parent 2a79ed701b
commit 752c79d497
1 changed files with 3 additions and 3 deletions

View File

@ -63,7 +63,7 @@ public class Locator {
* @throws StrolchException
* if the path is invalid, meaning has less than two elements in it
*/
public Locator(List<String> pathElements) throws StrolchException {
private Locator(List<String> pathElements) throws StrolchException {
if (pathElements == null || pathElements.isEmpty()) {
throw new StrolchException("The path elements may not be null and must contain at least 1 item"); //$NON-NLS-1$
}
@ -79,7 +79,7 @@ public class Locator {
* @throws StrolchException
* if the path is invalid, meaning has less than two elements in it
*/
public Locator(String... path) throws StrolchException {
private Locator(String... path) throws StrolchException {
this.pathElements = Collections.unmodifiableList(Arrays.asList(path));
}
@ -92,7 +92,7 @@ public class Locator {
* @throws StrolchException
* if the path is invalid, meaning has less than two elements in it
*/
public Locator(String path) throws StrolchException {
private Locator(String path) throws StrolchException {
this.pathElements = Collections.unmodifiableList(parsePath(path));
}