From 752c79d4978896c865d74f374355b016b637d767 Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Sat, 14 Feb 2015 22:21:24 +0100 Subject: [PATCH] [Minor] Locator constructors are private use Locator.valueOf() --- .../src/main/java/li/strolch/model/Locator.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/li.strolch.model/src/main/java/li/strolch/model/Locator.java b/li.strolch.model/src/main/java/li/strolch/model/Locator.java index 5e60f9852..81a957621 100644 --- a/li.strolch.model/src/main/java/li/strolch/model/Locator.java +++ b/li.strolch.model/src/main/java/li/strolch/model/Locator.java @@ -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 pathElements) throws StrolchException { + private Locator(List 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)); }