CloneSet245


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
151650.952class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
115310
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Modifier.java
215336
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Modifier.java
315362
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Modifier.java
415388
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Modifier.java
515414
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Modifier.java
611167
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/Flags.java
711186
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/Flags.java
811215
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/Flags.java
911233
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/Flags.java
1011252
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/Flags.java
1112270
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/Flags.java
1211289
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/Flags.java
1315311
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/Flags.java
1415337
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/Flags.java
156130
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/JavaElementImageProvider.java
166398
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/refactoring/RenameSupport.java
Clone Instance
1
Line Count
15
Source Line
310
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Modifier.java

        /**
         * Returns whether the given flags includes the "abstract" modifier.
         * Applicable to types and methods.
         * 
         * @param flags the modifier flags
         * @return <code>true</code> if the <code>ABSTRACT</code> bit is
         *   set, and <code>false</code> otherwise
         * @since 2.0
         */
        public static boolean isAbstract(int flags) {
                return (flags&  ABSTRACT) != 0;
        }

        /**
         * Returns whether the given flags includes the "final" modifier.
         * Applicable to types, methods, fields, and variables.
         * 
         * @param flags the modifier flags
         * @return <code>true</code> if the <code>FINAL</code> bit is
         *   set, and <code>false</code> otherwise
         * @since 2.0
         */
        public static boolean isFinal(int flags) {
                return (flags&  FINAL) != 0;
        }


Clone Instance
2
Line Count
15
Source Line
336
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Modifier.java

        /**
         * Returns whether the given flags includes the "native" modifier.
         * Applicable only to methods.
         * 
         * @param flags the modifier flags
         * @return <code>true</code> if the <code>NATIVE</code> bit is
         *   set, and <code>false</code> otherwise
         * @since 2.0
         */
        public static boolean isNative(int flags) {
                return (flags&  NATIVE) != 0;
        }

        /**
         * Returns whether the given flags includes the "private" modifier.
         * Applicable to types, methods, constructors, and fields.
         * 
         * @param flags the modifier flags
         * @return <code>true</code> if the <code>PRIVATE</code> bit is
         *   set, and <code>false</code> otherwise
         * @since 2.0
         */
        public static boolean isPrivate(int flags) {
                return (flags&  PRIVATE) != 0;
        }


Clone Instance
3
Line Count
15
Source Line
362
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Modifier.java

        /**
         * Returns whether the given flags includes the "protected" modifier.
         * Applicable to types, methods, constructors, and fields.
         * 
         * @param flags the modifier flags
         * @return <code>true</code> if the <code>PROTECTED</code> bit is
         *   set, and <code>false</code> otherwise
         * @since 2.0
         */
        public static boolean isProtected(int flags) {
                return (flags&  PROTECTED) != 0;
        }

        /**
         * Returns whether the given flags includes the "public" modifier.
         * Applicable to types, methods, constructors, and fields.
         * 
         * @param flags the modifier flags
         * @return <code>true</code> if the <code>PUBLIC</code> bit is
         *   set, and <code>false</code> otherwise
         * @since 2.0
         */
        public static boolean isPublic(int flags) {
                return (flags&  PUBLIC) != 0;
        }


Clone Instance
4
Line Count
15
Source Line
388
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Modifier.java

        /**
         * Returns whether the given flags includes the "static" modifier.
         * Applicable to types, methods, fields, and initializers.
         * 
         * @param flags the modifier flags
         * @return <code>true</code> if the <code>STATIC</code> bit is
         *   set, and <code>false</code> otherwise
         * @since 2.0
         */
        public static boolean isStatic(int flags) {
                return (flags&  STATIC) != 0;
        }

        /**
         * Returns whether the given flags includes the "strictfp" modifier.
         * Applicable to types and methods.
         * 
         * @param flags the modifier flags
         * @return <code>true</code> if the <code>STRICTFP</code> bit is
         *   set, and <code>false</code> otherwise
         * @since 2.0
         */
        public static boolean isStrictfp(int flags) {
                return (flags&  STRICTFP) != 0;
        }


Clone Instance
5
Line Count
15
Source Line
414
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Modifier.java

        /**
         * Returns whether the given flags includes the "synchronized" modifier.
         * Applicable only to methods.
         * 
         * @param flags the modifier flags
         * @return <code>true</code> if the <code>SYNCHRONIZED</code> bit is
         *   set, and <code>false</code> otherwise
         * @since 2.0
         */
        public static boolean isSynchronized(int flags) {
                return (flags&  SYNCHRONIZED) != 0;
        }

        /**
         * Returns whether the given flags includes the "transient" modifier.
         * Applicable only to fields.
         * 
         * @param flags the modifier flags
         * @return <code>true</code> if the <code>TRANSIENT</code> bit is
         *   set, and <code>false</code> otherwise
         * @since 2.0
         */
        public static boolean isTransient(int flags) {
                return (flags&  TRANSIENT) != 0;
        }


Clone Instance
6
Line Count
11
Source Line
167
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/Flags.java

        /**
         * Returns whether the given integer includes the indication that the 
         * element is deprecated (<code>@deprecated</code> tag in Javadoc comment).
         *
         * @param flags the flags
         * @return <code>true</code> if the element is marked as deprecated
         */
        public static boolean isDeprecated(int flags) {
                return (flags&  AccDeprecated) != 0;
        }

        /**
         * Returns whether the given integer includes the <code>final</code> modifier.
         *
         * @param flags the flags
         * @return <code>true</code> if the <code>final</code> modifier is included
         */
        public static boolean isFinal(int flags) {
                return (flags&  AccFinal) != 0;
        }


Clone Instance
7
Line Count
11
Source Line
186
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/Flags.java

        /**
         * Returns whether the given integer includes the <code>interface</code> modifier.
         *
         * @param flags the flags
         * @return <code>true</code> if the <code>interface</code> modifier is included
         * @since 2.0
         */
        public static boolean isInterface(int flags) {
                return (flags&  AccInterface) != 0;
        }

        /**
         * Returns whether the given integer includes the <code>native</code> modifier.
         *
         * @param flags the flags
         * @return <code>true</code> if the <code>native</code> modifier is included
         */
        public static boolean isNative(int flags) {
                return (flags&  AccNative) != 0;
        }


Clone Instance
8
Line Count
11
Source Line
215
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/Flags.java

        /**
         * Returns whether the given integer includes the <code>private</code> modifier.
         *
         * @param flags the flags
         * @return <code>true</code> if the <code>private</code> modifier is included
         */
        public static boolean isPrivate(int flags) {
                return (flags&  AccPrivate) != 0;
        }

        /**
         * Returns whether the given integer includes the <code>protected</code> modifier.
         *
         * @param flags the flags
         * @return <code>true</code> if the <code>protected</code> modifier is included
         */
        public static boolean isProtected(int flags) {
                return (flags&  AccProtected) != 0;
        }


Clone Instance
9
Line Count
11
Source Line
233
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/Flags.java

        /**
         * Returns whether the given integer includes the <code>public</code> modifier.
         *
         * @param flags the flags
         * @return <code>true</code> if the <code>public</code> modifier is included
         */
        public static boolean isPublic(int flags) {
                return (flags&  AccPublic) != 0;
        }

        /**
         * Returns whether the given integer includes the <code>static</code> modifier.
         *
         * @param flags the flags
         * @return <code>true</code> if the <code>static</code> modifier is included
         */
        public static boolean isStatic(int flags) {
                return (flags&  AccStatic) != 0;
        }


Clone Instance
10
Line Count
11
Source Line
252
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/Flags.java

        /**
         * Returns whether the given integer includes the <code>super</code> modifier.
         *
         * @param flags the flags
         * @return <code>true</code> if the <code>super</code> modifier is included
         * @since 3.2
         */
        public static boolean isSuper(int flags) {
                return (flags&  AccSuper) != 0;
        }

        /**
         * Returns whether the given integer includes the <code>strictfp</code> modifier.
         *
         * @param flags the flags
         * @return <code>true</code> if the <code>strictfp</code> modifier is included
         */
        public static boolean isStrictfp(int flags) {
                return (flags&  AccStrictfp) != 0;
        }


Clone Instance
11
Line Count
12
Source Line
270
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/Flags.java

        /**
         * Returns whether the given integer includes the <code>synchronized</code> modifier.
         *
         * @param flags the flags
         * @return <code>true</code> if the <code>synchronized</code> modifier is included
         */
        public static boolean isSynchronized(int flags) {
                return (flags&  AccSynchronized) != 0;
        }

        /**
         * Returns whether the given integer includes the indication that the 
         * element is synthetic.
         *
         * @param flags the flags
         * @return <code>true</code> if the element is marked synthetic
         */
        public static boolean isSynthetic(int flags) {
                return (flags&  AccSynthetic) != 0;
        }


Clone Instance
12
Line Count
11
Source Line
289
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/Flags.java

        /**
         * Returns whether the given integer includes the <code>transient</code> modifier.
         *
         * @param flags the flags
         * @return <code>true</code> if the <code>transient</code> modifier is included
         */
        public static boolean isTransient(int flags) {
                return (flags&  AccTransient) != 0;
        }

        /**
         * Returns whether the given integer includes the <code>volatile</code> modifier.
         *
         * @param flags the flags
         * @return <code>true</code> if the <code>volatile</code> modifier is included
         */
        public static boolean isVolatile(int flags) {
                return (flags&  AccVolatile) != 0;
        }


