Test for JDK-5108778 Too many instances of java.lang.Boolean created in Java application (original) (raw)
Stuart Marks stuart.marks at oracle.com
Thu Oct 8 19:05:58 UTC 2015
- Previous message: Test for JDK-5108778 Too many instances of java.lang.Boolean created in Java application
- Next message: RFR 9: 8138963 : java.lang.Objects new method to default to non-null
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 10/6/15 11:51 PM, Dawid Weiss wrote:
A @Discouraged(String seeAlternative) annotation? This also applies to things like Vector or Hashtable (which arguably have a slightly different semantics from ArrayList or HashMap, but if somebody uses them it's very likely a mistake).
Yes, something like this, although it might be spelled differently. It would be applied not only to Vector and Hashtable, but also things like Dictionary and Stack. (Remember them?)
s'marks
- Previous message: Test for JDK-5108778 Too many instances of java.lang.Boolean created in Java application
- Next message: RFR 9: 8138963 : java.lang.Objects new method to default to non-null
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]