harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aiva...@apache.org
Subject svn commit: r568576 - /harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/undo/UndoManager.java
Date Wed, 22 Aug 2007 11:59:37 GMT
Author: aivanov
Date: Wed Aug 22 04:59:36 2007
New Revision: 568576

URL: http://svn.apache.org/viewvc?rev=568576&view=rev
Log:
Using the declared static final field rather than hard-coded value (modification to the fix
of HARMONY-2649).

Modified:
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/undo/UndoManager.java

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/undo/UndoManager.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/undo/UndoManager.java?rev=568576&r1=568575&r2=568576&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/undo/UndoManager.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/undo/UndoManager.java
Wed Aug 22 04:59:36 2007
@@ -49,7 +49,7 @@
     public UndoManager() {
         indexOfNextAdd = 0;
         limit          = DEFAULT_LIMIT;
-        edits.ensureCapacity(100);
+        edits.ensureCapacity(DEFAULT_LIMIT);
     }
 
     @Override



Mime
View raw message