Hi Christoph,
On 28/07/16 16:05, Langer, Christoph wrote:
Looks good in general, even though the idiom
> if (existing instanceof Stack<?>)
> caught my eye.
I didn't like it either but found no better way to get rid of the warnings. If
you have a better idea here, let me know :)
The following code:
static class Foo<T> {
T get() { return null; }
}
public static void main(String[] args) throws Exception {
Foo<LogRecord> x = new Foo<>();
if (x instanceof Foo) {
System.out.println("ah");
}
}
doesn't generate any warning when compiled with javac -Xlint:all
cheers,
-- daniel