Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
23 | 2 | 6 | 0.950 | compilation_unit |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 23 | 11 | plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/Messages.java |
2 | 24 | 11 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/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 } } |
| ||||
/******************************************************************************* * 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 } } |
| |||
/******************************************************************************* * 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#a4b10240]] | org |
1 | 2 | [[#a4b10240]] | org.eclipse |
2 | 1 | [[#a4b101c0]] | eclipse |
2 | 2 | [[#a4b101c0]] | jdt |
3 | 1 | [[#a4b10140]] | jdt |
3 | 2 | [[#a4b10140]] | internal |
4 | 1 | [[#a4b100c0]] | internal |
4 | 2 | [[#a4b100c0]] | corext |
5 | 1 | [[#a4b10040]] | junit |
5 | 2 | [[#a4b10040]] | util |
6 | 1 | [[#59f79fc0]] | java |
6 | 2 | [[#59f79fc0]] | com.ibm.icu |