Anomaly identified by the detector. Please review whether this anomaly corresponds to a misuse.
Finding:
2
In File:
sos/gui/HexField.java
In Method:
format(String)
Code with Finding:
class HexField {
/**
* Formats the text.
*
* @param The text to be formatted.
*
* @return The formatted text.
*/
private String format(String text) {
String result = text.trim();
int N = 2 * length - result.length();
for (int i = 0; i < N; i++) {
result = "0" + result;
}
return result;
}
}