diff --git a/src/main/java/no/rutebanken/anshar/routes/siri/transformer/impl/OutboundIdAdapter.java b/src/main/java/no/rutebanken/anshar/routes/siri/transformer/impl/OutboundIdAdapter.java index 18240574..f3522507 100644 --- a/src/main/java/no/rutebanken/anshar/routes/siri/transformer/impl/OutboundIdAdapter.java +++ b/src/main/java/no/rutebanken/anshar/routes/siri/transformer/impl/OutboundIdAdapter.java @@ -22,6 +22,8 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.util.Objects; + public class OutboundIdAdapter extends ValueAdapter { private final Logger logger = LoggerFactory.getLogger(OutboundIdAdapter.class); @@ -80,6 +82,10 @@ public boolean equals(Object o) { if (!super.getClassToApply().equals(that.getClassToApply())) return false; return outboundIdMappingPolicy == that.outboundIdMappingPolicy; + } + @Override + public int hashCode() { + return Objects.hash(super.getClassToApply(), outboundIdMappingPolicy); } }