GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — DanielE2Open/java-diff-utils@06f1e05

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • java-diff-utils/src/main/java/com/github/difflib
    • patch
      • AbstractDelta.java
    • unifieddiff
      • UnifiedDiffReader.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: java-diff-utils/src/main/java/com/github/difflib/patch/AbstractDelta.java
+1-4Lines 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
return false;
9292
}
93-
if (this.type != other.type) {
94-
return false;
95-
}
96-
return true;
93+
return this.type == other.type;
9794
}
9895
}
Collapse file

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

Copy file name to clipboardExpand all lines: java-diff-utils/src/main/java/com/github/difflib/unifieddiff/UnifiedDiffReader.java
+2-2Lines 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
throw new UnifiedDiffParserException("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
throw new UnifiedDiffParserException("expected data line not found");
105105
}
106106
if ((originalTxt.size() == old_size && revisedTxt.size() == new_size)

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.