CommitGraphWriter: fix boxing warnings
Change-Id: I35c3a3baadb8d7d73c01252fe4333fa2159722ee
This commit is contained in:
parent
c57257bc01
commit
4262150f74
|
@ -158,6 +158,7 @@ commitGraphChunkNeeded=commit-graph 0x{0} chunk has not been loaded
|
||||||
commitGraphChunkRepeated=commit-graph chunk id 0x{0} appears multiple times
|
commitGraphChunkRepeated=commit-graph chunk id 0x{0} appears multiple times
|
||||||
commitGraphChunkUnknown=unknown commit-graph chunk: 0x{0}
|
commitGraphChunkUnknown=unknown commit-graph chunk: 0x{0}
|
||||||
commitGraphFileIsTooLargeForJgit=commit-graph file is too large for jgit
|
commitGraphFileIsTooLargeForJgit=commit-graph file is too large for jgit
|
||||||
|
commitGraphUnexpectedSize=Commit-graph: expected %d bytes but out has %d bytes
|
||||||
commitGraphWritingCancelled=commit-graph writing was canceled
|
commitGraphWritingCancelled=commit-graph writing was canceled
|
||||||
commitMessageNotSpecified=commit message not specified
|
commitMessageNotSpecified=commit message not specified
|
||||||
commitOnRepoWithoutHEADCurrentlyNotSupported=Commit on repo without HEAD currently not supported
|
commitOnRepoWithoutHEADCurrentlyNotSupported=Commit on repo without HEAD currently not supported
|
||||||
|
|
|
@ -187,6 +187,7 @@ public static JGitText get() {
|
||||||
/***/ public String commitGraphChunkRepeated;
|
/***/ public String commitGraphChunkRepeated;
|
||||||
/***/ public String commitGraphChunkUnknown;
|
/***/ public String commitGraphChunkUnknown;
|
||||||
/***/ public String commitGraphFileIsTooLargeForJgit;
|
/***/ public String commitGraphFileIsTooLargeForJgit;
|
||||||
|
/***/ public String commitGraphUnexpectedSize;
|
||||||
/***/ public String commitGraphWritingCancelled;
|
/***/ public String commitGraphWritingCancelled;
|
||||||
/***/ public String commitMessageNotSpecified;
|
/***/ public String commitMessageNotSpecified;
|
||||||
/***/ public String commitOnRepoWithoutHEADCurrentlyNotSupported;
|
/***/ public String commitOnRepoWithoutHEADCurrentlyNotSupported;
|
||||||
|
|
|
@ -146,8 +146,9 @@ public Stats write(@NonNull ProgressMonitor monitor,
|
||||||
writeCheckSum(out);
|
writeCheckSum(out);
|
||||||
if (expectedSize != out.length()) {
|
if (expectedSize != out.length()) {
|
||||||
throw new IllegalStateException(String.format(
|
throw new IllegalStateException(String.format(
|
||||||
"Commit-graph: expected %d bytes but out has %d bytes", //$NON-NLS-1$
|
JGitText.get().commitGraphUnexpectedSize,
|
||||||
expectedSize, out.length()));
|
Long.valueOf(expectedSize),
|
||||||
|
Long.valueOf(out.length())));
|
||||||
}
|
}
|
||||||
} catch (InterruptedIOException e) {
|
} catch (InterruptedIOException e) {
|
||||||
throw new IOException(JGitText.get().commitGraphWritingCancelled,
|
throw new IOException(JGitText.get().commitGraphWritingCancelled,
|
||||||
|
|
Loading…
Reference in New Issue