CloneSet2795


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
23260.950compilation_unit
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12311
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/Messages.java
22411
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/Messages.java
Clone Instance
1
Line Count
23
Source Line
11
Source File
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/Messages.java

/*******************************************************************************
 * Copyright (c) 2005 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jdt.internal.junit;

import java.text.MessageFormat;

/**
 * Helper class to format message strings.
 * 
 * @since 3.1
 */
public class Messages {

        public static String format(String message, Object object) {
                return MessageFormat.format(message, new Object[] {
                                                                    object
                                                                  } );
        }

        public static String format(String message, Object[] objects) {
                return MessageFormat.format(message, objects);
        }

        private Messages() {
                // Not for instantiation
        }
}




Clone Instance
2
Line Count
24
Source Line
11
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/Messages.java

/*******************************************************************************
 * Copyright (c) 2005, 2006 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jdt.internal.corext.util;

import com.ibm.icu.text.MessageFormat;

/**
 * Helper class to format message strings.
 * 
 * @since 3.1
 */
public class Messages {

        public static String format(String message, Object object) {
                return MessageFormat.format(message, new Object[] {
                                                                    object
                                                                  } );
        }

        public static String format(String message, Object[] objects) {
                return MessageFormat.format(message, objects);
        }

        private Messages() {
                // Not for instantiation
        }
}




Clone AbstractionParameter Count: 6Parameter Bindings

/*******************************************************************************
 * Copyright (c) 2005 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * Copyright (c) 2005, 2006 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package [[#variablea4b10240]]. [[#variablea4b101c0]]. [[#variablea4b10140]]. [[#variablea4b100c0]]. [[#variablea4b10040]];

import [[#variable59f79fc0]].text.MessageFormat;

/**
 * Helper class to format message strings.
 * 
 * @since 3.1
 */
public class Messages {
  public static String format(String message, Object object) {
    return MessageFormat.format(message, new Object[] {
                                                        object
                                                      } );
  }

  public static String format(String message, Object[] objects) {
    return MessageFormat.format(message, objects);
  }

  private Messages() {
  // Not for instantiation
  }
}


 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a4b10240]]
org 
12[[#a4b10240]]
org.eclipse 
21[[#a4b101c0]]
eclipse 
22[[#a4b101c0]]
jdt 
31[[#a4b10140]]
jdt 
32[[#a4b10140]]
internal 
41[[#a4b100c0]]
internal 
42[[#a4b100c0]]
corext 
51[[#a4b10040]]
junit 
52[[#a4b10040]]
util 
61[[#59f79fc0]]
java 
62[[#59f79fc0]]
com.ibm.icu