Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5dd05c4

Browse files
authored
Merge pull request#29 from heisluft/master
[Minor] Exchange "0 += 1" for "0 = 1" in UnifiedDiffUtils
2 parentsab05a8b +fc1e247 commit5dd05c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/main/java/com/github/difflib/UnifiedDiffUtils.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ public static Patch<String> parseUnifiedDiff(List<String> diff) {
8383
new_ln =m.group(3) ==null ?1 :Integer.parseInt(m.group(3));
8484

8585
if (old_ln ==0) {
86-
old_ln+=1;
86+
old_ln =1;
8787
}
8888
if (new_ln ==0) {
89-
new_ln+=1;
89+
new_ln =1;
9090
}
9191
}else {
9292
if (line.length() >0) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp