Files
openide/java/java-tests/testData/refactoring/extractMethodAndDuplicatesInplace/RenamedParametrizedDuplicate_after.java
Alexandr Suhinin 73f35ed28c IDEA-274123 [extract method]: don't suggest too abstract change signatures
GitOrigin-RevId: 4c59710e2304288ad4465a92ec36bff633bd661e
2022-11-10 01:05:51 +00:00

12 lines
270 B
Java

class Test {
static int offset = 42;
void test(){
int avgA = averageWithOffset(10, 20);
int avgB = averageWithOffset(100, 200);
}
private static int averageWithOffset(int x, int x1) {
return x + x1 / 2 - Test.offset - 1;
}
}