From 555a7eb522847d7dcc243d8a14925d958848aef4 Mon Sep 17 00:00:00 2001 From: Robert Gemmell Date: Mon, 4 Jun 2012 21:41:12 +0000 Subject: QPID-3971: minor cleanup to remove unused variable and stop logging null when no provider URL is set as this case is later logged explicitly and more clearly git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1346171 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/qpid/jndi/PropertiesFileInitialContextFactory.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'qpid/java/client') diff --git a/qpid/java/client/src/main/java/org/apache/qpid/jndi/PropertiesFileInitialContextFactory.java b/qpid/java/client/src/main/java/org/apache/qpid/jndi/PropertiesFileInitialContextFactory.java index 935b4e7d9d..f17fb9b5f5 100644 --- a/qpid/java/client/src/main/java/org/apache/qpid/jndi/PropertiesFileInitialContextFactory.java +++ b/qpid/java/client/src/main/java/org/apache/qpid/jndi/PropertiesFileInitialContextFactory.java @@ -69,7 +69,6 @@ public class PropertiesFileInitialContextFactory implements InitialContextFactor public Context getInitialContext(Hashtable environment) throws NamingException { Map data = new ConcurrentHashMap(); - File file = null; BufferedInputStream inputStream = null; try { @@ -77,11 +76,9 @@ public class PropertiesFileInitialContextFactory implements InitialContextFactor String fileName = (environment.containsKey(Context.PROVIDER_URL)) ? (String)environment.get(Context.PROVIDER_URL) : System.getProperty(Context.PROVIDER_URL); - _logger.info("Attempting to load " + fileName); - - if (fileName != null) { + _logger.info("Attempting to load " + fileName); inputStream = new BufferedInputStream(new FileInputStream((fileName.contains("file:")) ? new File(new URI(fileName)) : new File(fileName))); -- cgit v1.2.1