aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/patch/HunkHeader.java
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/patch/HunkHeader.java')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/patch/HunkHeader.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/patch/HunkHeader.java b/org.eclipse.jgit/src/org/eclipse/jgit/patch/HunkHeader.java
index b7a93933f2..d72b9bb83a 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/patch/HunkHeader.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/patch/HunkHeader.java
@@ -311,8 +311,8 @@ public class HunkHeader {
} else if (nContext + old.nDeleted > old.lineCount
|| nContext + old.nAdded > newLineCount) {
- final String oldcnt = old.lineCount + ":" + newLineCount;
- final String newcnt = (nContext + old.nDeleted) + ":"
+ final String oldcnt = old.lineCount + ":" + newLineCount; //$NON-NLS-1$
+ final String newcnt = (nContext + old.nDeleted) + ":" //$NON-NLS-1$
+ (nContext + old.nAdded);
script.warn(buf, startOffset, MessageFormat.format(
JGitText.get().hunkHeaderDoesNotMatchBodyLineCountOf, oldcnt, newcnt));
@@ -404,6 +404,7 @@ public class HunkHeader {
offsets[fileIdx] = end < 0 ? s.length() : end + 1;
}
+ @SuppressWarnings("nls")
@Override
public String toString() {
StringBuilder buf = new StringBuilder();