Clone Instance
13
Line Count
15
Source Line
311
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/Flags.java

        /**
         * Returns whether the given integer has the <code>AccBridge</code>
         * bit set.
         *
         * @param flags the flags
         * @return <code>true</code> if the <code>AccBridge</code> flag is included
         * @see #AccBridge
         * @since 3.0
         */
        public static boolean isBridge(int flags) {
                return (flags&  AccBridge) != 0;
        }

        /**
         * Returns whether the given integer has the <code>AccVarargs</code>
         * bit set.
         *
         * @param flags the flags
         * @return <code>true</code> if the <code>AccVarargs</code> flag is included
         * @see #AccVarargs
         * @since 3.0
         */
        public static boolean isVarargs(int flags) {
                return (flags&  AccVarargs) != 0;
        }


Clone Instance
14
Line Count
15
Source Line
337
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/Flags.java

        /**
         * Returns whether the given integer has the <code>AccEnum</code>
         * bit set.
         *
         * @param flags the flags
         * @return <code>true</code> if the <code>AccEnum</code> flag is included
         * @see #AccEnum
         * @since 3.0
         */
        public static boolean isEnum(int flags) {
                return (flags&  AccEnum) != 0;
        }

        /**
         * Returns whether the given integer has the <code>AccAnnotation</code>
         * bit set.
         *
         * @param flags the flags
         * @return <code>true</code> if the <code>AccAnnotation</code> flag is included
         * @see #AccAnnotation
         * @since 3.0
         */
        public static boolean isAnnotation(int flags) {
                return (flags&  AccAnnotation) != 0;
        }


Clone Instance
15
Line Count
6
Source Line
130
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/JavaElementImageProvider.java

        private static boolean useSmallSize(int flags) {
                return (flags&  SMALL_ICONS) != 0;
        }

        private static boolean useLightIcons(int flags) {
                return (flags&  LIGHT_TYPE_ICONS) != 0;
        }


Clone Instance
16
Line Count
6
Source Line
398
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/refactoring/RenameSupport.java

        private static boolean updateGetterMethod(int flags) {
                return (flags&  UPDATE_GETTER_METHOD) != 0;
        }

        private static boolean updateSetterMethod(int flags) {
                return (flags&  UPDATE_SETTER_METHOD) != 0;
        }


