skuzzle/restrict-imports-enforcer-rule

Add support for fully qualified names for annotations

Closed this issue · 1 comments

yeikel commented

I understand that the goal of this library is to support imports exclusively, but would this request fall under this project or should I look for other solutions?

Example

 @com.couchbase.client.core.deps.com.google.common.annotations.VisibleForTesting
private DataAccessFactory() {
    

This only works if it is is imported explicitly.

import com.couchbase.client.core.deps.com.google.common.annotations.VisibleForTesting

Good find. This should be fairly easy to implement given that we already have support for full qualified class usage since #57
It is just a special case that is currently not covered.
I'll have a look into this tomorrow.

This would also be a good issue for a first contribution 😉