Unnecessary extends clause for interface extending nothing
Brought to you by:
marcelschoen
For interfaces extending nothing, e.g.
/**
* Blah Blah
*/
public interface Test {
}
The produced PDF file will contain a unnecessary empty
"extends" clause:
public interface Test
extends
Blah Blah
This even occurs in the examples1.pdf example file for
the interface com.other.IOneInterface
Logged In: YES
user_id=485290
Darn it... Just implemented "extends" for interfaces
extending other interfaces, but apparently introduced a new
bug with that. :-/ Thanx for pointing it out.
Gonna fix that in a bugfix release sometime during the next
few weeks.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
This is still a problem. Seems I'm unable to add attachments so I'll put it inline.
Index: doclet/src/main/java/com/tarsec/javadoc/pdfdoclet/Classes.java
--- doclet/src/main/java/com/tarsec/javadoc/pdfdoclet/Classes.java (revision 1.1)
+++ doclet/src/main/java/com/tarsec/javadoc/pdfdoclet/Classes.java (revision )
@@ -244,7 +244,7 @@
superClassOrInterface = new ClassDoc[] { classDoc.superclass() } ;
}
- if (superClassOrInterface != null) {
+ if (superClassOrInterface != null && superClassOrInterface.length != 0) {
Paragraph extendsPara = new Paragraph((float) 14.0);
extendsPara.add(new Chunk("extends ", Fonts.getFont(TIMES_ROMAN, 12)));
// Contrary to classes, interfaces DO support multiple inheritance,