Fixes some SQ Issues regarding DTO add(Links) methods.

This commit is contained in:
Johannes Schnatterer
2018-08-06 17:47:46 +02:00
parent 730c2ae358
commit 869821f6db
5 changed files with 4 additions and 6 deletions

View File

@@ -24,6 +24,7 @@ public class HgConfigDto extends HalRepresentation {
private boolean showRevisionInId;
@Override
@SuppressWarnings("squid:S1185") // We want to have this method available in this package
protected HalRepresentation add(Links links) {
return super.add(links);
}

View File

@@ -1,7 +1,6 @@
package sonia.scm.api.v2.resources;
import de.otto.edison.hal.HalRepresentation;
import de.otto.edison.hal.Links;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@@ -19,9 +18,4 @@ public class HgConfigPackageDto extends HalRepresentation {
private String pythonVersion;
private long size;
private String url;
@Override
protected HalRepresentation add(Links links) {
return super.add(links);
}
}