Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 2 | 0.959 | method_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 138 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/util/LogFormat.java |
2 | 9 | 159 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/util/LogFormat.java |
| |||||
/** * Returns a formatted representation of the specified number. * * @param number the number. * @param toAppendTo the string buffer to append to. * @param pos the position. * * @return A string buffer containing the formatted value. */ public StringBuffer format(double number, StringBuffer toAppendTo, FieldPosition pos) { StringBuffer result = new StringBuffer(); if (this.showBase) { result.append(this.baseLabel); result.append(this.powerLabel); } result.append(this.formatter.format(calculateLog(number))); return result; } |
| |||||
/** * Formats the specified number as a hexadecimal string. The decimal * fraction is ignored. * * @param number the number to format. * @param toAppendTo the buffer to append to (ignored here). * @param pos the field position (ignored here). * * @return The string buffer. */ public StringBuffer format(long number, StringBuffer toAppendTo, FieldPosition pos) { StringBuffer result = new StringBuffer(); if (this.showBase) { result.append(this.baseLabel); result.append("^"); } result.append(this.formatter.format(calculateLog(number))); return result; } |
| |||
/** * Formats the specified number as a hexadecimal string. The decimal * fraction is ignored. * * @param number the number to format. * @param toAppendTo the buffer to append to (ignored here). * @param pos the field position (ignored here). * * @return The string buffer. */ /** * Returns a formatted representation of the specified number. * * @param number the number. * @param toAppendTo the string buffer to append to. * @param pos the position. * * @return A string buffer containing the formatted value. */ public StringBuffer format( [[#variable18cb7ee0]] number, StringBuffer toAppendTo, FieldPosition pos) { StringBuffer result = new StringBuffer(); if (this.showBase) { result.append(this.baseLabel); result.append( [[#variable18cb7e40]]); } result.append(this.formatter.format(calculateLog(number))); return result; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#18cb7ee0]] | double |
1 | 2 | [[#18cb7ee0]] | long |
2 | 1 | [[#18cb7e40]] | this.powerLabel |
2 | 2 | [[#18cb7e40]] | "^" |