Skip to content

Commit

Permalink
blank == null
Browse files Browse the repository at this point in the history
  • Loading branch information
Frooodle committed Oct 7, 2023
1 parent f4a0188 commit d94eca4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 66 deletions.
11 changes: 0 additions & 11 deletions src/main/java/stirling/software/SPDF/config/AppConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,6 @@
@Configuration
public class AppConfig {

@Bean
public CustomEditorConfigurer customEditorConfigurer() {
return new CustomEditorConfigurer();
}

@Bean
public PropertyEditorRegistrar propertyEditorRegistrar() {
return registry -> {
registry.registerCustomEditor(String.class, new EmptyStringAsNullEditor());
};
}

@Autowired
ApplicationProperties applicationProperties;
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,8 @@ public static class Ui {
private String appNameNavbar;

public String getAppName() {
if(appName != null && appName.trim().length() == 0)
return null;
return appName;
}

Expand All @@ -240,6 +242,8 @@ public void setAppName(String appName) {
}

public String getHomeDescription() {
if(homeDescription != null && homeDescription.trim().length() == 0)
return null;
return homeDescription;
}

Expand All @@ -248,6 +252,8 @@ public void setHomeDescription(String homeDescription) {
}

public String getAppNameNavbar() {
if(appNameNavbar != null && appNameNavbar.trim().length() == 0)
return null;
return appNameNavbar;
}

Expand Down

0 comments on commit d94eca4

Please sign in to comment.