Add @SuppressWarnings(“unchecked”) in generics to single line generates eclipse compiler error
You can’t have annotation on arbitrary expressions (yet? Maybe they’ll add it later on). You can however have annotations on local variable declarations. So what the compiler tries to do here is to interpret returnValue as a type (as that’s the only thing that can follow an annotation inside a method body) and fails. Putting … Read more