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;
}
public TYPE get(Context context) {
@SuppressWarnings("unchecked")
public TYPE get(Context context) {
if(controller == null) {
try {
controller = typeClass.getConstructors()[0].newInstance(
context);
controller = (TYPE)typeClass.getConstructors()[0].newInstance(context);
} catch (IllegalArgumentException e) {
Log.e(getClass().getSimpleName(), e.toString());
} catch (SecurityException e) {

Loading…
Cancel
Save