[Minor] Clean up use of deprecated method

Signed-off-by: Gregor Zurowski <gre...@zurowski.org>


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/eb69733b
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/eb69733b
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/eb69733b

Branch: refs/heads/master
Commit: eb69733b4539870195c0bbd139ab97e782a11849
Parents: 3d818dc
Author: Gregor Zurowski <gre...@zurowski.org>
Authored: Fri Jun 2 09:31:49 2017 +0200
Committer: Gregor Zurowski <gre...@zurowski.org>
Committed: Fri Jun 2 09:31:49 2017 +0200

----------------------------------------------------------------------
 .../java/org/apache/camel/spring/boot/FilePropertySource.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/eb69733b/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/FilePropertySource.java
----------------------------------------------------------------------
diff --git 
a/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/FilePropertySource.java
 
b/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/FilePropertySource.java
index e2aa295..94de504 100644
--- 
a/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/FilePropertySource.java
+++ 
b/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/FilePropertySource.java
@@ -20,7 +20,7 @@ import java.io.FileInputStream;
 import java.io.IOException;
 import java.util.Properties;
 
-import org.apache.camel.util.ObjectHelper;
+import org.apache.camel.util.StringHelper;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.context.ApplicationContext;
@@ -39,7 +39,7 @@ public class FilePropertySource extends PropertySource {
 
     public FilePropertySource(String name, ApplicationContext 
applicationContext, String directory) {
         super(name);
-        ObjectHelper.notEmpty(directory, "directory");
+        StringHelper.notEmpty(directory, "directory");
 
         Properties loaded = new Properties();
         try {

Reply via email to