Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
Yaml acronyms are case sensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
Marek Czernek committed Mar 20, 2020
1 parent 377b2e2 commit 3dbf5a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/redhat/persistence/YamlDal.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ public Set<Acronym> getAcronymsByName(String name) {
Set<Acronym> res = new HashSet<>();
for(String key : yamlDatabase.keySet()) {
Map<String, String> databaseSection = yamlDatabase.get(key);
if(databaseSection.containsKey(name.toUpperCase())) {
if(databaseSection.containsKey(name)) {
Acronym a = new Acronym(name);
Set<Explanation> e = new HashSet<>();
e.add(new Explanation(databaseSection.get(name.toUpperCase())));
e.add(new Explanation(databaseSection.get(name)));
a.setExplanations(e);
res.add(a);
}
Expand Down

0 comments on commit 3dbf5a8

Please sign in to comment.