(String str, String suffix)
| 522 | } |
| 523 | |
| 524 | public static String removeSuffix(String str, String suffix) |
| 525 | { |
| 526 | if (str != null && suffix != null) |
| 527 | { |
| 528 | if (str.endsWith(suffix)) |
| 529 | { |
| 530 | str = str.substring(0, str.length() - suffix.length()); |
| 531 | } |
| 532 | |
| 533 | return str; |
| 534 | } |
| 535 | else |
| 536 | { |
| 537 | return str; |
| 538 | } |
| 539 | } |
| 540 | |
| 541 | public static String replaceSuffix(String str, String suffix, String suffixNew) |
| 542 | { |
no test coverage detected