// 
// Decompiled by Procyon v0.6.0
// 

package io.netty.util;

import java.util.Arrays;

@Deprecated
public class ResourceLeakException extends RuntimeException
{
    private static final long serialVersionUID = 7186453858343358280L;
    private final StackTraceElement[] cachedStackTrace;
    
    public ResourceLeakException() {
        this.cachedStackTrace = this.getStackTrace();
    }
    
    public ResourceLeakException(final String message) {
        super(message);
        this.cachedStackTrace = this.getStackTrace();
    }
    
    public ResourceLeakException(final String message, final Throwable cause) {
        super(message, cause);
        this.cachedStackTrace = this.getStackTrace();
    }
    
    public ResourceLeakException(final Throwable cause) {
        super(cause);
        this.cachedStackTrace = this.getStackTrace();
    }
    
    @Override
    public int hashCode() {
        int hashCode = 0;
        for (final StackTraceElement e : this.cachedStackTrace) {
            hashCode = hashCode * 31 + e.hashCode();
        }
        return hashCode;
    }
    
    @Override
    public boolean equals(final Object o) {
        return o instanceof ResourceLeakException && (o == this || Arrays.equals(this.cachedStackTrace, ((ResourceLeakException)o).cachedStackTrace));
    }
}
