From 0031ca9d82d88dea915f336f78e5d440a0a1eecd Mon Sep 17 00:00:00 2001 From: Tim Su Date: Fri, 15 May 2009 21:23:14 +0000 Subject: [PATCH] woe is me. Removed annotation, got the cast removed by save actions, and now it doesn't work. --- src/com/timsu/astrid/sync/Synchronizer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/timsu/astrid/sync/Synchronizer.java b/src/com/timsu/astrid/sync/Synchronizer.java index 1be0002a9..f3c41850f 100644 --- a/src/com/timsu/astrid/sync/Synchronizer.java +++ b/src/com/timsu/astrid/sync/Synchronizer.java @@ -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) {