woe is me. Removed annotation, got the cast removed by save actions, and now it doesn't work.

pull/14/head
Tim Su 17 years ago
parent 191846caf8
commit 0031ca9d82

@ -212,11 +212,11 @@ public class Synchronizer {
typeClass = cls; typeClass = cls;
} }
public TYPE get(Context context) { @SuppressWarnings("unchecked")
public TYPE get(Context context) {
if(controller == null) { if(controller == null) {
try { try {
controller = typeClass.getConstructors()[0].newInstance( controller = (TYPE)typeClass.getConstructors()[0].newInstance(context);
context);
} catch (IllegalArgumentException e) { } catch (IllegalArgumentException e) {
Log.e(getClass().getSimpleName(), e.toString()); Log.e(getClass().getSimpleName(), e.toString());
} catch (SecurityException e) { } catch (SecurityException e) {

Loading…
Cancel
Save