Author: vyemialyanchyk
Date: 2009-04-10 10:57:27 -0400 (Fri, 10 Apr 2009)
New Revision: 14688
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/graph/layout/GraphXYLayout.java
Log:
JBIDE-4139 - fix - in case of ( constraint != null ) and !( constraint instanceof null
Rectangle) -> (Rectangle) constraint -> result the type casting error
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/graph/layout/GraphXYLayout.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/graph/layout/GraphXYLayout.java 2009-04-10
14:42:58 UTC (rev 14687)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/graph/layout/GraphXYLayout.java 2009-04-10
14:57:27 UTC (rev 14688)
@@ -47,7 +47,7 @@
public Object getConstraint(IFigure child) {
Object constraint = constraints.get( child );
- if ( constraint != null || constraint instanceof Rectangle ) {
+ if (constraint instanceof Rectangle) {
return (Rectangle) constraint;
}
else {