Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 42c560a

Browse files
fix(FeedSource): resolve incorrectly thrown 404 when updating feed source
closes #422
1 parent 7513fec commit 42c560a

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

src/main/java/com/conveyal/datatools/manager/models/FeedSource.java

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
import java.util.HashMap;
4343
import java.util.List;
4444
import java.util.Map;
45+
import java.util.Objects;
4546
import java.util.stream.Collectors;
4647

4748
import static com.conveyal.datatools.manager.utils.StringUtils.getCleanName;
@@ -339,18 +340,18 @@ public boolean equalsExceptLabels(FeedSource o) {
339340
// Compare every property other than labels
340341
return this.name.equals(o.name) &&
341342
this.preserveStopTimesSequence == o.preserveStopTimesSequence &&
342-
this.transformRules.equals(o.transformRules) &&
343+
Objects.equals(this.transformRules, o.transformRules) &&
343344
this.isPublic == o.isPublic &&
344345
this.deployable == o.deployable &&
345-
this.retrievalMethod.equals(o.retrievalMethod) &&
346-
this.fetchFrequency.equals(o.fetchFrequency) &&
346+
Objects.equals(this.retrievalMethod, o.retrievalMethod) &&
347+
Objects.equals(this.fetchFrequency, o.fetchFrequency) &&
347348
this.fetchInterval == o.fetchInterval &&
348-
this.lastFetched.equals(o.lastFetched) &&
349-
this.url.equals(o.url) &&
350-
this.s3Url.equals(o.s3Url) &&
351-
this.snapshotVersion.equals(o.snapshotVersion) &&
352-
this.publishedVersionId.equals(o.publishedVersionId) &&
353-
this.editorNamespace.equals(o.editorNamespace);
349+
Objects.equals(this.lastFetched, o.lastFetched) &&
350+
Objects.equals(this.url, o.url) &&
351+
Objects.equals(this.s3Url, o.s3Url) &&
352+
Objects.equals(this.snapshotVersion, o.snapshotVersion) &&
353+
Objects.equals(this.publishedVersionId, o.publishedVersionId) &&
354+
Objects.equals(this.editorNamespace, o.editorNamespace);
354355
}
355356

356357
public String toString () {

0 commit comments

Comments
 (0)