Revision: 3256
Author: thomasobrien95
Date: Thu Jan 28 12:23:55 2010
Log: Small cleanup for the profile result.
http://code.google.com/p/power-architect/source/detail?r=3256

Modified:
 /trunk/src/ca/sqlpower/architect/profile/AbstractProfileResult.java

=======================================
--- /trunk/src/ca/sqlpower/architect/profile/AbstractProfileResult.java Mon Jan 18 11:01:49 2010 +++ /trunk/src/ca/sqlpower/architect/profile/AbstractProfileResult.java Thu Jan 28 12:23:55 2010
@@ -26,6 +26,7 @@
 import ca.sqlpower.architect.profile.event.ProfileResultEvent;
 import ca.sqlpower.architect.profile.event.ProfileResultListener;
 import ca.sqlpower.object.AbstractSPObject;
+import ca.sqlpower.object.ObjectDependentException;
 import ca.sqlpower.object.SPObject;
 import ca.sqlpower.object.SPObjectUtils;
 import ca.sqlpower.sqlobject.SQLCatalog;
@@ -50,7 +51,7 @@

private static final Logger logger = Logger.getLogger(AbstractProfileResult.class);

-    private T profiledObject;
+    private final T profiledObject;
     private long createEndTime = -1L;
     private long createStartTime = -1L;
     private Exception ex;
@@ -312,7 +313,7 @@
         if (dependency == getDependencies().get(0)) {
             try {
                 getParent().removeChild(this);
-            } catch (Exception e) {
+            } catch (ObjectDependentException e) {
                 throw new RuntimeException(e);
             }
         } else {

Reply via email to