diff options
author | Peter Reilly <peterreilly@apache.org> | 2006-11-15 00:13:36 +0000 |
---|---|---|
committer | Peter Reilly <peterreilly@apache.org> | 2006-11-15 00:13:36 +0000 |
commit | 4b62dd00017c5be577d5e8cd4615e691e207bf8b (patch) | |
tree | 6b52781bc06e2ca2794ba27ebfd083392b353105 /src/main/org/apache/tools/ant/taskdefs/optional/ejb/DescriptorHandler.java | |
parent | 8fd0e11a374f6159c6bf12ce14d7ec28ac9e9fec (diff) | |
download | ant-4b62dd00017c5be577d5e8cd4615e691e207bf8b.tar.gz |
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@475080 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/main/org/apache/tools/ant/taskdefs/optional/ejb/DescriptorHandler.java')
-rw-r--r-- | src/main/org/apache/tools/ant/taskdefs/optional/ejb/DescriptorHandler.java | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/ejb/DescriptorHandler.java b/src/main/org/apache/tools/ant/taskdefs/optional/ejb/DescriptorHandler.java index 9e1ebac75..e8392605b 100644 --- a/src/main/org/apache/tools/ant/taskdefs/optional/ejb/DescriptorHandler.java +++ b/src/main/org/apache/tools/ant/taskdefs/optional/ejb/DescriptorHandler.java @@ -40,6 +40,7 @@ import org.xml.sax.SAXException; * list can then be accessed through the getFiles() method. */ public class DescriptorHandler extends org.xml.sax.HandlerBase { + private static final int DEFAULT_HASH_TABLE_SIZE = 10; private static final int STATE_LOOKING_EJBJAR = 1; private static final int STATE_IN_EJBJAR = 2; private static final int STATE_IN_BEANS = 3; @@ -171,7 +172,16 @@ public class DescriptorHandler extends org.xml.sax.HandlerBase { } - /** @see org.xml.sax.EntityResolver#resolveEntity(String, String) */ + /** + * Resolve the entity. + * @see org.xml.sax.EntityResolver#resolveEntity(String, String). + * @param publicId The public identifier, or <code>null</code> + * if none is available. + * @param systemId The system identifier provided in the XML + * document. Will not be <code>null</code>. + * @return an inputsource for this identifier + * @throws SAXException if there is a problem. + */ public InputSource resolveEntity(String publicId, String systemId) throws SAXException { this.publicId = publicId; @@ -245,7 +255,7 @@ public class DescriptorHandler extends org.xml.sax.HandlerBase { * @throws SAXException on error */ public void startDocument() throws SAXException { - this.ejbFiles = new Hashtable(10, 1); + this.ejbFiles = new Hashtable(DEFAULT_HASH_TABLE_SIZE, 1); this.currentElement = null; inEJBRef = false; } |