aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectInserter.java
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2015-03-18 00:32:04 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2015-05-26 10:52:20 +0200
commit2390531888af6dc9e4fda6cb026271dc068c40ab (patch)
treeda2ea0eb143bf86e5a0afb7b0ddf0b3ddcfff19c /org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectInserter.java
parentd9062145b8cf7ca3c275e1f8b17eeb4973c55d28 (diff)
downloadjgit-2390531888af6dc9e4fda6cb026271dc068c40ab.tar.gz
jgit-2390531888af6dc9e4fda6cb026271dc068c40ab.zip
Externalize translatable texts in org.eclipse.jgit
Change-Id: Ibf4c299f9d203c78cae79e61f88d4bea60ea2795 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectInserter.java')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectInserter.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectInserter.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectInserter.java
index 5d892019ab..d9da65f03f 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectInserter.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectInserter.java
@@ -52,6 +52,7 @@ import java.io.IOException;
import java.io.InputStream;
import java.security.MessageDigest;
+import org.eclipse.jgit.internal.JGitText;
import org.eclipse.jgit.transport.PackParser;
/**
@@ -263,7 +264,7 @@ public abstract class ObjectInserter implements AutoCloseable {
while (length > 0) {
int n = in.read(buf, 0, (int) Math.min(length, buf.length));
if (n < 0)
- throw new EOFException("Unexpected end of input");
+ throw new EOFException(JGitText.get().unexpectedEndOfInput);
md.update(buf, 0, n);
length -= n;
}