Comments (3)
This is a patch for this issue:
From 81cb708d2af5164c7faf4c55d7e4fae81f7a7d68 Mon Sep 17 00:00:00 2001
From: Maarten Winkels [email protected]
Date: Fri, 13 Jul 2012 14:49:10 +0200
Subject: [PATCH] Fix for issue #42: recognize java.util.Collection as
Collection.
.../main/java/com/lunatech/doclets/jax/Utils.java | 2 ++
.../doclets/jax/jaxb/testcase/ClassExample.java | 11 +++++++++++
2 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/doclets/src/main/java/com/lunatech/doclets/jax/Utils.java b/doclets/src/main/java/com/lunatech/doclets/jax/Utils.java
index 7ba58ab..61f38a8 100644
--- a/doclets/src/main/java/com/lunatech/doclets/jax/Utils.java
+++ b/doclets/src/main/java/com/lunatech/doclets/jax/Utils.java
@@ -232,6 +232,8 @@ public class Utils {
ClassDoc doc = type.asClassDoc();
if (doc == null)
return null;
- if (doc.qualifiedTypeName().equals(typeName))
-
if (doc.isInterface())
return type;
return findSuperTypeFromInterface(doc, typeName);
if (doc.isClass() && !doc.isEnum() && !doc.isError() && !doc.isException())
diff --git a/doclets/src/test/java/com/lunatech/doclets/jax/jaxb/testcase/ClassExample.java b/doclets/src/test/java/com/lunatech/doclets/jax/jaxb/testcase/ClassExample.java
index 7e656f0..4d6f63d 100644
--- a/doclets/src/test/java/com/lunatech/doclets/jax/jaxb/testcase/ClassExample.java
+++ b/doclets/src/test/java/com/lunatech/doclets/jax/jaxb/testcase/ClassExample.java
@@ -1,5 +1,6 @@
package com.lunatech.doclets.jax.jaxb.testcase;
+import java.util.Collection;
import java.util.Date;
import java.util.List;
@@ -78,4 +79,14 @@ public class ClassExample {
this.integerList = integerList;
}
- @xmlelement
- private Collection stringCollection;
- public Collection getStringCollection() {
- return stringCollection;
- }
- public void setStringCollection(Collection stringCollection) {
- this.stringCollection = stringCollection;
- }
}
--
1.7.8.msysgit.0
from jax-doclets.
Thanks. Could you do a pull request for this please?
from jax-doclets.
Sorry you already did, thanks a lot :)
from jax-doclets.
Related Issues (20)
- FileNotFoundException: /doclet.css (Permission denied) HOT 1
- attributes rendered in json with leading @ HOT 2
- Need way to disable top menu items HOT 1
- @XmlAccessorType in package-info ignored HOT 3
- Parser/ docs do not recurse into @Form tags HOT 6
- Ability to use doclet for project without any related javadocs. HOT 12
- Support for @ApplicationPath in JAX-RS doclet HOT 1
- Cosmetic: Invalid @Override tags in source code
- @returnWrapped javadoc tag leads to NPE
- NoSuchElementException in JAX-RS doclet HOT 1
- Does not include description on the top of service HOT 1
- Add doclet for JAX-WS HOT 4
- java.lang.RuntimeException: java.io.FileNotFoundException HOT 1
- Ignore one or many method parameters from a JAXRS resources
- Java 8 compatibility HOT 22
- Release 0.10.1 HOT 4
- example for how to generate jax-rs doc with jaxb links HOT 4
- NoSuchMethodError: com.sun.tools.doclets.formats.html.HtmlDocletWriter HOT 1
- Support for @RequiredRequestHeader or similar HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jax-doclets.