CloneSet3636


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18210.989class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
118514
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java
218544
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java
Clone Instance
1
Line Count
18
Source Line
514
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java

        /**
         * Reports that the given node is about have a child replaced.
         * 
         * @param node the node about to be modified
         * @param child the child node about to be removed
         * @param newChild the replacement child
         * @param property the child or child list property descriptor
         * @since 3.0
         */
        void preReplaceChildEvent(ASTNode node, ASTNode child, ASTNode newChild, StructuralPropertyDescriptor property) {
                // IMPORTANT: this method is called by readers during lazy init
                synchronized (this.internalASTLock) {
                        // guard against concurrent access by a reader doing lazy init
                        if (this.disableEvents > 0) {
                                // doing lazy init OR already processing an event
                                // System.out.println("[BOUNCE REP]");
                                return;
                        }
                        else   {
                                disableEvents();
                        }
                }
                try {
                        this.eventHandler.preReplaceChildEvent(node, child, newChild, property);
                        // N.B. even if event handler blows up, the AST is not
                        // corrupted since node has not been changed yet
                } finally {
                        reenableEvents();
                  }
        }


Clone Instance
2
Line Count
18
Source Line
544
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java

        /**
         * Reports that the given node has just had a child replaced.
         * 
         * @param node the node modified
         * @param child the child removed
         * @param newChild the replacement child
         * @param property the child or child list property descriptor
         * @since 3.0
         */
        void postReplaceChildEvent(ASTNode node, ASTNode child, ASTNode newChild, StructuralPropertyDescriptor property) {
                // IMPORTANT: this method is called by readers during lazy init
                synchronized (this.internalASTLock) {
                        // guard against concurrent access by a reader doing lazy init
                        if (this.disableEvents > 0) {
                                // doing lazy init OR already processing an event
                                // System.out.println("[BOUNCE REP]");
                                return;
                        }
                        else   {
                                disableEvents();
                        }
                }
                try {
                        this.eventHandler.postReplaceChildEvent(node, child, newChild, property);
                        // N.B. even if event handler blows up, the AST is not
                        // corrupted since node has not been changed yet
                } finally {
                        reenableEvents();
                  }
        }


Clone AbstractionParameter Count: 1Parameter Bindings

/**
         * Reports that the given node is about have a child replaced.
         * 
         * @param node the node about to be modified
         * @param child the child node about to be removed
         * @param newChild the replacement child
         * @param property the child or child list property descriptor
         * @since 3.0
         */
/**
         * Reports that the given node has just had a child replaced.
         * 
         * @param node the node modified
         * @param child the child removed
         * @param newChild the replacement child
         * @param property the child or child list property descriptor
         * @since 3.0
         */
void [[#variable9b1d6aa0]](ASTNode node, ASTNode child, ASTNode newChild, StructuralPropertyDescriptor property) {
  // IMPORTANT: this method is called by readers during lazy init
  synchronized (this.internalASTLock) {
    // guard against concurrent access by a reader doing lazy init
    if (this.disableEvents > 0) {
      // doing lazy init OR already processing an event
      // System.out.println("[BOUNCE REP]");
      return;
    }
    else {
      disableEvents();
    }
  }
  try {
    this.eventHandler. [[#variable9b1d6aa0]](node, child, newChild, property);
  // N.B. even if event handler blows up, the AST is not
  // corrupted since node has not been changed yet
  }
  finally {
    reenableEvents();
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9b1d6aa0]]
preReplaceChildEvent 
12[[#9b1d6aa0]]
postReplaceChildEvent