Home  >  Q&A  >  body text

c++ - 为什么Eclipse提示Query类一个删除线?

提示:
Query is a raw type. References to generic type Query<R> should be parameterized

这是怎么回事啊?

PHP中文网PHP中文网2715 days ago662

reply all(4)I'll reply

  • 巴扎黑

    巴扎黑2017-04-17 15:37:29

    The Query you quoted is now deprecated and there is a better alternative

    reply
    0
  • 黄舟

    黄舟2017-04-17 15:37:29

    There are too many tags...

    reply
    0
  • 巴扎黑

    巴扎黑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.

    reply
    0
  • 巴扎黑

    巴扎黑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

    reply
    0
  • Cancelreply