MCPcopy Index your code
hub / github.com/zaproxy/zaproxy / equals

Method equals

zap/src/main/java/org/apache/commons/httpclient/URI.java:3577–3594  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 /**

Callers 6

compareToMethod · 0.95
HttpMethodBaseMethod · 0.45
isHttp11Method · 0.45
getPathMethod · 0.45
readStatusLineMethod · 0.45
URIMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected