TinyTask
TinyTask copied to clipboard
Unchecked call warning
Hi,
The IDE throws warning unchecked call whenever I use TinyTask
Unchecked call to 'whenDone(DoThis<T>)' as a member of raw type 'inaka.com.tinytask.TinyTask'
TinyTask.perform(new Something<String>() { @Override public String whichDoes() throws Exception { return "some string"; } }).whenDone(new DoThis<String>() { @Override public void ifOK(String someString) { show(someString); } @Override public void ifNotOK(Exception e) { Log.e("TAG", "exception", e); } }).go();
I even tried adding Suppress Warning but it gives me an error that cannot add annotations here,
If I Do TinyTask<String>.perform again an error
I would be really helpful if you'll help. Warnings are annoying!