_readBlobs = false; // set to the default String readBlobsString = DTProperties.get( thisClassName, "readBlobs"); if (readBlobsString != null && readBlobsString.equals("true")) _readBlobs = true; _readCompleteBlobs = false; // set to the default String readCompleteBlobsString = DTProperties.get( thisClassName, "readCompleteBlobs"); if (readCompleteBlobsString != null && readCompleteBlobsString.equals("true")) _readCompleteBlobs = true; _readBlobsSize = LARGE_COLUMN_DEFAULT_READ_LENGTH; // set to default String readBlobsSizeString = DTProperties.get( thisClassName, "readBlobsSize"); if (readBlobsSizeString != null) _readBlobsSize = Integer.parseInt(readBlobsSizeString); propertiesAlreadyLoaded = true;
useJavaDefaultFormat =true; // set to use the Java default String useJavaDefaultFormatString = DTProperties.get( thisClassName, "useJavaDefaultFormat"); if (useJavaDefaultFormatString != null && useJavaDefaultFormatString.equals("false")) useJavaDefaultFormat =false; // get which locale-dependent format to use localeFormat =DateFormat.SHORT; // set to use the Java default String localeFormatString = DTProperties.get( thisClassName, "localeFormat"); if (localeFormatString != null) localeFormat = Integer.parseInt(localeFormatString); // use lenient input or force user to enter exact format lenient = true; // set to allow less stringent input String lenientString = DTProperties.get( thisClassName, "lenient"); if (lenientString != null && lenientString.equals("false")) lenient =false;
Clone fragments detected by clone detection tool
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeBlob.java File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeTime.java
Method name: void loadProperties() Method name: void loadProperties()
Number of AST nodes: 13 Number of AST nodes: 12
1
_readBlobs = false;	// set to the default
1
useJavaDefaultFormat =true;	// set to use the Java default
2
			String readBlobsString = DTProperties.get(
2
         String useJavaDefaultFormatString = DTProperties.get(
3
				thisClassName, "readBlobs");
3
            thisClassName, "
4
			if (readBlobsString != null && readBlobs
4
useJavaDefaultFormat");
5
String.equals("true"))
5
         if (useJavaDefaultFormatString != null && useJavaDefaultFormatString.equals("false"))
6
				_readBlobs = true;
7
			_readCompleteBlobs = false
6
            useJavaDefaultFormat =false;
7
         // get which locale-dependent format to use
8
;	// set to the default
8
         localeFormat =DateFormat.SHORT;	// set to use the Java default
9
			String readCompleteBlobsString = DTProperties.get(
9
         String localeFormatString = DTProperties.get(
10
				thisClassName, "readCompleteBlobs");
10
            thisClassName, "
11
			if (readCompleteBlobsString != null && readCompleteBlobsString.equals("true"))
12
				_readCompleteBlobs = true;
13
			_readBlobsSize = LARGE_COLUMN_DEFAULT_READ_LENGTH;	// set to default
14
			String readBlobsSize
11
localeFormat");
12
         if (localeFormatString != null)
13
            localeFormat = Integer.parseInt(localeFormatString);
14
         // use lenient input or force user to enter exact format
15
         lenient = true;	// set to allow less stringent input
15
String = DTProperties.get(
16
         String lenientString = DTProperties.get(
16
				thisClassName, "readBlobsSize");
17
            thisClassName, "
17
			if (readBlobsSizeString != null)
18
				_readBlobsSize = Integer.parseInt(readBlobsSizeString);
19
			propertiesAlreadyLoaded = tru
18
lenient");
19
         if (lenientString != null && lenientString.equals("false"))
20
e;
20
            lenient =false;
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)1.1
Clones locationClones are in different classes having the same super class
Number of node comparisons43
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements12
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)5.8
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    2
    _readBlobs = false;
    2
    _readBlobs = false;
    Preondition Violations
    Unmatched statement _readBlobs=false; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                            
    3
    String readBlobsString = DTProperties.get(thisClassName, "readBlobs");
    3
    String readBlobsString = DTProperties.get(thisClassName, "readBlobs");
    3
    String useJavaDefaultFormatString = DTProperties.get(thisClassName, "useJavaDefaultFormat");
    Differences
    Expression1Expression2Difference
    readBlobsStringuseJavaDefaultFormatStringVARIABLE_NAME_MISMATCH
    "readBlobs""useJavaDefaultFormat"LITERAL_VALUE_MISMATCH
    3
    String useJavaDefaultFormatString = DTProperties.get(thisClassName, "useJavaDefaultFormat");
    4
    if (readBlobsString != null && readBlobsString.equals("true"))
    4
    if (readBlobsString != null && readBlobsString.equals("true"))
    4
    if (useJavaDefaultFormatString != null && useJavaDefaultFormatString.equals("false"))
    Differences
    Expression1Expression2Difference
    readBlobsStringuseJavaDefaultFormatStringVARIABLE_NAME_MISMATCH
    "true""false"LITERAL_VALUE_MISMATCH
    readBlobsStringuseJavaDefaultFormatStringVARIABLE_NAME_MISMATCH
    4
    if (useJavaDefaultFormatString != null && useJavaDefaultFormatString.equals("false"))
    5
    _readBlobs = true;
    5
    _readBlobs = true;
    5
    useJavaDefaultFormat = false;
    Differences
    Expression1Expression2Difference
    _readBlobsuseJavaDefaultFormatVARIABLE_NAME_MISMATCH
    truefalseLITERAL_VALUE_MISMATCH
    Preondition Violations
    Expression _readBlobs is a field being modified, and thus it cannot be parameterized
    Expression useJavaDefaultFormat is a field being modified, and thus it cannot be parameterized
    5
    useJavaDefaultFormat = false;
    6
    _readCompleteBlobs = false;
    6
    _readCompleteBlobs = false;
    10
    lenient = true;
    Differences
    Expression1Expression2Difference
    _readCompleteBlobslenientVARIABLE_NAME_MISMATCH
    falsetrueLITERAL_VALUE_MISMATCH
    10
    lenient = true;
    7
    String readCompleteBlobsString = DTProperties.get(thisClassName, "readCompleteBlobs");
    7
    String readCompleteBlobsString = DTProperties.get(thisClassName, "readCompleteBlobs");
    11
    String lenientString = DTProperties.get(thisClassName, "lenient");
    Differences
    Expression1Expression2Difference
    readCompleteBlobsStringlenientStringVARIABLE_NAME_MISMATCH
    "readCompleteBlobs""lenient"LITERAL_VALUE_MISMATCH
    11
    String lenientString = DTProperties.get(thisClassName, "lenient");
    8
    if (readCompleteBlobsString != null && readCompleteBlobsString.equals("true"))
    8
    if (readCompleteBlobsString != null && readCompleteBlobsString.equals("true"))
    12
    if (lenientString != null && lenientString.equals("false"))
    Differences
    Expression1Expression2Difference
    readCompleteBlobsStringlenientStringVARIABLE_NAME_MISMATCH
    "true""false"LITERAL_VALUE_MISMATCH
    readCompleteBlobsStringlenientStringVARIABLE_NAME_MISMATCH
    12
    if (lenientString != null && lenientString.equals("false"))
    9
    _readCompleteBlobs = true;
    9
    _readCompleteBlobs = true;
    13
    lenient = false;
    Differences
    Expression1Expression2Difference
    _readCompleteBlobslenientVARIABLE_NAME_MISMATCH
    truefalseLITERAL_VALUE_MISMATCH
    13
    lenient = false;
    10
    _readBlobsSize = LARGE_COLUMN_DEFAULT_READ_LENGTH;
    10
    _readBlobsSize = LARGE_COLUMN_DEFAULT_READ_LENGTH;
    6
    localeFormat = DateFormat.SHORT;
    Differences
    Expression1Expression2Difference
    _readBlobsSizelocaleFormatVARIABLE_NAME_MISMATCH
    LARGE_COLUMN_DEFAULT_READ_LENGTHDateFormat.SHORTTYPE_COMPATIBLE_REPLACEMENT
    6
    localeFormat = DateFormat.SHORT;
    11
    String readBlobsSizeString = DTProperties.get(thisClassName, "readBlobsSize");
    11
    String readBlobsSizeString = DTProperties.get(thisClassName, "readBlobsSize");
    7
    String localeFormatString = DTProperties.get(thisClassName, "localeFormat");
    Differences
    Expression1Expression2Difference
    readBlobsSizeStringlocaleFormatStringVARIABLE_NAME_MISMATCH
    "readBlobsSize""localeFormat"LITERAL_VALUE_MISMATCH
    7
    String localeFormatString = DTProperties.get(thisClassName, "localeFormat");
    12
    if (readBlobsSizeString != null)
    12
    if (readBlobsSizeString != null)
    8
    if (localeFormatString != null)
    Differences
    Expression1Expression2Difference
    readBlobsSizeStringlocaleFormatStringVARIABLE_NAME_MISMATCH
    8
    if (localeFormatString != null)
    13
    _readBlobsSize = Integer.parseInt(readBlobsSizeString);
    13
    _readBlobsSize = Integer.parseInt(readBlobsSizeString);
    9
    localeFormat = Integer.parseInt(localeFormatString);
    Differences
    Expression1Expression2Difference
    _readBlobsSizelocaleFormatVARIABLE_NAME_MISMATCH
    readBlobsSizeStringlocaleFormatStringVARIABLE_NAME_MISMATCH
    9
    localeFormat = Integer.parseInt(localeFormatString);
    14
    propertiesAlreadyLoaded = true;
    14
    propertiesAlreadyLoaded = true;
    2
    useJavaDefaultFormat = true;
    Differences
    Expression1Expression2Difference
    propertiesAlreadyLoadeduseJavaDefaultFormatVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression propertiesAlreadyLoaded is a field being modified, and thus it cannot be parameterized
    Expression useJavaDefaultFormat is a field being modified, and thus it cannot be parameterized
    2
    useJavaDefaultFormat = true;
    Precondition Violations (5)
    Row Violation
    1Unmatched statement _readBlobs=false; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2Expression _readBlobs is a field being modified, and thus it cannot be parameterized
    3Expression useJavaDefaultFormat is a field being modified, and thus it cannot be parameterized
    4Expression propertiesAlreadyLoaded is a field being modified, and thus it cannot be parameterized
    5Expression useJavaDefaultFormat is a field being modified, and thus it cannot be parameterized