CPD Results
The following document contains the results of PMD's CPD 7.25.0.
Duplications
| File | Line |
|---|---|
| io\github\tonywasher\joceanus\oceanus\decimal\OceanusDecimalParser.java | 134 |
| io\github\tonywasher\joceanus\oceanus\decimal\OceanusDecimalParser.java | 419 |
final OceanusDecimal pResult) {
/* Handle null value */
if (pValue == null) {
throw new IllegalArgumentException();
}
/* Create a working copy */
final StringBuilder myWork = new StringBuilder(pValue.trim());
/* If the value is negative, strip the leading minus sign */
final boolean isNegative = !myWork.isEmpty()
&& myWork.charAt(0) == pLocale.getMinusSign();
if (isNegative) {
myWork.deleteCharAt(0);
}
/* Remove any grouping characters from the value */
final String myGrouping = pLocale.getGrouping();
int myPos;
while (true) {
myPos = myWork.indexOf(myGrouping);
if (myPos == -1) {
break;
}
myWork.deleteCharAt(myPos);
}
/* Trim leading and trailing blanks again */
trimBuffer(myWork); | |
