Update of /cvsroot/xdoclet/xdoclet2/src/java/xdoclet/sdk/ant
In directory sc8-pr-cvs1:/tmp/cvs-serv17897/src/java/xdoclet/sdk/ant
Modified Files:
AntUtil.java
Log Message:
Removed a lot throws XDocletException. If the exception is never thrown, why declare
it.
Index: AntUtil.java
===================================================================
RCS file: /cvsroot/xdoclet/xdoclet2/src/java/xdoclet/sdk/ant/AntUtil.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** AntUtil.java 5 Mar 2003 22:27:10 -0000 1.3
--- AntUtil.java 9 Mar 2003 15:49:07 -0000 1.4
***************
*** 59,66 ****
* @param clazz
* @return the task name
- * @exception XDocletException
*/
! public final static String getTaskName(XClass clazz)
! throws XDocletException {
String tagValue = clazz.getDoc().getTagAttributeValue("ant.task", "name");
--- 59,64 ----
* @param clazz
* @return the task name
*/
! public final static String getTaskName(XClass clazz) {
String tagValue = clazz.getDoc().getTagAttributeValue("ant.task", "name");
***************
*** 84,91 ****
* @param clazz
* @return the task category name
- * @exception XDocletException
*/
! public final static String getCategoryName(XClass clazz)
! throws XDocletException {
String tagValue = clazz.getDoc().getTagAttributeValue("ant.task",
"category");
--- 82,87 ----
* @param clazz
* @return the task category name
*/
! public final static String getCategoryName(XClass clazz) {
String tagValue = clazz.getDoc().getTagAttributeValue("ant.task",
"category");
***************
*** 447,454 ****
* @param cur_class
* @return
- * @exception XDocletException
*/
! private XMethod[] getMethods(XClass cur_class)
! throws XDocletException {
Map already = new HashMap();
--- 443,448 ----
* @param cur_class
* @return
*/
! private XMethod[] getMethods(XClass cur_class) {
Map already = new HashMap();
***************
*** 543,553 ****
* @param method
* @return
- * @exception XDocletException
*/
! private boolean shouldIgnore(XMethod method)
! throws XDocletException {
String value = method.getDoc().getTagAttributeValue("ant.attribute",
"ignore");
! if ("true".equals(value)) {
return true;
}
--- 537,545 ----
* @param method
* @return
*/
! private boolean shouldIgnore(XMethod method) {
String value = method.getDoc().getTagAttributeValue("ant.attribute",
"ignore");
! if ("true".equalsIgnoreCase(value)) {
return true;
}
***************
*** 555,559 ****
value = method.getDoc().getTagAttributeValue("ant.element", "ignore");
! if ("true".equals(value)) {
return true;
}
--- 547,551 ----
value = method.getDoc().getTagAttributeValue("ant.element", "ignore");
! if ("true".equalsIgnoreCase(value)) {
return true;
}
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
for complex code. Debugging C/C++ programs can leave you feeling lost and
disoriented. TotalView can help you find your way. Available on major UNIX
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel