paul-hammant / qdox

QDox - full extractor of Java class/interface/method definitions (including annotations, parameters, param names)
Other
461 stars 67 forks source link

package-info.java are not parsed any more #205

Open stemlaur opened 9 months ago

stemlaur commented 9 months ago

Hello,

Kudos for the great library.

A regression occured in this commit 4a2f8adb95924ce11544385042c470fbc95ae998 (after version 2.0-M4). For the sake of improvement, it seems that a regression has been introduced.

See, in some of my projects, I used qdox to parse annotations on package-info.java to be able to extract comments of packages. For example:

package-info.java :

/**
 * This domain allows users to create anki decks.
 */
@DomainLayer(name = "Catalog")
package com.stemlaur.anki.domain.catalog;

import com.stemlaur.livingdocumentation.annotation.DomainLayer;

But since 2.0-M4, package-info classes have been excluded. Is there a workaround ?