在Java 6中,以下行进行了编译,但是在Java 7中,我收到了不兼容的类型错误(请参见下文)。 有什么想法吗?

Player player = new FPlayer();
player.setId("SomeString");
player.setWId(123456, "SomeString");

Key<Player> keyForPlayer = ofy().save().entity(player).now();

获取编译时错误

incompatible types
required: com.googlecode.objectify.Key<com.XX.XXXXXX.XXXXX.XXXXXX.Player>
found:    com.googlecode.objectify.Key<java.lang.Object>

  ask by Usman Ismail translate from so

本文未有回复,本站智能推荐: