CPD Results

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

Duplications

File Line
org/synchronoss/cpo/CpoByteArrayInputStream.java 59
org/synchronoss/cpo/CpoCharArrayReader.java 59
  protected byte[] getBuffer() {
    return buffer_;
  }

  protected void setOffset(int offset) {
    offset_ = offset;
  }

  protected int getOffset() {
    return offset_;
  }

  protected void setSize(int size) {
    size_ = size;
  }

  protected int getSize() {
    return size_;
  }

  public int getLength() {
    int l;

    if (getOffset() == 0) {
      l = getBuffer().length;
    } else {
      l = getSize() < getBuffer().length - getOffset() ? getSize() : getBuffer().length - getOffset();
    }
    return l;
  }

  static public CpoByteArrayInputStream getCpoStream(InputStream is) {
File Line
org/synchronoss/cpo/meta/bean/CpoClassBean.java 64
org/synchronoss/cpo/meta/bean/CpoFunctionGroupBean.java 76
    if (getName() != null ? !getName().equals(that.getName()) : that.getName() != null) {
      return false;
    }
    if (getDescription() != null ? !getDescription().equals(that.getDescription()) : that.getDescription() != null) {
      return false;
    }

    return true;
  }

  @Override
  public int hashCode() {
    int result = 0;
    result = 31 * result + getClass().getName().hashCode();
    result = 31 * result + (getName() != null ? getName().hashCode() : 0);
    result = 31 * result + (getDescription() != null ? getDescription().hashCode() : 0);