The following document contains the results of PMD's CPD 4.3.
| File | Line |
|---|---|
| de/fub/mi/idenpa/shared/E_IdemixEidAttrib.java | 270 |
| de/fub/mi/idenpa/shared/E_IdemixVeAttrib.java | 144 |
break;
}
}
return result;
}
/**
* Parses the value.
*
* @param val
* the val
* @return the object
*/
public Object parseValue(String val) {
Object result = null;
if (val != null) {
switch (m_numType) {
case TYPE_INT:
try {
result = Integer.parseInt(val);
} catch (Exception e) {
}
break;
case TYPE_STRING:
result = val;
break;
}
}
return result;
}
/**
* Gets the bigint.
*
* @param value
* the value
* @return the bigint
*/
public BigInteger getBigint(Object value) {
BigInteger result = null;
switch (m_numType) {
case TYPE_INT:
if (value != null && value instanceof Integer)
result = BigInteger.valueOf(((Integer) value));
else if (value != null && value instanceof String)
result = BigInteger.valueOf(Integer.valueOf((String) value));
else
result = BigInteger.valueOf(0);
break;
case TYPE_STRING:
if (value != null && value.toString().length() > 0)
result = new BigInteger(Utils.toBytes(value.toString()));
else
result = new BigInteger(Utils.toBytes(" "));
break;
}
return result;
} | |