]> source.dussan.org Git - jgit.git/commitdiff
BitmapIndexImpl: externalize error message 73/1172673/1
authorMatthias Sohn <matthias.sohn@sap.com>
Tue, 28 Nov 2023 23:12:55 +0000 (00:12 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 28 Nov 2023 23:12:55 +0000 (00:12 +0100)
Change-Id: I5189e966aecc57fe7c3e6c3f7f8e6b16917ee27f

org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/BitmapIndexImpl.java

index c8a3abf1c44bd71c1d41e9631255d645c9db8a15..3798e3f5f8045a9f2eac8354d09f5dbdc0e887d3 100644 (file)
@@ -66,6 +66,7 @@ binaryHunkLineTooShort=Binary hunk, line {0}: input ended prematurely
 binaryHunkMissingNewline=Binary hunk, line {0}: input line not terminated by newline
 bitmapMissingObject=Bitmap at {0} is missing {1}.
 bitmapsMustBePrepared=Bitmaps must be prepared before they may be written.
+bitmapUseNoopNoListener=Use NOOP instance for no listener
 blameNotCommittedYet=Not Committed Yet
 blockLimitNotMultipleOfBlockSize=blockLimit {0} must be a multiple of blockSize {1}
 blockLimitNotPositive=blockLimit must be positive: {0}
index 15e7f0e56585efd7e65ff993917fad0718a739cb..c8509121b462676cd54f8f9a48aaffc85067d373 100644 (file)
@@ -96,6 +96,7 @@ public class JGitText extends TranslationBundle {
        /***/ public String binaryHunkMissingNewline;
        /***/ public String bitmapMissingObject;
        /***/ public String bitmapsMustBePrepared;
+       /***/ public String bitmapUseNoopNoListener;
        /***/ public String blameNotCommittedYet;
        /***/ public String blockLimitNotMultipleOfBlockSize;
        /***/ public String blockLimitNotPositive;
index 5602158d2dfad98e88bb5225145e6842a0851dd4..01bd8268b8859079daa022a61aba48412c86f7be 100644 (file)
@@ -76,7 +76,7 @@ public class BitmapIndexImpl implements BitmapIndex {
        public void addBitmapLookupListener(BitmapLookupListener listener) {
                if (listener == null) {
                        throw new IllegalArgumentException(
-                                       "Use NOOP instance for no listener"); // @NON-NLS-1@
+                                       JGitText.get().bitmapUseNoopNoListener);
                }
                this.listener = listener;
        }