question: AutoDetectDataType switchType ( Object obj ) { int typeId = getTypeId ( obj ) ; AutoDetectDataType l = last ; if ( typeId != l . typeId ) { last = l = newType ( typeId ) ; } return l ; }
target:  Switch the last remembered type to match the type of the given object.