consider following code

1) `if ("Anil".equals(name)) {`

is more preferrable than following (as it avoids NPEs)

2) `if (name.equals("Anil")) {`

I am maintaining a class that is having full of 2nd type of conditions.
And i want to convert those conditions to type-1 (constant first).

So i am wondering if there is any shortcut in eclipse to do the same.
eclipse refactor menu is not showing any option that would do.