HHH-2021 : reformat fix for fragile QueryKey.equals()

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@14630 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Gail Badner 2008-05-01 22:53:44 +00:00
parent df9816c570
commit 6bc9024e7c
1 changed files with 2 additions and 2 deletions

View File

@ -51,8 +51,8 @@ public class QueryKey implements Serializable {
} }
public boolean equals(Object other) { public boolean equals(Object other) {
if (!(other instanceof QueryKey)) return false; if (!(other instanceof QueryKey)) return false;
QueryKey that = (QueryKey) other; QueryKey that = (QueryKey) other;
if ( !sqlQueryString.equals(that.sqlQueryString) ) return false; if ( !sqlQueryString.equals(that.sqlQueryString) ) return false;
if ( !EqualsHelper.equals(firstRow, that.firstRow) || !EqualsHelper.equals(maxRows, that.maxRows) ) return false; if ( !EqualsHelper.equals(firstRow, that.firstRow) || !EqualsHelper.equals(maxRows, that.maxRows) ) return false;
if ( !EqualsHelper.equals(customTransformer, that.customTransformer) ) return false; if ( !EqualsHelper.equals(customTransformer, that.customTransformer) ) return false;