Suppress javac warning “…is internal proprietary API and may be removed in a future release”

前端 未结 7 1910
悲哀的现实
悲哀的现实 2020-11-30 08:09

When I compile the Spring JDBC source on OS X with JDK 1.7.0, I get this warning:

warning: CachedRowSetImpl is internal proprietary API and may be removed in         


        
7条回答
  •  渐次进展
    2020-11-30 08:56

    Try the javac option

    -Xlint:none
    

    If you compile from an IDE, it should have an option to disable warnings.

    This will disable ALL warnings that are not a part of Java Language Specification. So for example "unchecked" warning will not be blocked.

提交回复
热议问题