Code example for Stack

Methods: contains

0
            this.add("null");
 
            return; 
        } 
 
        if (this.stack.contains(object)) {
            Class clazz = object.getClass();
 
            // cyclic reference 
            if (clazz.isPrimitive() || clazz.equals(String.class)) {
                this.process(object, method);
            } else { 
                if (LOG.isDebugEnabled()) { 
                    LOG.debug("Cyclic reference detected on " + object);
                } 
 
                this.add("null");
            } 
 
            return; 
        }