In this page, we represent the regression-fixing commit as rfc, and the revision under investigation as c_inv
Rule 1: Annotation Removal
Trigger: the JDK version of rfc is greater than 1.6 and the JDK version of c_inv is smaller than or equal to 1.5
Action: remove all the @Override annotation in the migrated code elements.
Case:
Rule 2: Explicit type inference
Trigger:the JDK version of rfc is greater than 1.7 and the JDK version of c_inv is smaller than or equal to 1.6
Action: specify an explicit type for the diamond inference.
Case:
Rule 3: Statement separation
Trigger:the JDK version of rfc is greater than 1.7 and the JDK version of c_inv is smaller than or equal to 1.6
Action: split multiple caught exception types in one catch statement into multiple catch statements.
Case:
Rule 4: Numerical representation constraints
Trigger:the JDK version of rfc is greater than 1.7 and the JDK version of c_inv is smaller than or equal to 1.6
Action: remove underscores in numeric literals.
Case:
Rule 6: Assume API replacement
Trigger: the JUnit 5 of rfc and the JUnit 4 of c_inv
Action: Replace "org.junit.jupiter.api.Assumptions" to " org.junit.Assume".
Case:
Rule 7: Test API replacement
Trigger: the JUnit 5 of rfc and the JUnit 4 of c_inv
Action: replace " org.junit.jupiter.api.Test" to "import org.junit.Test".
Case:
Rule 8: Assertions API replacement
Trigger: the JUnit 5 of rfc and the JUnit 4 of c_inv
Action: replace "org.junit.jupiter.api.Assertions" to "org.junit.Assert"
Case:
Rule 9: AssertEquals API parameter order adjustment
Trigger: the JUnit 5 of rfc and the JUnit 4 of c_inv
Action: change assertion messages from the last argument to the first
Case:
Rule 10: BeforeAll API code adaption
Trigger: the JUnit 5 of rfc and the JUnit 4 of c_inv
Action: replace @BeforeAll to @BeforeClass.
Case:
Rule 11: AfterAll API code adaption
Trigger: the JUnit 5 of rfc and the JUnit 4 of c_inv
Action: replace @AfterAll to @AfterClass.
Case:
Rule 12: BeforeEach API code adaption
Trigger: the JUnit 5 of rfc and the JUnit 4 of c_inv
Action: Replace @BeforeEach to @Before.
Case:
Rule 13: AfterEach API code adaption
Trigger: the JUnit 5 of rfc and the JUnit 4 of c_inv
Action: replace @AfterEach to @After.
Case:
Rule 14: Disabled API code adaption
Trigger: the JUnit 5 of rfc and the JUnit 4 of c_inv
Action: replace @Disabled to @Ignore
Case: