summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2024-08-28 16:08:04 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2024-08-28 21:46:37 +0200
commit9627ee84ed4086cee51131cfd980aef0dbf33f9c (patch)
tree4ec6a6e94c4413121b9b7e049b3123241935b4f0 /org.eclipse.jgit/src
parentf13a655c56a63a367d74e22e3f39f08a0f787b45 (diff)
downloadjgit-9627ee84ed4086cee51131cfd980aef0dbf33f9c.tar.gz
jgit-9627ee84ed4086cee51131cfd980aef0dbf33f9c.zip
Suppress non-externalized string warnings
for texts which don't need to be translatable. Change-Id: Iacac5df9525ddbc9942b7c440450b6aad4864135
Diffstat (limited to 'org.eclipse.jgit/src')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/BareSuperprojectWriter.java2
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java3
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsBlockCacheConfig.java4
3 files changed, 5 insertions, 4 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/BareSuperprojectWriter.java b/org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/BareSuperprojectWriter.java
index d191e23399..e511a68d2e 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/BareSuperprojectWriter.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/BareSuperprojectWriter.java
@@ -157,7 +157,7 @@ class BareSuperprojectWriter {
if (ObjectId.isId(proj.getRevision())) {
objectId = ObjectId.fromString(proj.getRevision());
if (config.recordRemoteBranch && proj.getUpstream() != null) {
- cfg.setString("submodule", name, "ref", proj.getUpstream());
+ cfg.setString("submodule", name, "ref", proj.getUpstream()); //$NON-NLS-1$//$NON-NLS-2$
}
} else {
objectId = callback.sha1(url, proj.getRevision());
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java
index 9979664ceb..d30e8d63fd 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java
@@ -255,7 +255,8 @@ public class RepoCommand extends GitCommand<RevCommit> {
@SuppressWarnings("serial")
static class ManifestErrorException extends GitAPIException {
ManifestErrorException(Throwable cause) {
- super(RepoText.get().invalidManifest + " " + cause.getMessage(), cause);
+ super(RepoText.get().invalidManifest + " " + cause.getMessage(), //$NON-NLS-1$
+ cause);
}
}
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsBlockCacheConfig.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsBlockCacheConfig.java
index 20f4666373..fa68b979fb 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsBlockCacheConfig.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsBlockCacheConfig.java
@@ -344,7 +344,7 @@ public class DfsBlockCacheConfig {
if (packExtsDuplicates.size() > 0) {
String duplicatePackExts = packExtsDuplicates.stream()
.map(PackExt::toString)
- .collect(Collectors.joining(","));
+ .collect(Collectors.joining(",")); //$NON-NLS-1$
throw new IllegalArgumentException(MessageFormat.format(
JGitText.get().duplicatePackExtensionsSet,
CONFIG_CORE_SECTION, subSection,
@@ -480,7 +480,7 @@ public class DfsBlockCacheConfig {
throw new IllegalArgumentException(
JGitText.get().noPackExtGivenForConfiguration);
}
- String[] extensions = packExtensions.split(" ", -1);
+ String[] extensions = packExtensions.split(" ", -1); //$NON-NLS-1$
Set<PackExt> packExts = new HashSet<>(extensions.length);
for (String extension : extensions) {
try {