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/DataTypeClob.java File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeLong.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
		 
3
	 	
4
OutputStreamWriter outWriter = new OutputStreamWriter(outStream);
4
	 	OutputStreamWriter outWriter = new OutputStreamWriter(outStream);
5
	
5
	 	
6
	 // check that the text is a valid representation
6
	 	// check that the text is a valid representation
7
		 StringBuffer messageBuffer = new StringBuffer();
7
	 	StringBuffer messageBuffer = new StringBuffer();
8
		 validateAndConvertInPopup(text, null, messageBuffer);
8
	 	validateAndConvertInPopup(text, null, messageBuffer);
9
		 if (messageBuffer.length() > 0) {
9
	 	if (messageBuffer.length() > 0) {
10
			 // there was an error in the conversion
10
	 		// there was an error in the conversion
11
			 throw new IOException(new String(messageBuffer));
11
	 		throw new IOException(new String(messageBuffer));
12
		 }
12
	
13
		 
13
 	}
14
	 	
14
// just send the text to the output file
15
	 	// just send the text to the output file
15
		outWriter.write(text);
16
		outWriter.write(text);
16
		outWriter.flush();
17
		outWriter.flush();
17
		outWriter.close();
18
		outWriter.close();
18
	 
19
	 
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