Refactor static member invocation
Someone used a static method. Refactor the method into a static import while fixing the assertion.
Start file
import org.Assert; C{ m(){ Assert.assertEquals(42, "Meaning of life"); } }
End file
import static org.Assert.assertEquals; C{ m(){ assertEquals("Meaning of life", "Meaning of life"); } }
View Diff
1c1 < import org.Assert; --- > import static org.Assert.assertEquals; 5c5 < Assert.assertEquals(42, "Meaning of life"); --- > assertEquals("Meaning of life", "Meaning of life");
Solutions by @Caek_:
Unlock 2 remaining solutions by signing in and submitting your own entry