jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1380359 - /jmeter/trunk/src/core/org/apache/jmeter/util/JMeterUtils.java
Date Mon, 03 Sep 2012 21:06:50 GMT
Author: pmouawad
Date: Mon Sep  3 21:06:48 2012
New Revision: 1380359

URL: http://svn.apache.org/viewvc?rev=1380359&view=rev
Log:
Oups JDK6 method

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/util/JMeterUtils.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/util/JMeterUtils.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/util/JMeterUtils.java?rev=1380359&r1=1380358&r2=1380359&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/util/JMeterUtils.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/util/JMeterUtils.java Mon Sep  3 21:06:48 2012
@@ -535,8 +535,9 @@ public class JMeterUtils implements Unit
     public static String getLocaleString(String locale){
         // All keys in messages.properties are lowercase (historical reasons?)
         String resKey = locale.toLowerCase(java.util.Locale.ENGLISH);
-        if(resources.containsKey(resKey)) {
+        try {
             return resources.getString(resKey);
+        } catch (MissingResourceException e) {
         }
         return locale;
     }



Mime
View raw message