在我们的项目构建期间,我们得到一个相当无法解释的警告:
[javac] (...)\SessionKeeper.java:39: warning: NEW is internal proprietary API and may be removed in a future release
[javac] private static final int timeOfInactivity = 1000 * 60 * 9; // allowed time of inactivity
[javac] ^
附加信息:
任何人都可以解释为什么编译器发出此警告,以及我应该改变什么以避免它?
[编辑]添加了附近的代码
private static final String CLASS_NAME = SessionKeeper.class.getName();
private static final int logoutDelaySeconds = 1000 * 60; // logout after 1 min. from the point when dialog was shown to the user
private static final int timeOfInactivity = 1000 …