Author: mdryakhlenkov
Date: 2007-10-04 07:12:05 -0400 (Thu, 04 Oct 2007)
New Revision: 3996
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/views/ObjectEditorInput.java
Log:
Code style correction
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/views/ObjectEditorInput.java
===================================================================
---
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/views/ObjectEditorInput.java 2007-10-04
08:54:14 UTC (rev 3995)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/views/ObjectEditorInput.java 2007-10-04
11:12:05 UTC (rev 3996)
@@ -14,7 +14,6 @@
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IPersistableElement;
-import org.hibernate.cfg.Configuration;
import org.hibernate.console.ConsoleConfiguration;
@@ -77,10 +76,6 @@
}
public boolean equals(Object obj) {
- if (obj instanceof ObjectEditorInput && ((ObjectEditorInput)obj).fObject ==
fObject) {
- return true;
- } else {
- return false;
- }
+ return (obj instanceof ObjectEditorInput && ((ObjectEditorInput)obj).fObject ==
fObject);
}
}
Show replies by date