vmassol 2003/03/19 04:26:22
Modified: integration/ant/src/java/org/apache/cactus/integration/ant/webxml
WebXml.java
integration/ant/src/java/org/apache/cactus/integration/ant
WebXmlMergeTask.java
Log:
Explicitely declare runtime exceptions that we want to document.
Revision Changes Path
1.14 +2 -0
jakarta-cactus/integration/ant/src/java/org/apache/cactus/integration/ant/webxml/WebXml.java
Index: WebXml.java
===================================================================
RCS file:
/home/cvs/jakarta-cactus/integration/ant/src/java/org/apache/cactus/integration/ant/webxml/WebXml.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- WebXml.java 19 Mar 2003 12:07:42 -0000 1.13
+++ WebXml.java 19 Mar 2003 12:26:22 -0000 1.14
@@ -657,8 +657,10 @@
*
* @param theElement The element to check
* @param theExpectedTag The expected tag name
+ * @throws IllegalArgumentException If the element name doesn't match
*/
private void checkElement(Element theElement, WebXmlTag theExpectedTag)
+ throws IllegalArgumentException
{
if (!theExpectedTag.getTagName().equals(theElement.getNodeName()))
{
1.9 +2 -0
jakarta-cactus/integration/ant/src/java/org/apache/cactus/integration/ant/WebXmlMergeTask.java
Index: WebXmlMergeTask.java
===================================================================
RCS file:
/home/cvs/jakarta-cactus/integration/ant/src/java/org/apache/cactus/integration/ant/WebXmlMergeTask.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- WebXmlMergeTask.java 19 Mar 2003 12:07:42 -0000 1.8
+++ WebXmlMergeTask.java 19 Mar 2003 12:26:22 -0000 1.9
@@ -300,8 +300,10 @@
*
* @param theSrcWebXml The original descriptor
* @param theMergeWebXml The descriptor to merge in
+ * @throws BuildException If the operation fails
*/
private void merge(WebXml theSrcWebXml, WebXml theMergeWebXml)
+ throws BuildException
{
WebXmlMerger merger = new WebXmlMerger(theSrcWebXml);
if (WebXml.SERVLET_VERSION_2_3.equals(theSrcWebXml.getVersion()))
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]