TinyTask icon indicating copy to clipboard operation
TinyTask copied to clipboard

Unchecked call warning

Open monis0395 opened this issue 7 years ago • 0 comments

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!

monis0395 avatar Mar 11 '18 14:03 monis0395