Add a context to the list. @param mappedContext The context to add @param slashCount The number of slashes in the path @return the new ContextList or null if failed
(MappedContext mappedContext, int slashCount)
| 1708 | * @return the new ContextList or null if failed |
| 1709 | */ |
| 1710 | public ContextList addContext(MappedContext mappedContext, int slashCount) { |
| 1711 | MappedContext[] newContexts = new MappedContext[contexts.length + 1]; |
| 1712 | if (insertMap(contexts, newContexts, mappedContext)) { |
| 1713 | return new ContextList(newContexts, Math.max(nesting, slashCount)); |
| 1714 | } |
| 1715 | return null; |
| 1716 | } |
| 1717 | |
| 1718 | /** |
| 1719 | * Remove a context from the list. |
no test coverage detected