jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1549033 - in /jmeter/trunk: src/core/org/apache/jmeter/testbeans/BeanInfoSupport.java xdocs/changes.xml
Date Sun, 08 Dec 2013 14:53:49 GMT
Author: pmouawad
Date: Sun Dec  8 14:53:49 2013
New Revision: 1549033

URL: http://svn.apache.org/r1549033
Log:
Bug 55858 - Startup Performance : On Startup, BeanInfoSupport should test for key availability
instead of throwing 
Bugzilla Id: 55858

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/testbeans/BeanInfoSupport.java
    jmeter/trunk/xdocs/changes.xml

Modified: jmeter/trunk/src/core/org/apache/jmeter/testbeans/BeanInfoSupport.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/testbeans/BeanInfoSupport.java?rev=1549033&r1=1549032&r2=1549033&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/testbeans/BeanInfoSupport.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/testbeans/BeanInfoSupport.java Sun Dec  8 14:53:49
2013
@@ -132,15 +132,15 @@ public abstract class BeanInfoSupport ex
             PropertyDescriptor[] properties = getPropertyDescriptors();
             for (PropertyDescriptor property : properties) {
                 String name = property.getName();
-                try {
+                if(resourceBundle.containsKey(name + ".displayName")) {
                     property.setDisplayName(resourceBundle.getString(name + ".displayName"));
// $NON-NLS-1$
-                } catch (MissingResourceException e) {
+                } else {
                     log.debug("Localized display name not available for property " + name
+ " in " + beanClass);
                 }
-
-                try {
+                
+                if(resourceBundle.containsKey(name + ".shortDescription")) {
                     property.setShortDescription(resourceBundle.getString(name + ".shortDescription"));
-                } catch (MissingResourceException e) {
+                } else {
                     log.debug("Localized short description not available for property " +
name + " in " + beanClass);
                 }
             }

Modified: jmeter/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/xdocs/changes.xml?rev=1549033&r1=1549032&r2=1549033&view=diff
==============================================================================
--- jmeter/trunk/xdocs/changes.xml (original)
+++ jmeter/trunk/xdocs/changes.xml Sun Dec  8 14:53:49 2013
@@ -208,6 +208,7 @@ A workaround is to use a Java 7 update 4
 <li><bugzilla>55756</bugzilla> - HTTP Mirror Server : Add ability to set
Headers</li>
 <li><bugzilla>55852</bugzilla> - Be more lenient in parsing when charset
value is surrounded with single quotes</li>
 <li><bugzilla>55857</bugzilla> - Performance : AbstractProperty should
test for emptiness to avoid Exception throwing</li>
+<li><bugzilla>55858</bugzilla> - Startup Performance : On Startup, BeanInfoSupport
should test for key availability instead of throwing</li>
 </ul>
 
 <ch_section>Non-functional changes</ch_section>



Mime
View raw message