Fixed bad category list building.

This commit is contained in:
Christian P. MOMON 2022-11-10 19:24:19 +01:00
parent c8b63869b2
commit a6ddce2ee1

View file

@ -128,14 +128,7 @@ public class Category
{
boolean result;
if (this.softwares.containsIgnoreCase(service.getSoftwareName()))
{
result = true;
}
else
{
result = false;
}
result = matchesSoftware(service.getSoftwareName());
//
return result;
@ -161,10 +154,10 @@ public class Category
{
if (iterator.hasNext())
{
String source1 = iterator.next();
String source2 = StringUtils.stripAccents(source1).replaceAll("[\\W\\s]", "");
String source = iterator.next();
source = StringUtils.stripAccents(source).replaceAll("[\\W\\s]", "");
if (StringUtils.equalsIgnoreCase(target, source2))
if (StringUtils.equalsIgnoreCase(target, source))
{
ended = true;
result = true;