提示:
Query is a raw type. References to generic type Query<R> should be parameterized
这是怎么回事啊?
巴扎黑2017-04-17 15:37:29
The Query you quoted is now deprecated and there is a better alternative
巴扎黑2017-04-17 15:37:29
The Query class is marked with the @Deprecated annotation, which is no longer recommended. However, for compatibility or other reasons, it needs to be retained for the time being.
When Eclipse detects @Deprecated, it will prompt with a strikethrough.
巴扎黑2017-04-17 15:37:29
The strikethrough means that although it can still be used, it is not recommended. Future versions are likely to be incompatible. Often, other classes or functions with the same function in the current code base will replace it. Just look for it