Giter Club home page Giter Club logo

Comments (3)

mwinkels avatar mwinkels commented on August 29, 2024

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))
  •  return type;
    
    if (doc.isInterface())
    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.

FroMage avatar FroMage commented on August 29, 2024

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

from jax-doclets.

FroMage avatar FroMage commented on August 29, 2024

Sorry you already did, thanks a lot :)

from jax-doclets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.