Hi,
Yes if i turn on this unnecessary type cast warning in Eclipse I get
that as well.
Currently the only solution to get around with ANY warning suppression I
found is to use an intermediate variable.
Tom
On 28.04.14 23:57, Jonathan Giles wrote:
> This seems to look fine - IntelliJ still compl
I agree with David. Let's go that way and see where things end up.
As always, thanks Tom for being relentless in pushing this forward.
-- Jonathan
On 2/05/2014 1:27 p.m., David Grieve wrote:
I don't have a strong opinion, other than a preference for having it
done one way in all cases. So it s
I don't have a strong opinion, other than a preference for having it
done one way in all cases. So it seems
(StyleableProperty)(WritableValue) would be the way to go.
On 5/1/14, 12:25 PM, Tom Schindl wrote:
Hi Jonathan & David,
do you have any opinion on this? I would spend some time tomorrow
Hi Jonathan & David,
do you have any opinion on this? I would spend some time tomorrow to
bring down the warning count.
Maybe we should use the Styleable*Property cast when we control both the
API & implementation and reside to the more save
(StyleableProperty)(WritableValue) e.g. if we don't
e.g
Hi,
On 29.04.14 14:35, David Grieve wrote:
> I've found that this works:
>
> final StyleableBooleanProperty prop =
> (StyleableBooleanProperty)focusTraversableProperty();
>
Right i can confirm that.
The problem is that we are then relying even more on the fact the
upstream code does not ch
Hi,
According to Eclipse Compiler people we probably found a bug in javac.
They cited the following paragraph from the spec:
> "A cast from a type S to a parameterized type (§4.5) T is unchecked
>unless at least one of the following is true:
>* S <: T
>* All of the type arguments (§
I've found that this works:
final StyleableBooleanProperty prop =
(StyleableBooleanProperty)focusTraversableProperty();
But I don't know if that will work in every case.
On 4/28/14, 5:33 PM, Tom Schindl wrote:
Hi,
I've been cleaning up the warnings inside the controls code base and one
IntelliJ says the following:
=
Unchecked cast: 'javafx.beans.property.BooleanProperty' to
'javafx.css.StyleableProperty'
*JDK 5.0 only.*
Signals places where an unchecked warning is issued by the compiler, for
example:
|void f(HashMap map) {
map.put("key", "val
This seems to look fine - IntelliJ still complains about an unnecessary
cast, but it is better than having an unchecked cast.
I'm happy for this to be done, but I think it would be best to get David
Grieve's +1 first too.
Thanks for your help so far - it is making the JavaFX code base much
n
Hi,
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!
Tom
On 28.04.14 23:33, Tom Schindl wrote:
> Hi,
>
> I've been cleaning up the warnings inside the controls code base and o
Hi,
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 prop =
> (StyleableProperty)focusTraversableProperty();
now I thin
11 matches
Mail list logo