BitmapIndexImpl: externalize error message

Change-Id: I5189e966aecc57fe7c3e6c3f7f8e6b16917ee27f
This commit is contained in:
Matthias Sohn 2023-11-29 00:12:55 +01:00
parent 232813bfcd
commit e4abd0123b
3 changed files with 3 additions and 1 deletions

View 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}

View File

@ -96,6 +96,7 @@ public static JGitText get() {
/***/ public String binaryHunkMissingNewline;
/***/ public String bitmapMissingObject;
/***/ public String bitmapsMustBePrepared;
/***/ public String bitmapUseNoopNoListener;
/***/ public String blameNotCommittedYet;
/***/ public String blockLimitNotMultipleOfBlockSize;
/***/ public String blockLimitNotPositive;

View File

@ -76,7 +76,7 @@ public CompressedBitmapBuilder newBitmapBuilder() {
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;
}