Commits

Anonymous committed 3e63a65

initial size of arraylist set to 1 as only one object was added

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@951e221344d-f017-0410-9bd5-d282ab1896d7

Comments (0)

Files changed (1)

src/java/com/opensymphony/xwork/DefaultTextProvider.java

 
 
     public String getText(String key, String defaultValue, String obj) {
-        List args = new ArrayList();
+        List args = new ArrayList(1);
         args.add(obj);
         return getText(key, defaultValue, args);
     }