JnRouvignac / AutoRefactor

Eclipse plugin to automatically refactor Java code bases
Other
176 stars 37 forks source link

New refactoring - Rewrite conditions like chained inequalities #105

Open JnRouvignac opened 9 years ago

JnRouvignac commented 9 years ago

Given

The following condition:

b > 0 && anotherValue > b
0 < b && anotherValue > b

When

... automatic refactorings are applied ...

Then

code is refactored to:

0 < b && b < anotherValue
0 < b && b < anotherValue

...to better expose the interval of b's value

xennygrimmato commented 7 years ago

@JnRouvignac Can you assign this issue to me?

JnRouvignac commented 7 years ago

Alas I cannot so easily. Feel free to work on it. I did not hear that anybody else is working on it