Skip to content
Snippets Groups Projects
Commit 420347df authored by kaloyane's avatar kaloyane
Browse files

code styling in openBIS (request from Franz-Josef): always use curly brackets,...

code styling in openBIS (request from Franz-Josef): always use curly brackets, even when the blocks contain a single statement

SVN: 19370
parent 830823a6
No related branches found
No related tags found
No related merge requests found
...@@ -83,24 +83,40 @@ public class TableModelRowWithObject<T extends ISerializable> extends TableModel ...@@ -83,24 +83,40 @@ public class TableModelRowWithObject<T extends ISerializable> extends TableModel
public boolean equals(Object obj) public boolean equals(Object obj)
{ {
if (this == obj) if (this == obj)
{
return true; return true;
}
if (obj == null) if (obj == null)
{
return false; return false;
if (!(obj instanceof TableModelRowWithObject)) }
if (false == (obj instanceof TableModelRowWithObject))
{
return false; return false;
}
TableModelRowWithObject<?> other = (TableModelRowWithObject<?>) obj; TableModelRowWithObject<?> other = (TableModelRowWithObject<?>) obj;
if (id == null) if (id == null)
{ {
if (other.id != null) if (other.id != null)
{
return false; return false;
} else if (!id.equals(other.id)) }
} else if (false == id.equals(other.id))
{
return false; return false;
}
if (objectOrNull == null) if (objectOrNull == null)
{ {
if (other.objectOrNull != null) if (other.objectOrNull != null)
{
return false; return false;
} else if (!objectOrNull.equals(other.objectOrNull)) }
} else if (false == objectOrNull.equals(other.objectOrNull))
{
return false; return false;
}
return true; return true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment