mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-01-02 11:16:46 +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
|
@Override
|
||||||
public String toString() {
|
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