IntelliJ says the following:

Unchecked cast: '' to 'javafx.css.StyleableProperty<java.lang.Boolean>'

*JDK 5.0 only.*
Signals places where an unchecked warning is issued by the compiler, for example:

|void f(HashMap map) {
      map.put("key", "value");

Perhaps the 'JDK 5.0 only' is significant? I honestly don't know....

-- Jonathan

On 29/04/2014 9:57 a.m., Tom Schindl wrote:

Interesting is that only the Eclipse Java Compiler shows a warning.
javac is fine with original code.

Let me see what the Eclipse compiler guys have to say about that!


On 28.04.14 23:33, Tom Schindl wrote:

I've been cleaning up the warnings inside the controls code base and one
of the warnings left (beside many generic problems in the *View-classes)
is the casting from *Property to *StyleableProperty.

final StyleableProperty<Boolean> prop = 
now I think I found a way to get away with out an unchecked cast warning
by writing

final StyleableProperty<Boolean> prop = 
Anyone having a better idea?


Reply via email to