CPD Results

The following document contains the results of PMD's CPD 3.7.

Duplications

File Line
org/apache/xbean/naming/context/ImmutableContext.java 80
org/apache/xbean/naming/context/ImmutableContext.java 134
            return absoluteIndex.get(absoluteName);
        }

        protected Map<String, Object> getBindings() {
            return localBindings;
        }

        protected final void addDeepBinding(String name, Object value, boolean createIntermediateContexts) throws NamingException {
            throw new OperationNotSupportedException("Context is immutable");
        }

        protected final boolean addBinding(String name, Object value, boolean rebind) throws NamingException {
            throw new OperationNotSupportedException("Context is immutable");
        }

        protected final void removeDeepBinding(Name name, boolean pruneEmptyContexts) throws NamingException {
            throw new OperationNotSupportedException("Context is immutable");
        }

        protected final boolean removeBinding(String name, boolean removeNotEmptyContext) throws NamingException {
            throw new OperationNotSupportedException("Context is immutable");
        }

        public boolean isNestedSubcontext(Object value) {
            if (value instanceof NestedImmutableContext) {
                NestedImmutableContext context = (NestedImmutableContext) value;
                return getImmutableContext() == context.getImmutableContext();