So i am trying something out in java. (a forge minecraft mod). And when i compile, i keep getting this error:
error: incompatible types: inference variable E has incompatible bounds
return Lists.newArrayList((Object[])new String[] { "clickset" });
^
equality constraints: String
lower bounds: Object
where E is a type-variable:
E extends Object declared in method <E>newArrayList(E...)
The code is:
public List<String> getCommandAliases() {
return Lists.newArrayList((Object[])new String[] { "clickset" });
}