Skip to content

Commit

Permalink
Remove duplicate constant
Browse files Browse the repository at this point in the history
  • Loading branch information
wwelling committed Jul 14, 2023
1 parent f97e0a7 commit b7e9f2e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.util.Date;
import java.util.Locale;

import org.apache.commons.lang3.StringUtils;
import org.springframework.context.i18n.LocaleContextHolder;

import edu.tamu.scholars.middleware.discovery.model.AbstractIndexDocument;
Expand All @@ -11,7 +12,6 @@

public class FilenameUtility {

private final static String SPACE = " ";
private final static String UNDERSCORE = "_";

private FilenameUtility() {
Expand All @@ -33,7 +33,7 @@ public static String normalizeExportFilename(Individual individual) {
private static String localizeWhileUnderscoreReplaceSpaceWithUnderscore(String value) {
Locale locale = LocaleContextHolder.getLocale();
return value.toLowerCase(locale)
.replace(SPACE, UNDERSCORE);
.replace(StringUtils.SPACE, UNDERSCORE);
}

private static String prefixWithTimestampAfterUnderscore(String value) {
Expand Down

0 comments on commit b7e9f2e

Please sign in to comment.