MCPcopy Index your code
hub / github.com/apache/tomcat / removeMap

Method removeMap

java/org/apache/catalina/mapper/Mapper.java:1495–1503  ·  view source on GitHub ↗

Insert into the right place in a sorted MapElement array.

(MapElement<T>[] oldMap, MapElement<T>[] newMap, String name)

Source from the content-addressed store, hash-verified

1493 * Insert into the right place in a sorted MapElement array.
1494 */
1495 private static <T> boolean removeMap(MapElement<T>[] oldMap, MapElement<T>[] newMap, String name) {
1496 int pos = find(oldMap, name);
1497 if ((pos != -1) && (name.equals(oldMap[pos].name))) {
1498 System.arraycopy(oldMap, 0, newMap, 0, pos);
1499 System.arraycopy(oldMap, pos + 1, newMap, pos, oldMap.length - pos - 1);
1500 return true;
1501 }
1502 return false;
1503 }
1504
1505
1506 /*

Callers 4

removeHostAliasMethod · 0.95
removeContextVersionMethod · 0.95
removeWrapperMethod · 0.95
removeContextMethod · 0.80

Calls 2

findMethod · 0.95
equalsMethod · 0.65

Tested by

no test coverage detected