...
| Code Block | ||
|---|---|---|
| ||
BigInteger x = new BigInteger("530500452766");
String s = x.toString(); // validValid character data
byte[] byteArray = s.getBytes();
String ns = new String(byteArray);
x = new BigInteger(ns);
|
...
Encoding noncharacter data as a string is likely to result in a loss of data integrity.
Rule | Severity | Likelihood | Detectable |
|---|
Repairable | Priority | Level |
|---|---|---|
STR03-J | Low | Unlikely |
No | No |
P1 | L3 |
Related Guidelines
Bibliography
...
...