Clone AbstractionParameter Count: 5Parameter Bindings

 [[#variableb76320a0]]static boolean  [[#variableb30aa300]](int flags) {
  return (flags& [[#variableba635b00]]) != 0;
}

 [[#variableb76320a0]]static boolean  [[#variableb76320c0]](int flags) {
  return (flags& [[#variableb7632060]]) != 0;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b76320a0]]
/**
 * Returns whether the given flags includes the "synchronized" modifier.
 * Applicable only to methods.
 * 
 * @param flags the modifier flags
 * @return <code>true</code> if the <code>SYNCHRONIZED</code> bit is
 *   set, and <code>false</code> otherwise
 * @since 2.0
 */
public 
12[[#b76320a0]]
/**
 * Returns whether the given flags includes the "static" modifier.
 * Applicable to types, methods, fields, and initializers.
 * 
 * @param flags the modifier flags
 * @return <code>true</code> if the <code>STATIC</code> bit is
 *   set, and <code>false</code> otherwise
 * @since 2.0
 */
public 
13[[#b76320a0]]
/**
 * Returns whether the given flags includes the "protected" modifier.
 * Applicable to types, methods, constructors, and fields.
 * 
 * @param flags the modifier flags
 * @return <code>true</code> if the <code>PROTECTED</code> bit is
 *   set, and <code>false</code> otherwise
 * @since 2.0
 */
public 
14[[#b76320a0]]
/**
 * Returns whether the given flags includes the "native" modifier.
 * Applicable only to methods.
 * 
 * @param flags the modifier flags
 * @return <code>true</code> if the <code>NATIVE</code> bit is
 *   set, and <code>false</code> otherwise
 * @since 2.0
 */
public 
15[[#b76320a0]]
/**
 * Returns whether the given flags includes the "abstract" modifier.
 * Applicable to types and methods.
 * 
 * @param flags the modifier flags
 * @return <code>true</code> if the <code>ABSTRACT</code> bit is
 *   set, and <code>false</code> otherwise
 * @since 2.0
 */
public 
16[[#b76320a0]]
/**
 * Returns whether the given integer has the <code>AccEnum</code>
 * bit set.
 *
 * @param flags the flags
 * @return <code>true</code> if the <code>AccEnum</code> flag is included
 * @see #AccEnum
 * @since 3.0
 */
public 
17[[#b76320a0]]
/**
 * Returns whether the given integer has the <code>AccBridge</code>
 * bit set.
 *
 * @param flags the flags
 * @return <code>true</code> if the <code>AccBridge</code> flag is included
 * @see #AccBridge
 * @since 3.0
 */
public 
18[[#b76320a0]]
/**
 * Returns whether the given integer includes the <code>transient</code> modifier.
 *
 * @param flags the flags
 * @return <code>true</code> if the <code>transient</code> modifier is included
 */
public 
19[[#b76320a0]]
/**
 * Returns whether the given integer includes the <code>synchronized</code> modifier.
 *
 * @param flags the flags
 * @return <code>true</code> if the <code>synchronized</code> modifier is included
 */
public 
110[[#b76320a0]]
/**
 * Returns whether the given integer includes the <code>super</code> modifier.
 *
 * @param flags the flags
 * @return <code>true</code> if the <code>super</code> modifier is included
 * @since 3.2
 */
public 
111[[#b76320a0]]
/**
 * Returns whether the given integer includes the <code>public</code> modifier.
 *
 * @param flags the flags
 * @return <code>true</code> if the <code>public</code> modifier is included
 */
public 
112[[#b76320a0]]
/**
 * Returns whether the given integer includes the <code>private</code> modifier.
 *
 * @param flags the flags
 * @return <code>true</code> if the <code>private</code> modifier is included
 */
public 
113[[#b76320a0]]
/**
 * Returns whether the given integer includes the <code>interface</code> modifier.
 *
 * @param flags the flags
 * @return <code>true</code> if the <code>interface</code> modifier is included
 * @since 2.0
 */
public 
114[[#b76320a0]]
/**
 * Returns whether the given integer includes the indication that the 
 * element is deprecated (<code>@deprecated</code> tag in Javadoc comment).
 *
 * @param flags the flags
 * @return <code>true</code> if the element is marked as deprecated
 */
public 
115[[#b76320a0]]
private 
116[[#b76320a0]]
private 
21[[#b30aa300]]
isSynchronized 
22[[#b30aa300]]
isStatic 
23[[#b30aa300]]
isProtected 
24[[#b30aa300]]
isNative 
25[[#b30aa300]]
isAbstract 
26[[#b30aa300]]
isEnum 
27[[#b30aa300]]
isBridge 
28[[#b30aa300]]
isTransient 
29[[#b30aa300]]
isSynchronized 
210[[#b30aa300]]
isSuper 
211[[#b30aa300]]
isPublic 
212[[#b30aa300]]
isPrivate 
213[[#b30aa300]]
isInterface 
214[[#b30aa300]]
isDeprecated 
215[[#b30aa300]]
useSmallSize 
216[[#b30aa300]]
updateGetterMethod 
31[[#ba635b00]]
SYNCHRONIZED 
32[[#ba635b00]]
STATIC 
33[[#ba635b00]]
PROTECTED 
34[[#ba635b00]]
NATIVE 
35[[#ba635b00]]
ABSTRACT 
36[[#ba635b00]]
AccEnum 
37[[#ba635b00]]
AccBridge 
38[[#ba635b00]]
AccTransient 
39[[#ba635b00]]
AccSynchronized 
310[[#ba635b00]]
AccSuper 
311[[#ba635b00]]
AccPublic 
312[[#ba635b00]]
AccPrivate 
313[[#ba635b00]]
AccInterface 
314[[#ba635b00]]
AccDeprecated 
315[[#ba635b00]]
SMALL_ICONS 
316[[#ba635b00]]
UPDATE_GETTER_METHOD 
41[[#b76320c0]]
isTransient 
42[[#b76320c0]]
isStrictfp 
43[[#b76320c0]]
isPublic 
44[[#b76320c0]]
isPrivate 
45[[#b76320c0]]
isFinal 
46[[#b76320c0]]
isAnnotation 
47[[#b76320c0]]
isVarargs 
48[[#b76320c0]]
isVolatile 
49[[#b76320c0]]
isSynthetic 
410[[#b76320c0]]
isStrictfp 
411[[#b76320c0]]
isStatic 
412[[#b76320c0]]
isProtected 
413[[#b76320c0]]
isNative 
414[[#b76320c0]]
isFinal 
415[[#b76320c0]]
useLightIcons 
416[[#b76320c0]]
updateSetterMethod 
51[[#b7632060]]
TRANSIENT 
52[[#b7632060]]
STRICTFP 
53[[#b7632060]]
PUBLIC 
54[[#b7632060]]
PRIVATE 
55[[#b7632060]]
FINAL 
56[[#b7632060]]
AccAnnotation 
57[[#b7632060]]
AccVarargs 
58[[#b7632060]]
AccVolatile 
59[[#b7632060]]
AccSynthetic 
510[[#b7632060]]
AccStrictfp 
511[[#b7632060]]
AccStatic 
512[[#b7632060]]
AccProtected 
513[[#b7632060]]
AccNative 
514[[#b7632060]]
AccFinal 
515[[#b7632060]]
LIGHT_TYPE_ICONS 
516[[#b7632060]]
UPDATE_SETTER_METHOD