org.sonar.l10n.delphi.rules.community-delphi.RedundantCast.html Maven / Gradle / Ivy
The newest version!
Why is this an issue?
Unnecessarily casting an object to its own type makes code harder to read and understand with
no benefit.
How to fix it
Remove the redundant cast:
procedure Example(Foo: TFoo);
begin
Foo := TFoo(Foo);
// ...
end;
procedure Example(Foo: TFoo);
begin
// ...
end;
© 2015 - 2024 Weber Informatics LLC | Privacy Policy