diff options
Diffstat (limited to 'node-repository/src/main/java/com/yahoo/vespa/hosted/provision/applications/ScalingEvent.java')
-rw-r--r-- | node-repository/src/main/java/com/yahoo/vespa/hosted/provision/applications/ScalingEvent.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/applications/ScalingEvent.java b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/applications/ScalingEvent.java index e88989514c4..91270f14fbb 100644 --- a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/applications/ScalingEvent.java +++ b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/applications/ScalingEvent.java @@ -64,8 +64,7 @@ public class ScalingEvent { @Override public boolean equals(Object o) { if (o == this) return true; - if ( ! (o instanceof ScalingEvent)) return true; - ScalingEvent other = (ScalingEvent)o; + if ( ! (o instanceof ScalingEvent other)) return true; if ( other.generation != this.generation) return false; if ( ! other.at.equals(this.at)) return false; if ( ! other.from.equals(this.from)) return false; |