TypeReference targetType = getType(target); final TypeReference argumentType = getType(argument); final TypeReference castType = getType(cast); final TypeReference operandType = getType(castOperand); addToResults(cast, false);
TypeReference targetType = getType(target); final TypeReference argumentType = getType(argument); final TypeReference castType = getType(cast); final TypeReference operandType = getType(castOperand); addToResults(cast, false);
final TypeReference topCastType = getType(node); final TypeReference innerCastType = getType(innerCast.getType()); final TypeReference innerOperandType = getType(innerOperand); addToResults(innerCast, false); addToResults(node, false); addToResults(innerCast, true); addToResults(innerCast, true); addToResults(innerCast, true); addToResults(innerCast, true); final TypeReference operandType = getType(operand); final TypeReference conditionalType = getType(parent); if (!checkResolveAfterRemoveCast(parent)) { return null; final Expression elseExpression = ((ConditionalExpression) parent).getFalseExpression(); final Expression opposite = (thenExpression == node) ? elseExpression : thenExpression; final TypeReference oppositeType = getType(opposite); else if (parent instanceof SynchronizedStatement && getType(e) instanceof PrimitiveType) { return null;
final TypeReference topCastType = getType(node); final TypeReference innerCastType = getType(innerCast.getType()); final TypeReference innerOperandType = getType(innerOperand); addToResults(innerCast, false); final ConversionType valueToInner = getNumericConversion(innerCastType, innerOperandType, innerOperand); final ConversionType outerToInner = getNumericConversion(innerCastType, topCastType, innerOperand); addToResults(node, false); addToResults(innerCast, true); addToResults(innerCast, true); addToResults(innerCast, true); final ConversionType valueToOuter = getNumericConversion(topCastType, innerOperandType, innerOperand); addToResults(innerCast, true); addToResults(innerCast, true); final TypeReference operandType = getType(operand); final TypeReference conditionalType = getType(parent); if (!checkResolveAfterRemoveCast(parent)) { return null;
if (isInPolymorphicCall(cast)) { return true; final TypeReference opType = getType(operand); final TypeReference castType = getType(cast.getType()); castChangesComparisonSemantics(firstOperand, otherOperand, operand, expression.getOperator())) { if (opType.isPrimitive() && !(getType(parent) instanceof PrimitiveType)) { final TypeReference expectedType = TypeUtilities.getExpectedTypeByParent(_resolver, (Expression) parent);
if (isInPolymorphicCall(cast)) { return true; final TypeReference opType = getType(operand); final TypeReference castType = getType(cast.getType()); if (castChangesBinarySemantics(firstOperand, otherOperand, operand, operator)) { return true; final TypeReference tFirst = getType(firstOperand); final TypeReference tOther = getType(otherOperand); final TypeReference t1 = MetadataHelper.findCommonSuperType(unbox(tFirst) ,unbox(tOther)); final TypeReference t2 = MetadataHelper.findCommonSuperType(unbox(opType) ,unbox(tOther)); final ConversionType conversionType = getNumericConversion(castType, opType, operand); !(getType(parent) instanceof PrimitiveType)) { if (expectedType != null && unbox(expectedType).isPrimitive()) { return true;
final TypeReference topCastType = getType(node); final TypeReference innerCastType = getType(innerCast.getType()); final TypeReference innerOperandType = getType(innerOperand); addToResults(innerCast, false); addToResults(node, false); addToResults(innerCast, true); addToResults(innerCast, true); addToResults(innerCast, true); addToResults(innerCast, true); final TypeReference operandType = getType(operand); final TypeReference conditionalType = getType(parent); if (!checkResolveAfterRemoveCast(parent)) { return null; final Expression elseExpression = ((ConditionalExpression) parent).getFalseExpression(); final Expression opposite = (thenExpression == node) ? elseExpression : thenExpression; final TypeReference oppositeType = getType(opposite); else if (parent instanceof SynchronizedStatement && getType(e) instanceof PrimitiveType) { return null;
if (isInPolymorphicCall(cast)) { return true; final TypeReference opType = getType(operand); final TypeReference castType = getType(cast.getType()); castChangesComparisonSemantics(firstOperand, otherOperand, operand, expression.getOperator())) { if (opType.isPrimitive() && !(getType(parent) instanceof PrimitiveType)) { final TypeReference expectedType = TypeUtilities.getExpectedTypeByParent(_resolver, (Expression) parent);
targetType = getType(((InvocationExpression) grandParent).getTarget()); targetType = getType(grandParent); final List<TypeReference> argumentTypes = getTypes(arguments); final TypeReference operandType = getType(trueOperand); final TypeReference operandType = getType(falseOperand); final TypeReference newArgumentType = getType(toReplace);
targetType = getType(((InvocationExpression) grandParent).getTarget()); targetType = getType(grandParent); final List<TypeReference> argumentTypes = getTypes(arguments); final TypeReference operandType = getType(trueOperand); final TypeReference operandType = getType(falseOperand); final TypeReference newArgumentType = getType(toReplace);
targetType = getType(((InvocationExpression) grandParent).getTarget()); targetType = getType(grandParent); final List<TypeReference> argumentTypes = getTypes(arguments); final TypeReference operandType = getType(trueOperand); final TypeReference operandType = getType(falseOperand); final TypeReference newArgumentType = getType(toReplace);
if (isTypeCastSemantic(cast)) { return; final TypeReference castTo = getType(cast.getType()); final Expression operand = cast.getExpression(); TypeReference operandType = getType(operand); final TypeReference referenceType = getType(parent); !isCastRedundantInReferenceExpression(referenceType, operand)) { if (arrayAccessAtTheLeftSideOfAssignment(parent)) { if (MetadataHelper.isAssignableFrom(operandType, castTo, false) && MetadataHelper.getArrayRank(operandType) == MetadataHelper.getArrayRank(castTo)) { addToResults(cast, false); addToResults(cast, false);
if (isTypeCastSemantic(cast)) { return; final TypeReference castTo = getType(cast.getType()); final Expression operand = cast.getExpression(); TypeReference operandType = getType(operand); final TypeReference referenceType = getType(parent); !isCastRedundantInReferenceExpression(referenceType, operand)) { if (arrayAccessAtTheLeftSideOfAssignment(parent)) { if (MetadataHelper.isAssignableFrom(operandType, castTo, false) && MetadataHelper.getArrayRank(operandType) == MetadataHelper.getArrayRank(castTo)) { addToResults(cast, false); addToResults(cast, false);
if (isTypeCastSemantic(cast)) { return; final TypeReference castTo = getType(cast.getType()); final Expression operand = cast.getExpression(); TypeReference operandType = getType(operand); final TypeReference referenceType = getType(parent); !isCastRedundantInReferenceExpression(referenceType, operand)) { if (arrayAccessAtTheLeftSideOfAssignment(parent)) { if (MetadataHelper.isAssignableFrom(operandType, castTo, false) && MetadataHelper.getArrayRank(operandType) == MetadataHelper.getArrayRank(castTo)) { addToResults(cast, false); addToResults(cast, false);
final TypeReference operandType = getType(castOperand); addToResults((CastExpression) r, false); return; final TypeReference unboxedCastType = unbox(castType); final TypeReference unboxedLeftType = unbox(leftType); addToResults((CastExpression) r, true);
final CastExpression cast = (CastExpression) operand; final Expression toCast = cast.getExpression(); final TypeReference castType = getType(cast); final TypeReference innerType = getType(toCast); final TypeReference otherType = getType(other); addToResults(cast, false);