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

Commit06f1e05

Browse files
committed
1 parent26be870 commit06f1e05

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

‎java-diff-utils/src/main/java/com/github/difflib/patch/AbstractDelta.java‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,6 @@ public boolean equals(Object obj) {
9090
if (!Objects.equals(this.target,other.target)) {
9191
returnfalse;
9292
}
93-
if (this.type !=other.type) {
94-
returnfalse;
95-
}
96-
returntrue;
93+
returnthis.type ==other.type;
9794
}
9895
}

‎java-diff-utils/src/main/java/com/github/difflib/unifieddiff/UnifiedDiffReader.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ private UnifiedDiff parse() throws IOException, UnifiedDiffParserException {
9191
if (!CHUNK.validLine(line)) {
9292
initFileIfNecessary();
9393
while (line !=null && !CHUNK.validLine(line)) {
94-
if (processLine(line,DIFF_COMMAND,INDEX,FROM_FILE,TO_FILE,NEW_FILE_MODE,DELETED_FILE_MODE) ==false) {
94+
if (!processLine(line,DIFF_COMMAND,INDEX,FROM_FILE,TO_FILE,NEW_FILE_MODE,DELETED_FILE_MODE)) {
9595
thrownewUnifiedDiffParserException("expected file start line not found");
9696
}
9797
line =READER.readLine();
@@ -100,7 +100,7 @@ private UnifiedDiff parse() throws IOException, UnifiedDiffParserException {
100100
if (line !=null) {
101101
processLine(line,CHUNK);
102102
while ((line =READER.readLine()) !=null) {
103-
if (processLine(line,LINE_NORMAL,LINE_ADD,LINE_DEL) ==false) {
103+
if (!processLine(line,LINE_NORMAL,LINE_ADD,LINE_DEL)) {
104104
thrownewUnifiedDiffParserException("expected data line not found");
105105
}
106106
if ((originalTxt.size() ==old_size &&revisedTxt.size() ==new_size)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp