how to prevent deprecation warning of import?
Weijun Wang
weijun.wang at oracle.com
Mon Dec 5 05:19:23 PST 2011
The com.sun.security.auth.SolarisPrincipal is a deprecated class,
another class com.sun.security.auth.module.SolarisLoginModule
referencing it is also deprecated. Because of the "import
com.sun.security.auth.SolarisPrincipal" line in the latter class,
compiling it shows a warning. What is the best way to let it disappear?
The only solution I know is to remove the import line and always use the
full name.
Thanks
Max
More information about the compiler-dev
mailing list