You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by jm...@apache.org on 2005/07/25 08:00:10 UTC

svn commit: r224697 - /jakarta/commons/proper/resources/trunk/src/java/org/apache/commons/resources/Messages.java

Author: jmitchell
Date: Sun Jul 24 23:00:03 2005
New Revision: 224697

URL: http://svn.apache.org/viewcvs?rev=224697&view=rev
Log:
force getMessages() to honor the resource returnNull setting - Bug 17650 (Steve Peterson)

Modified:
    jakarta/commons/proper/resources/trunk/src/java/org/apache/commons/resources/Messages.java

Modified: jakarta/commons/proper/resources/trunk/src/java/org/apache/commons/resources/Messages.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/resources/trunk/src/java/org/apache/commons/resources/Messages.java?rev=224697&r1=224696&r2=224697&view=diff
==============================================================================
--- jakarta/commons/proper/resources/trunk/src/java/org/apache/commons/resources/Messages.java (original)
+++ jakarta/commons/proper/resources/trunk/src/java/org/apache/commons/resources/Messages.java Sun Jul 24 23:00:03 2005
@@ -224,7 +224,7 @@
 			log.debug("Failed retrieving message for key: '" + key + "'.", e);
 		}
 
-		if (message == null) {
+		if (message == null && !resources.isReturnNull()) {
 			message = "???" + key + "???";
 		}
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org