Monday, 10 October 2011

funniest deprecation in the Java API

All the Java guys might be aware the term Depricated in java or android programming.
From the definition of deprecated:
A program element annotated @Deprecated is one that programmers are discouraged from using, typically because it is dangerous, or because a better alternative exists.
The funniest deprecation in the Java API, is imo, the FontMetrics.getMaxDecent.
Reason for deprecation: Spelling error.
Deprecated. As of JDK version 1.1.1, replaced by getMaxDescent().

No comments:

Post a Comment

iOS Tutorial on Enumeration  So as we are talking about enumeration in iOS,the first thing comes into mind are Collections such as Array...