Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use primitive boolean instead of Boolean class #285

Merged
merged 2 commits into from
Aug 9, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/main/java/co/com/bancolombia/factory/ModuleBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -240,23 +240,23 @@ public Object getParam(String key) {
return params.get(key);
}

public Boolean getBooleanParam(String key) {
public boolean getBooleanParam(String key) {
return (Boolean) params.get(key);
}

public Boolean isReactive() {
public boolean isReactive() {
return getABooleanProperty("reactive", false);
}

public boolean isKotlin() {
return KOTLIN.name().equalsIgnoreCase(params.get(LANGUAGE).toString());
}

public Boolean isEnableLombok() {
public boolean isEnableLombok() {
return getABooleanProperty("lombok", true);
}

public Boolean withMetrics() {
public boolean withMetrics() {
return getABooleanProperty("metrics", true);
}

Expand Down Expand Up @@ -319,7 +319,7 @@ private void loadLatestRelease() {
}
}

private Boolean getABooleanProperty(String property, boolean defaultValue) {
private boolean getABooleanProperty(String property, boolean defaultValue) {
try {
String value = FileUtils.readProperties(project.getProjectDir().getPath(), property);
return "true".equals(value);
Expand Down