gaul/modernizer-maven-plugin

No violation for Dictionary, Enumeration, and Stack

Opened this issue · 5 comments

Why is use of java.util.Stack not a violation, but java.util.Vector is?

gaul commented

Seems like an oversight. Please investigate and submit a PR.

I've done Stack, but need to add Dictionary (Map) and Enumeration (Iterator).
Properties are also consider legacy API, but there's no suggested alternative (although there's the Preferences API)

gaul commented

I think Dictionary and Enumeration would make good additions athough they are rarely used. I am not sure about Properties since I have never used Preferences but the former is baked into a lot of simple configuration uses, including S3Proxy.

gaul commented

Dictionary and Enumeration are abstract classes so we would need to generate violations for subclasses. @delanym do you have a more specific feature request?

My interest in this is contingent on removing their usage from my own code, which is proving difficult at the moment. But I should get to it this year