mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-21 05:53:27 +00:00
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:
parent
13043856ef
commit
132a336549
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user