/src/main/java/org/htmlunit/html/xpath/XPathAdapter.java
final int length = insideBrackets;
final int length = charArray.length;
private static String preProcessXPath(final String xpath, final boolean caseSensitive) { if (caseSensitive) { return xpath; } final char[] charArray = xpath.toCharArray(); STATE state = STATE.DEFAULT; <extra_id_0> int insideBrackets = 0; for (int i = 0; i < length; i++) { final char ch = charArray[i]; switch (ch) { case '@': if (state == STATE.DEFAULT) {