Skip to content

Commit

Permalink
Merge pull request #30399 from apatrida/fix/30384-esdev-services
Browse files Browse the repository at this point in the history
Fix ElasticSearch Dev Services container restart
  • Loading branch information
yrodiere authored Jan 18, 2023
2 parents 00dc818 + aa11333 commit 3d5cff7
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.quarkus.elasticsearch.restclient.common.deployment;

import java.util.Objects;
import java.util.Optional;

import io.quarkus.runtime.annotations.ConfigItem;
Expand Down Expand Up @@ -65,4 +66,24 @@ public class ElasticsearchDevServicesBuildTimeConfig {
*/
@ConfigItem(defaultValue = "elasticsearch")
public String serviceName;

@Override
public boolean equals(Object o) {
if (this == o)
return true;
if (o == null || getClass() != o.getClass())
return false;
ElasticsearchDevServicesBuildTimeConfig that = (ElasticsearchDevServicesBuildTimeConfig) o;
return Objects.equals(shared, that.shared)
&& Objects.equals(enabled, that.enabled)
&& Objects.equals(port, that.port)
&& Objects.equals(imageName, that.imageName)
&& Objects.equals(javaOpts, that.javaOpts)
&& Objects.equals(serviceName, that.serviceName);
}

@Override
public int hashCode() {
return Objects.hash(enabled, port, imageName, javaOpts, shared, serviceName);
}
}

0 comments on commit 3d5cff7

Please sign in to comment.