CloneSet1681


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
21210.983class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
121133
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/comment/SubstitutionTextReader.java
22127
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/javadoc/SingleCharReader.java
Clone Instance
1
Line Count
21
Source Line
133
Source File
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/comment/SubstitutionTextReader.java

        /*
         * @see Reader#read(char[],int,int)
         */
        public int read(char cbuf[], int off, int len) throws IOException {
                int end = off + len;
                for (int i = off; i < end; i++) {
                        int ch = read();
                        if (ch == -1) {
                                if (i == off) {
                                        return -1;
                                }
                                else   {
                                        return i - off;
                                }
                        }
                        cbuf[i] = (char) ch;
                }
                return len;
        }

        /*
         * @see java.io.Reader#ready()
         */
        public boolean ready() throws IOException {
                return fReader.ready();
        }


Clone Instance
2
Line Count
21
Source Line
27
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/javadoc/SingleCharReader.java

        /**
         * @see Reader#read(char[],int,int)
         */
        public int read(char cbuf[], int off, int len) throws IOException {
                int end = off + len;
                for (int i = off; i < end; i++) {
                        int ch = read();
                        if (ch == -1) {
                                if (i == off) {
                                        return -1;
                                }
                                else   {
                                        return i - off;
                                }
                        }
                        cbuf[i] = (char) ch;
                }
                return len;
        }

        /**
         * @see Reader#ready()
         */
    public boolean ready() throws IOException {
                return true;
    }


Clone AbstractionParameter Count: 1Parameter Bindings

/*
         * @see Reader#read(char[],int,int)
         */
/**
         * @see Reader#read(char[],int,int)
         */
public int read(char cbuf[], int off, int len) throws IOException {
  int end = off + len;
  for (int i = off; i < end; i++) {
    int ch = read();
    if (ch == -1) {
      if (i == off) {
        return -1;
      }
      else {
        return i - off;
      }
    }
    cbuf[i] = (char) ch;
  }
  return len;
}

/*
         * @see java.io.Reader#ready()
         */
/**
         * @see Reader#ready()
         */
public boolean ready() throws IOException {
  return [[#variablea193d840]];
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a193d840]]
fReader.ready() 
12[[#a193d840]]
true