cvs commit: spice/sandbox/repository/componenthaus/src/java/org/componenthaus/ant ClassAbbreviatorImpl.java
Mike Hogan <[email protected]> Sun, 09 Nov 2003 08:21:38 -0800
| Newsgroups | gmane.comp.java.spice.cvs |
|---|---|
| Message-ID | <[email protected]> |
hogie 03/11/09 08:21:38
Modified: sandbox/repository/componenthaus/src/java/org/componenthaus/ant
ClassAbbreviatorImpl.java
Log:
Can now submit most of plexus-utils
Revision Changes Path
1.2 +3 -1 spice/sandbox/repository/componenthaus/src/java/org/componenthaus/ant/ClassAbbreviatorImpl.java
Index: ClassAbbreviatorImpl.java
===================================================================
RCS file: /cvsroot/spice/spice/sandbox/repository/componenthaus/src/java/org/componenthaus/ant/ClassAbbreviatorImpl.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ClassAbbreviatorImpl.java 9 Nov 2003 14:00:46 -0000 1.1
+++ ClassAbbreviatorImpl.java 9 Nov 2003 16:21:38 -0000 1.2
@@ -37,7 +37,7 @@
JavaMethod[] methods = aClass.getMethods();
for (int i = 0; i < methods.length; i++) {
JavaMethod method = methods[i];
- if (method.isPublic()) {
+ if (method.isPublic() && !method.isConstructor()) {
if (publicMethodCount > 0) {
bodyCollector.append("\n");
}
@@ -88,6 +88,7 @@
}
result.append("\t");
appendModifiers(method, result);
+ System.out.println("Working on method " + method.getName());
result.append(getType(method.getReturns(), importsCollector)).append(" ");
result.append(method.getName()).append("(");
result.append(createParameterListText(method, importsCollector));
@@ -140,6 +141,7 @@
}
private String getType(Type type, Collection importsCollector) {
+ assert type != null;
final String fullTypeName = type.getValue();
String result = fullTypeName;
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/