Commit 731b9fc8 authored by Piotr Gawron's avatar Piotr Gawron

miriam comparison is case insensitive

parent 827c1ddc
Pipeline #17955 passed with stage
in 11 minutes and 35 seconds
......@@ -344,7 +344,7 @@ public class ModelFullIndexed implements Model {
Set<BioEntity> result = new HashSet<>();
for (Element element : getElements()) {
for (MiriamData md : element.getMiriamData()) {
if (Objects.equals(md.getResource(), miriamData.getResource())
if (Objects.equals(md.getResource().toLowerCase(), miriamData.getResource().toLowerCase())
&& Objects.equals(md.getDataType(), miriamData.getDataType())) {
result.add(element);
}
......@@ -353,7 +353,7 @@ public class ModelFullIndexed implements Model {
for (Reaction element : getReactions()) {
for (MiriamData md : element.getMiriamData()) {
if (Objects.equals(md.getResource(), miriamData.getResource())
if (Objects.equals(md.getResource().toLowerCase(), miriamData.getResource().toLowerCase())
&& Objects.equals(md.getDataType(), miriamData.getDataType())) {
result.add(element);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment