From 3dbf5a8bf6a3464441742c656ff3a37508fc7930 Mon Sep 17 00:00:00 2001 From: Marek Czernek Date: Fri, 20 Mar 2020 20:17:29 +0100 Subject: [PATCH] Yaml acronyms are case sensitive --- src/main/java/com/redhat/persistence/YamlDal.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/redhat/persistence/YamlDal.java b/src/main/java/com/redhat/persistence/YamlDal.java index d40a3f0..4987e33 100644 --- a/src/main/java/com/redhat/persistence/YamlDal.java +++ b/src/main/java/com/redhat/persistence/YamlDal.java @@ -32,10 +32,10 @@ public Set getAcronymsByName(String name) { Set res = new HashSet<>(); for(String key : yamlDatabase.keySet()) { Map databaseSection = yamlDatabase.get(key); - if(databaseSection.containsKey(name.toUpperCase())) { + if(databaseSection.containsKey(name)) { Acronym a = new Acronym(name); Set e = new HashSet<>(); - e.add(new Explanation(databaseSection.get(name.toUpperCase()))); + e.add(new Explanation(databaseSection.get(name))); a.setExplanations(e); res.add(a); }