Skip to content

Commit

Permalink
feat:add zero protection.
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyeBeFreeman committed May 13, 2024
1 parent 075f89e commit 152aa35
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ public boolean isEnabled() {

@Override
public void setEnabled(boolean enabled) {
if (Objects.nonNull(extendContractProperties)) {
extendContractProperties.setEnabled(enabled);
}
this.enabled = enabled;
}

Expand All @@ -86,6 +89,9 @@ public String getBasePackage() {

@Override
public void setBasePackage(String basePackage) {
if (Objects.nonNull(extendContractProperties)) {
extendContractProperties.setBasePackage(basePackage);
}
this.basePackage = basePackage;
}

Expand All @@ -99,6 +105,9 @@ public String getExcludePath() {

@Override
public void setExcludePath(String excludePath) {
if (Objects.nonNull(extendContractProperties)) {
extendContractProperties.setExcludePath(excludePath);
}
this.excludePath = excludePath;
}

Expand All @@ -112,6 +121,9 @@ public String getGroup() {

@Override
public void setGroup(String group) {
if (Objects.nonNull(extendContractProperties)) {
extendContractProperties.setGroup(group);
}
this.group = group;
}

Expand All @@ -125,6 +137,9 @@ public String getBasePath() {

@Override
public void setBasePath(String basePath) {
if (Objects.nonNull(extendContractProperties)) {
extendContractProperties.setBasePath(basePath);
}
this.basePath = basePath;
}

Expand All @@ -138,6 +153,9 @@ public boolean isExposure() {

@Override
public void setExposure(boolean exposure) {
if (Objects.nonNull(extendContractProperties)) {
extendContractProperties.setExposure(exposure);
}
this.exposure = exposure;
}

Expand All @@ -151,6 +169,9 @@ public boolean isReportEnabled() {

@Override
public void setReportEnabled(boolean reportEnabled) {
if (Objects.nonNull(extendContractProperties)) {
extendContractProperties.setReportEnabled(reportEnabled);
}
this.reportEnabled = reportEnabled;
}

Expand All @@ -163,6 +184,9 @@ public String getName() {

@Override
public void setName(String name) {
if (Objects.nonNull(extendContractProperties)) {
extendContractProperties.setName(name);
}
this.name = name;
}
}

0 comments on commit 152aa35

Please sign in to comment.