mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 16:35:45 +01:00
added path to hashCode generation of changeset cache key
This commit is contained in:
@@ -389,9 +389,7 @@ public class ChangesetViewerUtil extends PartCacheClearHook
|
|||||||
|
|
||||||
final ChangesetViewerCacheKey other = (ChangesetViewerCacheKey) obj;
|
final ChangesetViewerCacheKey other = (ChangesetViewerCacheKey) obj;
|
||||||
|
|
||||||
if ((this.repository == null)
|
if (this.max != other.max)
|
||||||
? (other.repository != null)
|
|
||||||
: !this.repository.equals(other.repository))
|
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -403,12 +401,14 @@ public class ChangesetViewerUtil extends PartCacheClearHook
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.start != other.start)
|
if ((this.repository == null)
|
||||||
|
? (other.repository != null)
|
||||||
|
: !this.repository.equals(other.repository))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.max != other.max)
|
if (this.start != other.start)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -425,13 +425,16 @@ public class ChangesetViewerUtil extends PartCacheClearHook
|
|||||||
@Override
|
@Override
|
||||||
public int hashCode()
|
public int hashCode()
|
||||||
{
|
{
|
||||||
int hash = 3;
|
int hash = 7;
|
||||||
|
|
||||||
hash = 67 * hash + ((this.repository != null)
|
hash = 89 * hash + this.max;
|
||||||
|
hash = 89 * hash + ((this.path != null)
|
||||||
|
? this.path.hashCode()
|
||||||
|
: 0);
|
||||||
|
hash = 89 * hash + ((this.repository != null)
|
||||||
? this.repository.hashCode()
|
? this.repository.hashCode()
|
||||||
: 0);
|
: 0);
|
||||||
hash = 67 * hash + this.start;
|
hash = 89 * hash + this.start;
|
||||||
hash = 67 * hash + this.max;
|
|
||||||
|
|
||||||
return hash;
|
return hash;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user