Refactoring: Reverse Boolean

You have a boolean variable that represents a negative condition and you want the variable to represent a positive condition.

Replace all assignments to the variable with their logical inverse and replace all uses of the variable with its logical inverse.

Read the rest of this entry »