Issue #13109: Kill mutation for EqualsAvoidNullCheck 2#13125
Issue #13109: Kill mutation for EqualsAvoidNullCheck 2#13125rdiachenko merged 1 commit intocheckstyle:masterfrom
Conversation
|
GitHub, generate report |
|
@Kevin222004 please resolve the conflict and regenerate report |
|
Github, generate report |
|
Github, generate report |
|
@rdiachenko reports are clean |
|
Issue #13109: Kill mutation for EqualsAvoidNullCheck 2 Check :- https://checkstyle.org/config_coding.html#EqualsAvoidNullMutations CoveredExplanation
if we remove getObjectFramefrom the and as per the condition in loop so removal of that not make any issue Diff ReportsConfig (You can remove this after you have generated the reports)Diff Regression config: https://gist.githubusercontent.com/Kevin222004/c515fe44cd311783e6cbdf0f5788b4d3/raw/15647eeebde66f0c3a366f655442b02b4d55efef/equal.xml Diff Regression projects: https://gist.githubusercontent.com/Kevin222004/21e3934e85f802e2fbd48af06d122364/raw/604256badd733d8568064f371d55657c04b00dfd/test-projects-2.properties Report label: Project-list-2 @Kevin222004 slight improvement in formatting makes it look better, you can use |
Issue #13109: Kill mutation for EqualsAvoidNullCheck 2
1 check :- https://checkstyle.org/config_coding.html#EqualsAvoidNull
2covering :-
checkstyle/config/pitest-suppressions/pitest-coding-1-suppressions.xml
Lines 21 to 28 in 81448ea
3 Explaination
getObjectFrame()method will provide the nearest parent frame of class, enum.if we remove getObjectFramefrom the
FieldFrame frame = getObjectFrame(currentFrame);andframe = getObjectFrame(frame.getParent());they will go through all the frame instead of directly going to frame which are class or enum.and as per the condition in loop
className.equals(frame.getFrameName())frameName would always be of class enum as per
checkstyle/src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/EqualsAvoidNullCheck.java
Lines 568 to 569 in 81448ea
so removal of that not make any issue
https://checkstyle-diff-reports.s3.us-east-2.amazonaws.com/c201250_2023104332/reports/diff/index.html
Diff Regression config: https://gist.githubusercontent.com/Kevin222004/c515fe44cd311783e6cbdf0f5788b4d3/raw/15647eeebde66f0c3a366f655442b02b4d55efef/equal.xml
Diff Regression projects: https://gist.githubusercontent.com/Kevin222004/21e3934e85f802e2fbd48af06d122364/raw/604256badd733d8568064f371d55657c04b00dfd/test-projects-2.properties
Report label: Project-list-2