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/DataTypeBoolean.java File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeClob.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
		// check that the text is a valid representation
5
		 // check that the text is a valid representation
6
		StringBuffer messageBuffer = new StringBuffer();
6
		 StringBuffer messageBuffer = new StringBuffer();
7
		validateAndConvertInPopup(text, null, messageBuffer);
7
		 validateAndConvertInPopup(text, null, messageBuffer);
8
		if (messageBuffer.length() > 0)
8
		 if (messageBuffer.length() > 0)
9
		{
9
 {
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
		// just send the text to the output file
13
		 // just send the text to the output file
14
		outWriter.write(text);
14
		outWriter.write(text);
15
		outWriter.flush();
15
		outWriter.flush();
16
		outWriter.close();
16
		outWriter.close();
17
	
17
	 
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