CloneSet713


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
36301.000class_body_declarations[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
136124
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/util/Messages.java
25097
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/core/formatter/CodeFormatterApplication.java
336347
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/Messages.java
Clone Instance
1
Line Count
36
Source Line
124
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/util/Messages.java

        /**
         * Bind the given message's substitution locations with the given string values.
         * 
         * @param message the message to be manipulated
         * @return the manipulated String
         */
        public static String bind(String message) {
                return bind(message, null);
        }

        /**
         * Bind the given message's substitution locations with the given string values.
         * 
         * @param message the message to be manipulated
         * @param binding the object to be inserted into the message
         * @return the manipulated String
         */
        public static String bind(String message, Object binding) {
                return bind(message, new Object[] {
                                                   binding
                                                  } );
        }

        /**
         * Bind the given message's substitution locations with the given string values.
         * 
         * @param message the message to be manipulated
         * @param binding1 An object to be inserted into the message
         * @param binding2 A second object to be inserted into the message
         * @return the manipulated String
         */
        public static String bind(String message, Object binding1, Object binding2) {
                return bind(message, new Object[] {
                                                   binding1, binding2
                                                  } );
        }

        /**
         * Bind the given message's substitution locations with the given string values.
         * 
         * @param message the message to be manipulated
         * @param bindings An array of objects to be inserted into the message
         * @return the manipulated String
         */
        public static String bind(String message, Object[] bindings) {
                return MessageFormat.format(message, bindings);
        }


Clone Instance
2
Line Count
50
Source Line
97
Source File
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/core/formatter/CodeFormatterApplication.java

                /**
                 * Bind the given message's substitution locations with the given string
                 * values.
                 * 
                 * @param message
                 *            the message to be manipulated
                 * @return the manipulated String
                 */
                public static String bind(String message) {
                        return bind(message, null);
                }

                /**
                 * Bind the given message's substitution locations with the given string
                 * values.
                 * 
                 * @param message
                 *            the message to be manipulated
                 * @param binding
                 *            the object to be inserted into the message
                 * @return the manipulated String
                 */
                public static String bind(String message, Object binding) {
                        return bind(message, new Object[] {
                                binding
                                                          } );
                }

                /**
                 * Bind the given message's substitution locations with the given string
                 * values.
                 * 
                 * @param message
                 *            the message to be manipulated
                 * @param binding1
                 *            An object to be inserted into the message
                 * @param binding2
                 *            A second object to be inserted into the message
                 * @return the manipulated String
                 */
                public static String bind(String message, Object binding1, Object binding2) {
                        return bind(message, new Object[] {
                                        binding1, binding2
                                                          } );
                }

                /**
                 * Bind the given message's substitution locations with the given string
                 * values.
                 * 
                 * @param message
                 *            the message to be manipulated
                 * @param bindings
                 *            An array of objects to be inserted into the message
                 * @return the manipulated String
                 */
                public static String bind(String message, Object[] bindings) {
                        return MessageFormat.format(message, bindings);
                }


Clone Instance
3
Line Count
36
Source Line
347
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/Messages.java

        /**
         * Bind the given message's substitution locations with the given string values.
         * 
         * @param message the message to be manipulated
         * @return the manipulated String
         */
        public static String bind(String message) {
                return bind(message, null);
        }

        /**
         * Bind the given message's substitution locations with the given string values.
         * 
         * @param message the message to be manipulated
         * @param binding the object to be inserted into the message
         * @return the manipulated String
         */
        public static String bind(String message, Object binding) {
                return bind(message, new Object[] {
                                                   binding
                                                  } );
        }

        /**
         * Bind the given message's substitution locations with the given string values.
         * 
         * @param message the message to be manipulated
         * @param binding1 An object to be inserted into the message
         * @param binding2 A second object to be inserted into the message
         * @return the manipulated String
         */
        public static String bind(String message, Object binding1, Object binding2) {
                return bind(message, new Object[] {
                                                   binding1, binding2
                                                  } );
        }

        /**
         * Bind the given message's substitution locations with the given string values.
         * 
         * @param message the message to be manipulated
         * @param bindings An array of objects to be inserted into the message
         * @return the manipulated String
         */
        public static String bind(String message, Object[] bindings) {
                return MessageFormat.format(message, bindings);
        }


Clone AbstractionParameter Count: 0Parameter Bindings

/**
         * Bind the given message's substitution locations with the given string values.
         * 
         * @param message the message to be manipulated
         * @return the manipulated String
         */
/**
                 * Bind the given message's substitution locations with the given string
                 * values.
                 * 
                 * @param message
                 *            the message to be manipulated
                 * @return the manipulated String
                 */
public static String bind(String message) {
  return bind(message, null);
}

/**
         * Bind the given message's substitution locations with the given string values.
         * 
         * @param message the message to be manipulated
         * @param binding the object to be inserted into the message
         * @return the manipulated String
         */
/**
                 * Bind the given message's substitution locations with the given string
                 * values.
                 * 
                 * @param message
                 *            the message to be manipulated
                 * @param binding
                 *            the object to be inserted into the message
                 * @return the manipulated String
                 */
public static String bind(String message, Object binding) {
  return bind(message, new Object[] {
                                      binding
                                    } );
}

/**
         * Bind the given message's substitution locations with the given string values.
         * 
         * @param message the message to be manipulated
         * @param binding1 An object to be inserted into the message
         * @param binding2 A second object to be inserted into the message
         * @return the manipulated String
         */
/**
                 * Bind the given message's substitution locations with the given string
                 * values.
                 * 
                 * @param message
                 *            the message to be manipulated
                 * @param binding1
                 *            An object to be inserted into the message
                 * @param binding2
                 *            A second object to be inserted into the message
                 * @return the manipulated String
                 */
public static String bind(String message, Object binding1, Object binding2) {
  return bind(message, new Object[] {
                                      binding1,
                                      binding2
                                    } );
}

/**
         * Bind the given message's substitution locations with the given string values.
         * 
         * @param message the message to be manipulated
         * @param bindings An array of objects to be inserted into the message
         * @return the manipulated String
         */
/**
                 * Bind the given message's substitution locations with the given string
                 * values.
                 * 
                 * @param message
                 *            the message to be manipulated
                 * @param bindings
                 *            An array of objects to be inserted into the message
                 * @return the manipulated String
                 */
public static String bind(String message, Object[] bindings) {
  return MessageFormat.format(message, bindings);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None