Remove a context from the list. @param path The path of the context to remove @return the new ContextList or null if failed
(String path)
| 1722 | * @return the new ContextList or null if failed |
| 1723 | */ |
| 1724 | public ContextList removeContext(String path) { |
| 1725 | MappedContext[] newContexts = new MappedContext[contexts.length - 1]; |
| 1726 | if (removeMap(contexts, newContexts, path)) { |
| 1727 | int newNesting = 0; |
| 1728 | for (MappedContext context : newContexts) { |
| 1729 | newNesting = Math.max(newNesting, slashCount(context.name)); |
| 1730 | } |
| 1731 | return new ContextList(newContexts, newNesting); |
| 1732 | } |
| 1733 | return null; |
| 1734 | } |
| 1735 | } |
| 1736 | |
| 1737 |
no test coverage detected