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 — Javadoc warning fixes (#109) · angang1989/java-diff-utils@c85296b

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • java-diff-utils/src/main/java/com/github/difflib
    • UnifiedDiffUtils.java
    • text
      • DiffRowGenerator.java
    • unifieddiff
      • UnifiedDiffWriter.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: java-diff-utils/src/main/java/com/github/difflib/UnifiedDiffUtils.java
+3-6Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,15 +129,14 @@ private static void processLinesInPrevChunk(List<String[]> rawChunk, Patch<Strin
129129

130130
/**
131131
* generateUnifiedDiff takes a Patch and some other arguments, returning the Unified Diff format
132-
* text representing the Patch.
132+
* text representing the Patch. Author: Bill James ([email protected]).
133133
*
134134
* @param originalFileName - Filename of the original (unrevised file)
135135
* @param revisedFileName - Filename of the revised file
136136
* @param originalLines - Lines of the original file
137137
* @param patch - Patch created by the diff() function
138138
* @param contextSize - number of lines of context output around each difference in the file.
139139
* @return List of strings representing the Unified Diff representation of the Patch argument.
140-
* @author Bill James ([email protected])
141140
*/
142141
public static List<String> generateUnifiedDiff(String originalFileName,
143142
String revisedFileName, List<String> originalLines, Patch<String> patch,
@@ -200,13 +199,12 @@ public static List<String> generateUnifiedDiff(String originalFileName,
200199

201200
/**
202201
* processDeltas takes a list of Deltas and outputs them together in a single block of
203-
* Unified-Diff-format text.
202+
* Unified-Diff-format text. Author: Bill James ([email protected]).
204203
*
205204
* @param origLines - the lines of the original file
206205
* @param deltas - the Deltas to be output as a single block
207206
* @param contextSize - the number of lines of context to place around block
208207
* @return
209-
* @author Bill James ([email protected])
210208
*/
211209
private static List<String> processDeltas(List<String> origLines,
212210
List<AbstractDelta<String>> deltas, int contextSize, boolean newFile) {
@@ -297,11 +295,10 @@ private static List<String> processDeltas(List<String> origLines,
297295
}
298296

299297
/**
300-
* getDeltaText returns the lines to be added to the Unified Diff text from the Delta parameter
298+
* getDeltaText returns the lines to be added to the Unified Diff text from the Delta parameter. Author: Bill James ([email protected]).
301299
*
302300
* @param delta - the Delta to output
303301
* @return list of String lines of code.
304-
* @author Bill James ([email protected])
305302
*/
306303
private static List<String> getDeltaText(AbstractDelta<String> delta) {
307304
List<String> buffer = new ArrayList<>();
Collapse file

‎java-diff-utils/src/main/java/com/github/difflib/text/DiffRowGenerator.java‎

Copy file name to clipboardExpand all lines: java-diff-utils/src/main/java/com/github/difflib/text/DiffRowGenerator.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,8 +554,8 @@ public Builder processDiffs(Function<String, String> processDiffs) {
554554
* Set the column width of generated lines of original and revised
555555
* texts.
556556
*
557-
* @param width the width to set. Making it < 0 doesn't make any sense.
558-
* Default 80. @return builder with config of column width
557+
* @param width the width to set. Making it &lt; 0 doesn't make any sense. Default 80.
558+
* @return builder with config of column width
559559
*/
560560
public Builder columnWidth(int width) {
561561
if (width >= 0) {
Collapse file

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

Copy file name to clipboardExpand all lines: java-diff-utils/src/main/java/com/github/difflib/unifieddiff/UnifiedDiffWriter.java
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,10 @@ private static void processDeltas(Consumer<String> writer,
189189
}
190190

191191
/**
192-
* getDeltaText returns the lines to be added to the Unified Diff text from the Delta parameter
192+
* getDeltaText returns the lines to be added to the Unified Diff text from the Delta parameter.
193193
*
194-
* @param delta - the Delta to output
195-
* @return list of String lines of code.
194+
* @param writer consumer for the list of String lines of code
195+
* @param delta the Delta to output
196196
*/
197197
private static void getDeltaText(Consumer<String> writer, AbstractDelta<String> delta) {
198198
for (String line : delta.getSource().getLines()) {

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.