Home
last modified time | relevance | path

Searched refs:UnnecessaryCast (Results 1 – 25 of 27) sorted by relevance

12

/dports/java/eclipse-ecj/eclipse-ecj-4.4.2_1/org/eclipse/jdt/internal/compiler/ast/
H A DCastExpression.java110 if ((nestedCast.bits & ASTNode.UnnecessaryCast) == 0) return; in checkNeedForCastCast()
148 if ((expression.bits & ASTNode.UnnecessaryCast) == 0 && expression.resolvedType.isBaseType()) { in checkNeedForArgumentCast()
176 if ((argument.bits & ASTNode.UnnecessaryCast) == 0 && argument.resolvedType.isBaseType()) { in checkNeedForArgumentCasts()
212 if ((left.bits & ASTNode.UnnecessaryCast) == 0 && left.resolvedType.isBaseType()) { in checkNeedForArgumentCasts()
230 if ((right.bits & ASTNode.UnnecessaryCast) == 0 && right.resolvedType.isBaseType()) { in checkNeedForArgumentCasts()
570 …if ((this.bits & (ASTNode.UnnecessaryCast|ASTNode.DisableUnnecessaryCastCheck)) == ASTNode.Unneces… in resolveType()
630 this.bits |= ASTNode.UnnecessaryCast; in tagAsUnnecessaryCast()
H A DLocalDeclaration.java261 && (this.initialization.bits & ASTNode.UnnecessaryCast) == 0) { in resolve()
267 && (this.initialization.bits & ASTNode.UnnecessaryCast) == 0) { in resolve()
H A DAssignment.java222 && (this.expression.bits & ASTNode.UnnecessaryCast) == 0) { in resolveType()
229 && (this.expression.bits & ASTNode.UnnecessaryCast) == 0) { in resolveType()
H A DFieldDeclaration.java275 && (this.initialization.bits & ASTNode.UnnecessaryCast) == 0) { in resolve()
281 && (this.initialization.bits & ASTNode.UnnecessaryCast) == 0) { in resolve()
H A DReturnStatement.java353 … && (this.expression.bits & (ASTNode.UnnecessaryCast|ASTNode.DisableUnnecessaryCastCheck)) == 0) { in resolve()
360 … && (this.expression.bits & (ASTNode.UnnecessaryCast|ASTNode.DisableUnnecessaryCastCheck)) == 0) { in resolve()
H A DConditionalExpression.java674 … && (this.valueIfTrue.bits & (ASTNode.UnnecessaryCast|ASTNode.DisableUnnecessaryCastCheck)) == 0) { in computeConversions()
680 … && (this.valueIfTrue.bits & (ASTNode.UnnecessaryCast|ASTNode.DisableUnnecessaryCastCheck)) == 0) { in computeConversions()
696 …&& (this.valueIfFalse.bits & (ASTNode.UnnecessaryCast|ASTNode.DisableUnnecessaryCastCheck)) == 0) { in computeConversions()
702 …&& (this.valueIfFalse.bits & (ASTNode.UnnecessaryCast|ASTNode.DisableUnnecessaryCastCheck)) == 0) { in computeConversions()
H A DEqualExpression.java913 boolean unnecessaryLeftCast = (this.left.bits & UnnecessaryCast) != 0; in resolveType()
914 boolean unnecessaryRightCast = (this.right.bits & UnnecessaryCast) != 0; in resolveType()
H A DASTNode.java161 public static final int UnnecessaryCast = Bit15; field in ASTNode
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.jdt.core/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/
H A DCastExpression.java118 if ((nestedCast.bits & ASTNode.UnnecessaryCast) == 0) return; in checkNeedForCastCast()
174 if ((expression.bits & ASTNode.UnnecessaryCast) == 0 && expression.resolvedType.isBaseType()) { in checkNeedForArgumentCast()
202 if ((argument.bits & ASTNode.UnnecessaryCast) == 0 && argument.resolvedType.isBaseType()) { in checkNeedForArgumentCasts()
239 if ((left.bits & ASTNode.UnnecessaryCast) == 0 && left.resolvedType.isBaseType()) { in checkNeedForArgumentCasts()
260 if ((right.bits & ASTNode.UnnecessaryCast) == 0 && right.resolvedType.isBaseType()) { in checkNeedForArgumentCasts()
664 …if ((this.bits & (ASTNode.UnnecessaryCast|ASTNode.DisableUnnecessaryCastCheck)) == ASTNode.Unneces… in resolveType()
727 this.bits |= ASTNode.UnnecessaryCast; in tagAsUnnecessaryCast()
H A DReturnStatement.java361 … if ((this.expression.bits & (ASTNode.UnnecessaryCast|ASTNode.DisableUnnecessaryCastCheck)) == 0) { in resolve()
363 …!= null && lambda.argumentsTypeElided() && (this.expression.bits & ASTNode.UnnecessaryCast) != 0) { in resolve()
373 … && (this.expression.bits & (ASTNode.UnnecessaryCast|ASTNode.DisableUnnecessaryCastCheck)) == 0) { in resolve()
H A DAssignment.java234 && (this.expression.bits & ASTNode.UnnecessaryCast) == 0) { in resolveType()
241 && (this.expression.bits & ASTNode.UnnecessaryCast) == 0) { in resolveType()
H A DConditionalExpression.java687 … && (this.valueIfTrue.bits & (ASTNode.UnnecessaryCast|ASTNode.DisableUnnecessaryCastCheck)) == 0) { in computeConversions()
693 … && (this.valueIfTrue.bits & (ASTNode.UnnecessaryCast|ASTNode.DisableUnnecessaryCastCheck)) == 0) { in computeConversions()
710 …&& (this.valueIfFalse.bits & (ASTNode.UnnecessaryCast|ASTNode.DisableUnnecessaryCastCheck)) == 0) { in computeConversions()
716 …&& (this.valueIfFalse.bits & (ASTNode.UnnecessaryCast|ASTNode.DisableUnnecessaryCastCheck)) == 0) { in computeConversions()
H A DFieldDeclaration.java304 && (this.initialization.bits & ASTNode.UnnecessaryCast) == 0) { in resolve()
310 && (this.initialization.bits & ASTNode.UnnecessaryCast) == 0) { in resolve()
H A DLocalDeclaration.java420 && (this.initialization.bits & ASTNode.UnnecessaryCast) == 0) { in resolve()
426 && (this.initialization.bits & ASTNode.UnnecessaryCast) == 0) { in resolve()
H A DSwitchExpression.java367 … && (resultExpression.bits & (ASTNode.UnnecessaryCast|ASTNode.DisableUnnecessaryCastCheck)) == 0) { in computeConversionsResultExpressions()
373 … && (resultExpression.bits & (ASTNode.UnnecessaryCast|ASTNode.DisableUnnecessaryCastCheck)) == 0) { in computeConversionsResultExpressions()
H A DEqualExpression.java950 boolean unnecessaryLeftCast = (this.left.bits & UnnecessaryCast) != 0; in resolveType()
951 boolean unnecessaryRightCast = (this.right.bits & UnnecessaryCast) != 0; in resolveType()
H A DASTNode.java174 public static final int UnnecessaryCast = Bit15; field in ASTNode
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.jdt.ui/org.eclipse.jdt.core.manipulation/common/org/eclipse/jdt/internal/ui/fix/
H A DUnnecessaryCodeCleanUpCore.java109 if (problem.getProblemId() == IProblem.UnnecessaryCast) in canFix()
120 result+= getNumberOfProblems(problems, IProblem.UnnecessaryCast); in computeNumberOfFixes()
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.jdt.ui/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/
H A DUnusedCodeFix.java113 if (problem.getProblemId() != IProblem.UnnecessaryCast) in createRemoveUnusedCastFix()
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/
H A DQuickFixProcessor.java127 case IProblem.UnnecessaryCast: in hasCorrections()
577 case IProblem.UnnecessaryCast: in process()
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.jdt.ui/org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/fix/
H A DUnusedCodeFixCore.java667 if (problem.getProblemId() != IProblem.UnnecessaryCast) in createRemoveUnusedCastFix()
760 if (removeUnusedCast && id == IProblem.UnnecessaryCast) { in createCleanUp()
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.jdt.core/org.eclipse.jdt.core.tests.model/workspace/Compiler/src/org/eclipse/jdt/core/compiler/
H A DIProblem.java441 int UnnecessaryCast = Internal + TypeRelated + 181; field
/dports/java/eclipse-ecj/eclipse-ecj-4.4.2_1/org/eclipse/jdt/core/compiler/
H A DIProblem.java600 int UnnecessaryCast = Internal + TypeRelated + 181; field
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.jdt.core/org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/
H A DIProblem.java648 int UnnecessaryCast = Internal + TypeRelated + 181; field
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.jdt.core/org.eclipse.jdt.core.tests.model/workspace/Compiler/src/org/eclipse/jdt/internal/compiler/problem/
H A DProblemReporter.java497 case IProblem.UnnecessaryCast: in computeSeverity()
4235 IProblem.UnnecessaryCast, in unnecessaryCast()

12