Unmatched statement Object type=domain.getTypeClassifier(object); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
4
if(type!=null)
4
if(type!=null)
4
if(result!=null)
Differences
Expression1
Expression2
Difference
type
result
VARIABLE_NAME_MISMATCH
java.lang.Object
java.lang.String
VARIABLE_TYPE_MISMATCH
Preondition Violations
Type java.lang.Object of variable type does not match with type java.lang.String of variable result
Make classes java.lang.Object and java.lang.String extend a common superclass
4
if(result!=null)
5
returnresult;
Preondition Violations
Unmatched return result;
5
returnresult;
5
types.add(type);
Precondition Violations (3)
Row
Violation
1
Unmatched statement Object type=domain.getTypeClassifier(object); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
2
Type java.lang.Object of variable type does not match with type java.lang.String of variable result