@SuppressWarnings("deprecation")
public class FontMetricsDumper
{
- @SuppressForbidden
+ @SuppressForbidden("command line tool")
public static void main( String[] args ) throws IOException
{
\r
private static final ThreadLocal<TimeZone> userTimeZone = new ThreadLocal<TimeZone>() {\r
@Override\r
- @SuppressForbidden\r
+ @SuppressForbidden("implementation around default locales in POI")\r
protected TimeZone initialValue() {\r
return TimeZone.getDefault();\r
}\r
\r
private static final ThreadLocal<Locale> userLocale = new ThreadLocal<Locale>() {\r
@Override\r
- @SuppressForbidden\r
+ @SuppressForbidden("implementation around default locales in POI")\r
protected Locale initialValue() {\r
return Locale.getDefault();\r
}\r
import java.lang.annotation.RetentionPolicy;\r
import java.lang.annotation.Target;\r
\r
-/*\r
+/**\r
* Marking class for elements to be ignored by the forbidden apis check\r
*/\r
@Retention(RetentionPolicy.CLASS)\r
@Target({ElementType.METHOD, ElementType.TYPE})\r
public @interface SuppressForbidden {\r
-\r
+ /** A reason for suppressing should always be given. */\r
+ String value() default "";\r
}\r