type parameters of <T>T cannot be determined; no unique maximal instance exists for type variable T with upper bounds int,java.lang.Object

type parameters of <T>T cannot be determined; 
  no unique maximal instance exists for type variable T with 
  upper bounds int,java.lang.Object
错误解决方法,
经过查询 必应,
是因为使用类似下面的代码,maven编译不通过
public T getObject() { return get(OBJECT); }
,改为
public T getObject() {
        return (T)get(OBJECT); 
}
即可
原文地址:https://www.cnblogs.com/xiongjinpeng/p/3864867.html