From 97928d1186e3ec3fb9a38d19b817ccae7c241c78 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Wed, 6 Jan 2010 22:24:30 +0000 Subject: [PATCH] polishing git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2780 50f2f4bb-b051-0410-bef5-90022cba6387 --- .../java/org/springframework/jndi/JndiLocatorSupport.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/org.springframework.context/src/main/java/org/springframework/jndi/JndiLocatorSupport.java b/org.springframework.context/src/main/java/org/springframework/jndi/JndiLocatorSupport.java index 3b1af83a9e3..f24e8467f5f 100644 --- a/org.springframework.context/src/main/java/org/springframework/jndi/JndiLocatorSupport.java +++ b/org.springframework.context/src/main/java/org/springframework/jndi/JndiLocatorSupport.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2008 the original author or authors. + * Copyright 2002-2010 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,7 +79,7 @@ public abstract class JndiLocatorSupport extends JndiAccessor { /** * Perform an actual JNDI lookup for the given name via the JndiTemplate. - *

If the name doesn't begin with "java:comp/env/", this prefix is added + *

If the name doesn't begin with "java:comp/env/", this prefix is added * if "resourceRef" is set to "true". * @param jndiName the JNDI name to look up * @param requiredType the required type of the object @@ -90,7 +90,7 @@ public abstract class JndiLocatorSupport extends JndiAccessor { protected T lookup(String jndiName, Class requiredType) throws NamingException { Assert.notNull(jndiName, "'jndiName' must not be null"); String convertedName = convertJndiName(jndiName); - T jndiObject = null; + T jndiObject; try { jndiObject = getJndiTemplate().lookup(convertedName, requiredType); }