public void exportObject(FileOutputStream outStream, String text) throws IOException { OutputStreamWriter outWriter = new OutputStreamWriter(outStream); // check that the text is a valid representation StringBuffer messageBuffer = new StringBuffer(); validateAndConvertInPopup(text, null, messageBuffer); if (messageBuffer.length() > 0) { // there was an error in the conversion throw new IOException(new String(messageBuffer)); } // just send the text to the output file outWriter.write(text); outWriter.flush(); outWriter.close();
public void exportObject(FileOutputStream outStream, String text) throws IOException { OutputStreamWriter outWriter = new OutputStreamWriter(outStream); // check that the text is a valid representation StringBuffer messageBuffer = new StringBuffer(); validateAndConvertInPopup(text, null, messageBuffer); if (messageBuffer.length() > 0) { // there was an error in the conversion throw new IOException(new String(messageBuffer)); } // just send the text to the output file outWriter.write(text); outWriter.flush(); outWriter.close();
Clone fragments detected by clone detection tool
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeLong.java File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeTime.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public void exportObject(FileOutputStream outStream, String text)
1
public void exportObject(FileOutputStream outStream, String text)
2
	 	throws IOException {
2
       throws IOException {
3
	 	
4
	 	
5
OutputStreamWriter outWriter = new OutputStreamWriter(outStream);
3
       OutputStreamWriter outWriter = new OutputStreamWriter(outStream);
6
	 	
7
	 	
8
// check that the text is a valid representation
4
       // check that the text is a valid representation
9
	 	StringBuffer messageBuffer = new StringBuffer();
5
       StringBuffer messageBuffer = new StringBuffer();
10
	 	validateAndConvertInPopup(text, null, messageBuffer);
6
       validateAndConvertInPopup(text, null, messageBuffer);
11
	 	if (messageBuffer.length() > 0) {
7
       if (messageBuffer.length() > 0) {
12
	 		// there was an error in the conversion
8
          // there was an error in the conversion
13
	 		throw new IOException(new String(messageBuffer));
9
          throw new IOException(new String(messageBuffer));
14
	 	}
15
	 	
16
	 	
10
       }
17
// just send the text to the output file
11
       // just send the text to the output file
18
		outWriter.write(text);
12
      outWriter.write(text);
19
		outWriter.flush();
13
      outWriter.flush();
20
		outWriter.close();
14
      outWriter.close();
21
	 
15
    
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0