if (charsetName != null) { Charset charset; try { charset = Charset.forName(charsetName); } catch (UnsupportedCharsetException e) { charset = Charset.forName(System.getProperty("file.encoding")); } body = new CharsetDecoderInputStream(body, charset); }
if (charsetName != null) { Charset charset; try { charset = Charset.forName(charsetName); } catch (UnsupportedCharsetException e) { charset = Charset.forName(System.getProperty("file.encoding")); } bodyStream = new CharsetDecoderInputStream(bodyStream, charset); }
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/composer/MessageBuilderHelper.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/folder/AbstractMessageFolder.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
if (charsetName != null) {
1
if (charsetName != null) {
2
			Charset charset;
2
			Charset charset;
3
			try {
3
			try {
4
				charset = Charset.forName(charsetName);
4
				charset = Charset.forName(charsetName);
5
			} catch (UnsupportedCharsetException e) {
5
			} catch (UnsupportedCharsetException e) {
6
				charset = Charset.forName(System.getProperty("file.encoding"));
6
				charset = Charset.forName(System.getProperty("file.encoding"));
7
			}
7
			}
8
			body = new CharsetDecoderInputStream(body, charset);
8
			bodyStream = new CharsetDecoderInputStream(bodyStream, charset);
9
		}
9
		}
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