Updated the print out of the the component string to leave out Unkown and Other for display. Instead it'll just show nothing.

This commit is contained in:
Cyrus 2021-06-17 13:12:26 -04:00
parent 13043856ef
commit 132a336549

View File

@ -195,7 +195,13 @@ public class ComponentClass {
*/
@Override
public String toString() {
return String.format("%s%n%s - %s", registryType, category, component);
String resultString;
if (component.equals(UNKNOWN_STRING) || component.equals(OTHER_STRING)) {
resultString = String.format("%s%n%s", registryType, category);
} else {
resultString = String.format("%s%n%s - %s", registryType, category, component);
}
return resultString;
}
/**