Bug 569835 - [AutoRefactor immigration #49/146] [cleanup & saveaction]
Use instanceof

Uses an instanceof expression to check an object against a hardcoded
class.

Given:
String isRightType = String.class.isInstance(o);

When:
Clean up the code enabling "Use instanceof"

Then:
String isRightType = (o instanceof String);

Change-Id: I48ea655450a7194b614cf2cbeaa493a137148818
Signed-off-by: Fabrice Tiercelin <fabrice.tiercelin@yahoo.fr>
Depends-On: Id09307b5d191705cd4def68c1b38ed14cec1da30
4 files changed