Extract Method refactoring fails
When += statement exists in while loop, "Extract Method" does not change anything, or sometime it changes non-related code.
class RefactoringTest {
class A(var x: Int, var y: Int)
class B(var a: A)
def foo(a : A, b: B) {
//(
val l = Array(1, 2, 3)
l(0) = 10
//) Extract Method here
while (b.a.x < 10) {
b.a.x += 10;
}
l.toString()
}
}
Leave a comment
on 2013-08-15 19:26 *
By Mirko Stocker
Version changed from 2.0.2-final-29 to 3.0.1-210
Assigned to set to Mirko Stocker
Ticket assignment reverted due to inactivity.