Skip to content

Commit

Permalink
fix bug for capability
Browse files Browse the repository at this point in the history
  • Loading branch information
lllyfeng committed Aug 22, 2024
1 parent 02e81c6 commit a0469a3
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import org.yangcentral.yangkit.model.api.schema.ModuleId;
import java.net.URI;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class ModuleSupportCapability extends Capability {
Expand Down Expand Up @@ -32,12 +33,12 @@ public void setRevision(String revision) {
}

public List<String> getFeatures() {
return this.features;
return Collections.unmodifiableList(this.features);
}

public void setFeatures(List<String> features) {
this.features = features;
}
// public void setFeatures(List<String> features) {
// this.features = features;
// }

public void addFeature(String feature) {
if (null != feature) {
Expand All @@ -52,12 +53,12 @@ public void addFeature(String feature) {
}

public List<String> getDeviations() {
return this.deviations;
return Collections.unmodifiableList(this.deviations);
}

public void setDeviations(List<String> deviations) {
this.deviations = deviations;
}
// public void setDeviations(List<String> deviations) {
// this.deviations = deviations;
// }

public void addDeviation(String deviation) {
if (null != deviation) {
Expand Down

0 comments on commit a0469a3

Please sign in to comment.