CloneSet93


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
52230.983class_body_declarations[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
152309
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/clearcase/CCLock.java
252203
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/clearcase/CCUnlock.java
Next
Last
Clone Instance
1
Line Count
52
Source Line
309
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/clearcase/CCLock.java

/**
 * Get the 'comment' command
 *
 * @param cmd containing the command line string with or without the
 *            comment flag and value appended
 */
private void getCommentCommand(Commandline cmd) {
  if (getComment() == null) {
    return;
  }
  else {
    /* Had to make two separate commands here because if a space is
       inserted between the flag and the value, it is treated as a
       Windows filename with a space and it is enclosed in double
       quotes ("). This breaks clearcase.
    */
    cmd.createArgument().setValue(FLAG_COMMENT);
    cmd.createArgument().setValue(getComment());
  }
}

/**
 * Get the 'pname' command
 *
 * @param cmd containing the command line string with or
 *            without the pname flag and value appended
 */
private void getPnameCommand(Commandline cmd) {
  if (getPname() == null) {
    return;
  }
  else {
    /* Had to make two separate commands here because if a space is
       inserted between the flag and the value, it is treated as a
       Windows filename with a space and it is enclosed in double
       quotes ("). This breaks clearcase.
    */
    cmd.createArgument().setValue(FLAG_PNAME);
    cmd.createArgument().setValue(getPname());
  }
}

/**
 * Return which object/pname is being operated on
 *
 * @return String containing the object/pname being worked on
 */
private String getOpType() {
  if (getPname() != null) {
    return getPname();
  }
  else {
    return getObjselect();
  }
}

/**
 *  -replace flag -- replace existing lock on object(s)
 */
public static final String FLAG_REPLACE = "-replace";


First
Previous
Clone Instance
2
Line Count
52
Source Line
203
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/clearcase/CCUnlock.java

/**
 * Get the 'comment' command
 *
 * @param cmd containing the command line string with or without the
 *            comment flag and value appended
 */
private void getCommentCommand(Commandline cmd) {
  if (getComment() == null) {
    return;
  }
  else {
    /* Had to make two separate commands here because if a space is
       inserted between the flag and the value, it is treated as a
       Windows filename with a space and it is enclosed in double
       quotes ("). This breaks clearcase.
    */
    cmd.createArgument().setValue(FLAG_COMMENT);
    cmd.createArgument().setValue(getComment());
  }
}

/**
 * Get the 'pname' command
 *
 * @param cmd containing the command line string with or without the
 *            pname flag and value appended
 */
private void getPnameCommand(Commandline cmd) {
  if (getPname() == null) {
    return;
  }
  else {
    /* Had to make two separate commands here because if a space is
       inserted between the flag and the value, it is treated as a
       Windows filename with a space and it is enclosed in double
       quotes ("). This breaks clearcase.
    */
    cmd.createArgument().setValue(FLAG_PNAME);
    cmd.createArgument().setValue(getPname());
  }
}

/**
 * Return which object/pname is being operated on
 *
 * @return String containing the object/pname being worked on
 */
private String getOpType() {
  if (getPname() != null) {
    return getPname();
  }
  else {
    return getObjSelect();
  }
}

/**
 * -comment flag -- method to use for commenting events
 */
public static final String FLAG_COMMENT = "-comment";


Clone AbstractionParameter Count: 3Parameter Bindings

/**
     * Get the 'comment' command
     *
     * @param cmd containing the command line string with or without the
     *            comment flag and value appended
     */
private void getCommentCommand(Commandline cmd) {
  if (getComment() == null) {
    return;
  }
  else {
    /* Had to make two separate commands here because if a space is
                   inserted between the flag and the value, it is treated as a
                   Windows filename with a space and it is enclosed in double
                   quotes ("). This breaks clearcase.
                */
    cmd.createArgument().setValue(FLAG_COMMENT);
    cmd.createArgument().setValue(getComment());
  }
}

/**
     * Get the 'pname' command
     *
     * @param cmd containing the command line string with or
     *            without the pname flag and value appended
     */
/**
     * Get the 'pname' command
     *
     * @param cmd containing the command line string with or without the
     *            pname flag and value appended
     */
private void getPnameCommand(Commandline cmd) {
  if (getPname() == null) {
    return;
  }
  else {
    /* Had to make two separate commands here because if a space is
                   inserted between the flag and the value, it is treated as a
                   Windows filename with a space and it is enclosed in double
                   quotes ("). This breaks clearcase.
                */
    cmd.createArgument().setValue(FLAG_PNAME);
    cmd.createArgument().setValue(getPname());
  }
}

/**
     * Return which object/pname is being operated on
     *
     * @return String containing the object/pname being worked on
     */
private String getOpType() {
  if (getPname() != null) {
    return getPname();
  }
  else {
    return [[#variablefe8f8e0]]();
  }
}

/**
     *  -replace flag -- replace existing lock on object(s)
     */
/**
     * -comment flag -- method to use for commenting events
     */
public static final String  [[#variablefddc1e0]]= [[#variable131c41c0]];
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#fe8f8e0]]
getObjselect 
12[[#fe8f8e0]]
getObjSelect 
21[[#fddc1e0]]
FLAG_REPLACE 
22[[#fddc1e0]]
FLAG_COMMENT 
31[[#131c41c0]]
"-replace" 
32[[#131c41c0]]
"-comment"