小编Alb*_*ros的帖子

NEW是内部专有API

在我们的项目构建期间,我们得到一个相当无法解释的警告:

    [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]                                ^

附加信息:

  • Apache Ant(TM)版本1.8.4于2012年5月22日编译
  • Java(TM)SE运行时环境(版本1.7.0_25-b16)

任何人都可以解释为什么编译器发出此警告,以及我应该改变什么以避免它?

[编辑]添加了附近的代码

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 …

java compiler-warnings

7
推荐指数
1
解决办法
3494
查看次数

标签 统计

compiler-warnings ×1

java ×1