Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
solth committed Apr 26, 2022
1 parent 74f69c0 commit 12fb324
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public enum ObjectType {
WORKFLOW("workflow", "workflows", true),
FILTER("filter", "filters", true),
IMPORT_CONFIGURATION("importConfig.configuration", "importConfig.configurations", false),
MAPPPING_FILE("mappingFile.file", "mappingFile.files", false),
MAPPING_FILE("mappingFile.file", "mappingFile.files", false),
NONE("", "", false);

private final String messageKeySingular;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void load(int id) {
setSaveDisabled(true);
} catch (DAOException e) {
Helper.setErrorMessage(ERROR_LOADING_ONE,
new Object[] { ObjectType.MAPPPING_FILE.getTranslationSingular(), id }, logger, e);
new Object[] { ObjectType.MAPPING_FILE.getTranslationSingular(), id }, logger, e);
}
}

Expand All @@ -71,7 +71,7 @@ public String save() {
ServiceManager.getMappingFileService().saveToDatabase(mappingFile);
return projectsPage;
} catch (DAOException e) {
Helper.setErrorMessage(ERROR_SAVING, new Object[] {ObjectType.MAPPPING_FILE.getTranslationSingular() }, logger, e);
Helper.setErrorMessage(ERROR_SAVING, new Object[] {ObjectType.MAPPING_FILE.getTranslationSingular() }, logger, e);
return this.stayOnCurrentPage;
}
}
Expand Down Expand Up @@ -104,7 +104,7 @@ public List<Path> getFilenames() {
return mappingFiles.filter(f -> f.toString().endsWith(".xsl") || f.toString().endsWith("xslt"))
.map(Path::getFileName).sorted().collect(Collectors.toList());
} catch (IOException e) {
Helper.setErrorMessage(ERROR_LOADING_MANY, new Object[] {ObjectType.MAPPPING_FILE.getTranslationPlural() },
Helper.setErrorMessage(ERROR_LOADING_MANY, new Object[] {ObjectType.MAPPING_FILE.getTranslationPlural() },
logger, e);
return new ArrayList<>();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public List<MappingFile> getMappingFiles() {
return ServiceManager.getMappingFileService().getAll();
} catch (DAOException e) {
Helper.setErrorMessage(ERROR_LOADING_MANY,
new Object[] {ObjectType.MAPPPING_FILE.getTranslationPlural() }, logger, e);
new Object[] {ObjectType.MAPPING_FILE.getTranslationPlural() }, logger, e);
return new ArrayList<>();
}
}
Expand All @@ -66,7 +66,7 @@ public void deleteById(int id) {
try {
ServiceManager.getMappingFileService().removeFromDatabase(id);
} catch (DAOException e) {
Helper.setErrorMessage(ERROR_DELETING, new Object[] {ObjectType.MAPPPING_FILE.getTranslationSingular() }, logger, e);
Helper.setErrorMessage(ERROR_DELETING, new Object[] {ObjectType.MAPPING_FILE.getTranslationSingular() }, logger, e);
}
}

Expand Down

0 comments on commit 12fb324

Please sign in to comment.