public final class ArgumentDecoder { private static final Perl5Util util = new Perl5Util(); private static final String expression = "s#[\\\\](.)#$1#g"; // $NON-NLS-1$ // TODO does not appear to be used public static String decode(String s) { return util.substitute(expression, s); } /** * Prevent instantiation of utility class. */ private ArgumentDecoder() {
public final class ArgumentEncoder { private static final Perl5Util util = new Perl5Util(); private static final String expression = "s#([${}(),\\\\])#\\$1#g"; // TODO does not appear to be used public static String encode(String s) { return util.substitute(expression, s); } /** * Prevent instantiation of utility class. */ private ArgumentEncoder() {
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/functions/util/ArgumentDecoder.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/functions/util/ArgumentEncoder.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public final class ArgumentDecoder {
1
public final class ArgumentEncoder {
2
	private static final Perl5Util util = new Perl5Util();
2
	private static final Perl5Util util = new Perl5Util();
3
	private static final String expression = "s#[\\\\](.)#$1#g"; // $NON-NLS-1$
3
	private static final String expression = "s#([${}(),\\\\])#\\$1#g";
4
// TODO does not appear to be used
4
	// TODO does not appear to be used
5
	public static String decode(String s) {
5
	public static String encode(String s) {
6
		return util.substitute(expression, s);
6
		return util.substitute(expression, s);
7
	}
7
	}
8
	/**
8
	/**
9
	 * Prevent instantiation of utility class.
9
	 * Prevent instantiation of utility class.
10
	 */
10
	 */
11
	private ArgumentDecoder() {
11
	private ArgumentEncoder() {
12
	
12
	
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