From d15ecbb5683a29d94910fb3d2d08148398809346 Mon Sep 17 00:00:00 2001 From: Tran Ngoc Nhan Date: Tue, 25 Mar 2025 23:16:19 +0700 Subject: [PATCH] Fix typo javadoc --- .../java/com/github/difflib/algorithm/jgit/HistogramDiff.java | 2 +- .../com/github/difflib/algorithm/DiffAlgorithmListener.java | 2 +- .../src/main/java/com/github/difflib/patch/Chunk.java | 2 +- .../src/main/java/com/github/difflib/patch/Patch.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-diff-utils-jgit/src/main/java/com/github/difflib/algorithm/jgit/HistogramDiff.java b/java-diff-utils-jgit/src/main/java/com/github/difflib/algorithm/jgit/HistogramDiff.java index e3f6cd5b..6d15f609 100644 --- a/java-diff-utils-jgit/src/main/java/com/github/difflib/algorithm/jgit/HistogramDiff.java +++ b/java-diff-utils-jgit/src/main/java/com/github/difflib/algorithm/jgit/HistogramDiff.java @@ -28,7 +28,7 @@ import org.eclipse.jgit.diff.SequenceComparator; /** - * HistorgramDiff using JGit - Library. This one is much more performant than the orginal Myers + * HistorgramDiff using JGit - Library. This one is much more performant than the original Myers * implementation. * * @author toben diff --git a/java-diff-utils/src/main/java/com/github/difflib/algorithm/DiffAlgorithmListener.java b/java-diff-utils/src/main/java/com/github/difflib/algorithm/DiffAlgorithmListener.java index 37d51813..a141d7be 100644 --- a/java-diff-utils/src/main/java/com/github/difflib/algorithm/DiffAlgorithmListener.java +++ b/java-diff-utils/src/main/java/com/github/difflib/algorithm/DiffAlgorithmListener.java @@ -24,7 +24,7 @@ public interface DiffAlgorithmListener { /** * This is a step within the diff algorithm. Due to different implementations the value - * is not strict incrementing to the max and is not garantee to reach the max. It could + * is not strict incrementing to the max and is not guarantee to reach the max. It could * stop before. * @param value * @param max diff --git a/java-diff-utils/src/main/java/com/github/difflib/patch/Chunk.java b/java-diff-utils/src/main/java/com/github/difflib/patch/Chunk.java index 7e55ac0d..50054074 100644 --- a/java-diff-utils/src/main/java/com/github/difflib/patch/Chunk.java +++ b/java-diff-utils/src/main/java/com/github/difflib/patch/Chunk.java @@ -26,7 +26,7 @@ * *

* Text is represented as Object[] because the diff engine is - * capable of handling more than plain ascci. In fact, arrays or lists of any + * capable of handling more than plain ascii. In fact, arrays or lists of any * type that implements {@link java.lang.Object#hashCode hashCode()} and * {@link java.lang.Object#equals equals()} correctly can be subject to * differencing using this library. diff --git a/java-diff-utils/src/main/java/com/github/difflib/patch/Patch.java b/java-diff-utils/src/main/java/com/github/difflib/patch/Patch.java index aaff7d94..305f2de7 100644 --- a/java-diff-utils/src/main/java/com/github/difflib/patch/Patch.java +++ b/java-diff-utils/src/main/java/com/github/difflib/patch/Patch.java @@ -224,7 +224,7 @@ private int findPositionWithFuzzAndMoreDelta(PatchApplyingContext ctx, Abstra private ConflictOutput conflictOutput = CONFLICT_PRODUCES_EXCEPTION; /** - * Alter normal conflict output behaviour to e.g. inclide some conflict + * Alter normal conflict output behaviour to e.g. include some conflict * statements in the result, like git does it. */ public Patch withConflictOutput(ConflictOutput conflictOutput) {