Update of
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-qtags/src/main/java/org/xdoclet/plugin/qtags
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15341/plugin-qtags/src/main/java/org/xdoclet/plugin/qtags
Modified Files:
QTagUtils.java
Log Message:
b = b && c better than b &= c
first can have lazy evaluation
Index: QTagUtils.java
===================================================================
RCS file:
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-qtags/src/main/java/org/xdoclet/plugin/qtags/QTagUtils.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** QTagUtils.java 21 Aug 2005 13:44:29 -0000 1.12
--- QTagUtils.java 13 Dec 2005 03:52:56 -0000 1.13
***************
*** 183,195 ****
JavaMethod method = (JavaMethod) object;
Type returnType = method.getReturns();
- boolean retVal = true;
String parent =
method.getParentClass().getFullyQualifiedName();
! retVal &= method.isPropertyAccessor();
! retVal &= !(parent.equals(Object.class.getName()));
! retVal &= !(parent.equals(DocletTag.class.getName()));
! retVal &=
acceptedTypes.containsKey(returnType.getValue());
// Let's check the dimensions
// zero or one dimension is allowed
! retVal &= returnType.getDimensions() <= 1;
return retVal;
--- 183,194 ----
JavaMethod method = (JavaMethod) object;
Type returnType = method.getReturns();
String parent =
method.getParentClass().getFullyQualifiedName();
! boolean retVal = method.isPropertyAccessor();
! retVal = retVal && !parent.equals(Object.class.getName());
! retVal = retVal &&
!parent.equals(DocletTag.class.getName());
! retVal = retVal &&
acceptedTypes.containsKey(returnType.getValue());
// Let's check the dimensions
// zero or one dimension is allowed
! retVal = retVal && (returnType.getDimensions() <= 1);
return retVal;
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
xdoclet-plugins-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-commits