Skip to content

Type constants should be removed #867

@algomaster99

Description

@algomaster99

Constants for types like float are defined here. We can instead use Spoon's factory methods to compare types of two objects. For example:

- ctBinaryOperator.getLeftHandOperand().getType().getSimpleName().equals(Constants.FLOAT)
+ ctBinaryOperator.getLeftHandOperand().getType().equals(factory.Type().floatPrimitiveType())

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions