Author: norman.richards(a)jboss.com
Date: 2009-06-16 19:35:05 -0400 (Tue, 16 Jun 2009)
New Revision: 11169
Modified:
branches/community/Seam_2_2/src/main/org/jboss/seam/international/Messages.java
Log:
JBSEAM-4252
Modified: branches/community/Seam_2_2/src/main/org/jboss/seam/international/Messages.java
===================================================================
---
branches/community/Seam_2_2/src/main/org/jboss/seam/international/Messages.java 2009-06-16
19:54:48 UTC (rev 11168)
+++
branches/community/Seam_2_2/src/main/org/jboss/seam/international/Messages.java 2009-06-16
23:35:05 UTC (rev 11169)
@@ -53,11 +53,9 @@
} catch (MissingResourceException mre) {
return resourceKey;
}
- if (resource == null) {
- return resourceKey;
- } else {
- return Interpolator.instance().interpolate(resource);
- }
+
+ return (resource == null) ? resourceKey : resource;
+
} else {
return null;
}
Show replies by date