yellowstonegames / SquidLib

Useful tools for roguelike, role-playing, strategy, and other grid-based games in Java. Feedback is welcome!
Other
448 stars 46 forks source link

TextPanel giving incompatible type error #174

Closed SquidPony closed 7 years ago

SquidPony commented 7 years ago

line 296 (the second shown here)

public void init(float width, float maxHeight, Collection<? extends IColoredString<T>> text) { this.text = new ArrayList<>(text);

is giving the following error in NetBeans

incompatible types: ArrayList<CAP#1> cannot be converted to List<IColoredString> where T is a type-variable: T extends Color declared in class TextPanel where CAP#1 is a fresh type-variable: CAP#1 extends IColoredString from capture of ? extends IColoredString

Not sure if that's a NetBeans only thing or a real error though

SquidPony commented 7 years ago

this error does not seem to stop it from building, so I'm guessing it's a NetBeans thing

SquidPony commented 7 years ago

fixed by commit e635c45