mrglavas 2004/12/03 07:50:44
Modified: java/src/org/apache/xerces/impl/xs/util
XSObjectListImpl.java
Log:
Final field "DEFAULT_SIZE" is initialized with a constant expression.
Making this static to save some memory per instance of this class.
Revision Changes Path
1.11 +3 -3
xml-xerces/java/src/org/apache/xerces/impl/xs/util/XSObjectListImpl.java
Index: XSObjectListImpl.java
===================================================================
RCS file:
/home/cvs/xml-xerces/java/src/org/apache/xerces/impl/xs/util/XSObjectListImpl.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- XSObjectListImpl.java 6 Oct 2004 15:14:50 -0000 1.10
+++ XSObjectListImpl.java 3 Dec 2004 15:50:44 -0000 1.11
@@ -42,7 +42,7 @@
}
};
- private final int DEFAULT_SIZE = 4;
+ private static final int DEFAULT_SIZE = 4;
// The array to hold all data
private XSObject[] fArray = null;
@@ -51,7 +51,7 @@
- public XSObjectListImpl(){
+ public XSObjectListImpl() {
fArray = new XSObject[DEFAULT_SIZE];
fLength = 0;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]