commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmitch...@apache.org
Subject svn commit: r224697 - /jakarta/commons/proper/resources/trunk/src/java/org/apache/commons/resources/Messages.java
Date Mon, 25 Jul 2005 06:00:10 GMT
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


Mime
View raw message