Skip to content

Commit

Permalink
小调整。
Browse files Browse the repository at this point in the history
  • Loading branch information
wangliang181230 committed May 21, 2024
1 parent 38cb5db commit 7886ba8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public void execute() throws MojoExecutionException {
getLog().info("fileList: " + generateFiles.toString());

for (FileInfo fileInfo : generateFiles) {
if (StringUtils.isEmpty(fileInfo.getPath()) || Boolean.FALSE.equals(fileInfo.getEnabled())) {
if (StringUtils.isEmpty(fileInfo.getPath()) || fileInfo.isEnabled()) {
continue;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ public void setEnabled(Boolean enabled) {
}


public boolean isEnabled() {
return enabled == null || enabled; // 为 null 或 ture 时,表示生效
}

@Override
public String toString() {
return "FileInfo{" +
Expand Down

0 comments on commit 7886ba8

Please sign in to comment.