我正在使用最新版本的 Play! 构建应用程序。在定义 Finder(如 Model.Finder 中)时,我的 IDE 会给我一条警告,Finder is deprecated。我在文档中找不到任何关于 Model.Finder 被弃用的任何替代使用它的信息。有没有人遇到过类似的问题并且知道替代方案?
最佳答案
使用 Model.Finder<T>
喜欢:
public static Finder<Long, Foo> find = new Finder<>(Foo.class);
代替
public static Finder<Long, Foo> find = new Finder<>(Long.class, Foo.class);
关于java - Model.Finder<I, T> 弃用游戏! 2.4,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30761606/