Fix #248 and add getRowMap tests for #247 and #248 by Prabhav-dev · Pull Request #251 · java-diff-utils/java-diff-utils
Repository navigation
Fix #248 and add getRowMap tests for #247 and #248 - #251
Open
Prabhav-dev wants to merge 2 commits into java-diff-utils:master from Prabhav-dev:fix/issue-248-getrowmap
Open
Fix #248 and add getRowMap tests for #247 and #248 #251 Prabhav-dev wants to merge 2 commits into java-diff-utils:master from Prabhav-dev:fix/issue-248-getrowmap
Conversation
Prabhav-dev commented Dec 4, 2026
Copy link Copy Markdown
Fixes #248
UnifiedDiffUtils.getRowMapnow defaults omitted hunk counts (orgDel,revAdd) to1instead of throwingArrayIndexOutOfBoundsExceptionwhen,countis omitted (e.g.@@ -1 +1,2 @@,@@ -1,2 +1 @@,@@ -3 +5 @@).- Adds
UnifiedDiffUtilsTestwith reproducible tests for both UnifiedDiffUtils.getRowMap throws ArrayIndexOutOfBoundsException for hunk headers without a count #248 (testGetRowMapWithoutCount) and UnifiedDiffUtils.getRowMap parses the revised range from the original range #247 (testGetRowMapParsesRevisedRangeIndependently).
Fix java-diff-utils#248 and add getRowMap tests for java-diff-utils#247...
df751d1
... and java-diff-utils#248
Make getRowMap package-private to avoid reflection in tests
89a31ed
This branch has not been deployed
No deployments
Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment