Relates :
|
The suspect code: private String getTarget(String qName, String path, String calType, String context, String width) { // qName int lastSlash = path.lastIndexOf('/'); qName = path.substring(lastSlash+1); int bracket = qName.indexOf('['); if (bracket != -1) { qName = qName.substring(0, bracket); } So there's a 'qName' parameter to this method, but it is never used -- instead, it is immediately overwritten by a substring of 'path'. Here's the only call site: Entry<?> entry = (Entry<?>) currentContainer; String containerqName = entry.getParent().getqName(); ... String target = getTarget(containerqName, entry.getKey(), ... So there's no obvious relationship between 'containerqName' and the eventual value of 'qName' in 'getTarget'.