Test if the first array is equal to the second array. @param first the first character array @param second the second character array @return true if they're equal
(char[] first, char[] second)
| 3575 | * @return true if they're equal |
| 3576 | */ |
| 3577 | protected boolean equals(char[] first, char[] second) { |
| 3578 | |
| 3579 | if (first == null && second == null) { |
| 3580 | return true; |
| 3581 | } |
| 3582 | if (first == null || second == null) { |
| 3583 | return false; |
| 3584 | } |
| 3585 | if (first.length != second.length) { |
| 3586 | return false; |
| 3587 | } |
| 3588 | for (int i = 0; i < first.length; i++) { |
| 3589 | if (first[i] != second[i]) { |
| 3590 | return false; |
| 3591 | } |
| 3592 | } |
| 3593 | return true; |
| 3594 | } |
| 3595 | |
| 3596 | |
| 3597 | /** |
no outgoing calls
no test coverage detected