diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2010-03-12 10:26:06 -0800 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2010-03-12 10:26:06 -0800 |
commit | 24875de6bd864fa7082e1c96bf8aebe9950c3e54 (patch) | |
tree | 458533c92b11a2ed96c11109393dd0c4437adb52 /org.eclipse.jgit | |
parent | 2ae9a85045915a38af2c300aa1874304fd8ea17b (diff) | |
download | jgit-24875de6bd864fa7082e1c96bf8aebe9950c3e54.tar.gz jgit-24875de6bd864fa7082e1c96bf8aebe9950c3e54.zip |
Fix NLS to build under Java 5
The tests were using a Locale.ROOT constant which was introduced
in Java 6. However, we need to retain Java 5 support.
Change-Id: I75c5648fcfc728a9aea2e839d2ad0320f5cf742f
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
CC: Sasa Zivkov <sasa.zivkov@sap.com>
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/nls/NLS.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/nls/NLS.java b/org.eclipse.jgit/src/org/eclipse/jgit/nls/NLS.java index ece20bdb36..f2e379e136 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/nls/NLS.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/nls/NLS.java @@ -68,6 +68,7 @@ import org.eclipse.jgit.errors.TranslationStringMissingException; * </pre> */ public class NLS { + static final Locale ROOT_LOCALE = new Locale("", "", ""); private static final InheritableThreadLocal<NLS> local = new InheritableThreadLocal<NLS>() { protected NLS initialValue() { |