CloneSet777


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
26450.957class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
118220
plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/breakpoints/JavaExceptionBreakpoint.java
218260
plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/breakpoints/JavaExceptionBreakpoint.java
326271
plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/breakpoints/JavaWatchpoint.java
426302
plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/breakpoints/JavaWatchpoint.java
Clone Instance
1
Line Count
18
Source Line
220
Source File
plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/breakpoints/JavaExceptionBreakpoint.java

        /**
         * @see IJavaExceptionBreakpoint#isCaught()
         */
        public boolean isCaught() throws CoreException {
                return ensureMarker().getAttribute(CAUGHT, false);
        }

        /**
         * @see IJavaExceptionBreakpoint#setCaught(boolean)
         */
        public void setCaught(boolean caught) throws CoreException {
                if (caught == isCaught()) {
                        return;
                }
                setAttribute(CAUGHT, caught);
                if (caught && !isEnabled()) {
                        setEnabled(true);
                }
                else   if ( !(caught || isUncaught())) {
                        setEnabled(false);
                       }
                recreate();
        }


Clone Instance
2
Line Count
18
Source Line
260
Source File
plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/breakpoints/JavaExceptionBreakpoint.java

        /**
         * @see IJavaExceptionBreakpoint#isUncaught()
         */
        public boolean isUncaught() throws CoreException {
                return ensureMarker().getAttribute(UNCAUGHT, false);
        }

        /**
         * @see IJavaExceptionBreakpoint#setUncaught(boolean)
         */
        public void setUncaught(boolean uncaught) throws CoreException {
                if (uncaught == isUncaught()) {
                        return;
                }
                setAttribute(UNCAUGHT, uncaught);
                if (uncaught && !isEnabled()) {
                        setEnabled(true);
                }
                else   if ( !(uncaught || isCaught())) {
                        setEnabled(false);
                       }
                recreate();
        }


Clone Instance
3
Line Count
26
Source Line
271
Source File
plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/breakpoints/JavaWatchpoint.java

        /**
         * @see org.eclipse.debug.core.model.IWatchpoint#isAccess()
         */
        public boolean isAccess() throws CoreException {
                return ensureMarker().getAttribute(ACCESS, false);
        }

        /**
         * Sets whether this breakpoint will suspend execution when its associated
         * field is accessed. If true and this watchpoint is disabled, this watchpoint
         * is automatically enabled. If both access and modification are false,
         * this watchpoint is automatically disabled.
         * 
         * @param access whether to suspend on field access
         * @exception CoreException if unable to set the property
         *      on this breakpoint's underlying marker
         * @see org.eclipse.debug.core.model.IWatchpoint#setAccess(boolean)
         */
        public void setAccess(boolean access) throws CoreException {
                if (access == isAccess()) {
                        return;
                }
                setAttribute(ACCESS, access);
                if (access && !isEnabled()) {
                        setEnabled(true);
                }
                else   if ( !(access || isModification())) {
                        setEnabled(false);
                       }
                recreate();
        }


Clone Instance
4
Line Count
26
Source Line
302
Source File
plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/breakpoints/JavaWatchpoint.java

        /**
         * @see org.eclipse.debug.core.model.IWatchpoint#isModification()
         */
        public boolean isModification() throws CoreException {
                return ensureMarker().getAttribute(MODIFICATION, false);
        }

        /**
         * Sets whether this breakpoint will suspend execution when its associated
         * field is modified. If true and this watchpoint is disabled, this watchpoint
         * is automatically enabled. If both access and modification are false,
         * this watchpoint is automatically disabled.
         * 
         * @param modification whether to suspend on field modification
         * @exception CoreException if unable to set the property on
         *      this breakpoint's underlying marker
         * @see org.eclipse.debug.core.model.IWatchpoint#setModification(boolean)
         */
        public void setModification(boolean modification) throws CoreException {
                if (modification == isModification()) {
                        return;
                }
                setAttribute(MODIFICATION, modification);
                if (modification && !isEnabled()) {
                        setEnabled(true);
                }
                else   if ( !(modification || isAccess())) {
                        setEnabled(false);
                       }
                recreate();
        }


Clone AbstractionParameter Count: 5Parameter Bindings

/**
         * @see org.eclipse.debug.core.model.IWatchpoint#isAccess()
         */
/**
         * @see org.eclipse.debug.core.model.IWatchpoint#isModification()
         */
/**
         * @see IJavaExceptionBreakpoint#isCaught()
         */
/**
         * @see IJavaExceptionBreakpoint#isUncaught()
         */
public boolean  [[#variablebc2d7960]]() throws CoreException {
  return ensureMarker().getAttribute( [[#variablebc9362a0]], false);
}

/**
         * Sets whether this breakpoint will suspend execution when its associated
         * field is accessed. If true and this watchpoint is disabled, this watchpoint
         * is automatically enabled. If both access and modification are false,
         * this watchpoint is automatically disabled.
         * 
         * @param access whether to suspend on field access
         * @exception CoreException if unable to set the property
         *      on this breakpoint's underlying marker
         * @see org.eclipse.debug.core.model.IWatchpoint#setAccess(boolean)
         */
/**
         * Sets whether this breakpoint will suspend execution when its associated
         * field is modified. If true and this watchpoint is disabled, this watchpoint
         * is automatically enabled. If both access and modification are false,
         * this watchpoint is automatically disabled.
         * 
         * @param modification whether to suspend on field modification
         * @exception CoreException if unable to set the property on
         *      this breakpoint's underlying marker
         * @see org.eclipse.debug.core.model.IWatchpoint#setModification(boolean)
         */
/**
         * @see IJavaExceptionBreakpoint#setCaught(boolean)
         */
/**
         * @see IJavaExceptionBreakpoint#setUncaught(boolean)
         */
public void [[#variablebc936260]](boolean  [[#variablebc2d76e0]]) throws CoreException {
  if ( [[#variablebc2d76e0]]== [[#variablebc2d7960]]()) {
    return;
  }
  setAttribute( [[#variablebc9362a0]],  [[#variablebc2d76e0]]);
  if ( [[#variablebc2d76e0]]&& !isEnabled()) {
    setEnabled(true);
  }
  else
    if ( !( [[#variablebc2d76e0]]|| [[#variablebc2d78c0]]())) {
      setEnabled(false);
    }
  recreate();
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#bc2d7960]]
isAccess 
12[[#bc2d7960]]
isModification 
13[[#bc2d7960]]
isCaught 
14[[#bc2d7960]]
isUncaught 
21[[#bc9362a0]]
ACCESS 
22[[#bc9362a0]]
MODIFICATION 
23[[#bc9362a0]]
CAUGHT 
24[[#bc9362a0]]
UNCAUGHT 
31[[#bc936260]]
setAccess 
32[[#bc936260]]
setModification 
33[[#bc936260]]
setCaught 
34[[#bc936260]]
setUncaught 
41[[#bc2d76e0]]
access 
42[[#bc2d76e0]]
modification 
43[[#bc2d76e0]]
caught 
44[[#bc2d76e0]]
uncaught 
51[[#bc2d78c0]]
isModification 
52[[#bc2d78c0]]
isAccess 
53[[#bc2d78c0]]
isUncaught 
54[[#bc2d78c0]]
isCaught