FroMage / jax-doclets

Set of JavaDoc doclets for modern Java annotations APIs
http://www.lunatech-labs.com/open-source/jax-doclets
GNU Lesser General Public License v3.0
26 stars 23 forks source link

java.util.Collection not recognized as collection #42

Closed mwinkels closed 12 years ago

mwinkels commented 12 years ago

A bean with a property of type java.util.Collection is not recognized as a collection.

mwinkels commented 12 years ago

This is a patch for this issue:

From 81cb708d2af5164c7faf4c55d7e4fae81f7a7d68 Mon Sep 17 00:00:00 2001 From: Maarten Winkels maarten.winkels@ing.nl 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;

+import java.util.Collection; import java.util.Date; import java.util.List;

@@ -78,4 +79,14 @@ public class ClassExample { this.integerList = integerList; }

FroMage commented 12 years ago

Thanks. Could you do a pull request for this please?

FroMage commented 12 years ago

Sorry you already did, thanks a lot :)