(String str)
| 439 | } |
| 440 | |
| 441 | private static Object parseValue(String str) { |
| 442 | if(str.equals("true")) { |
| 443 | return Boolean.TRUE; |
| 444 | } else if(str.equals("false")) { |
| 445 | return Boolean.FALSE; |
| 446 | } else if(Character.isDigit(str.charAt(0))) { |
| 447 | if(str.charAt(str.length()-1) == 'L') { |
| 448 | return Long.parseLong(str.substring(0,str.length()-1)); |
| 449 | } else { |
| 450 | return Integer.parseInt(str); |
| 451 | } |
| 452 | } else { |
| 453 | return str; |
| 454 | } |
| 455 | } |
| 456 | } |
no test coverage detected