diff options
author | Robin Rosenberg <robin.rosenberg@dewire.com> | 2013-04-14 00:40:37 +0200 |
---|---|---|
committer | Robin Rosenberg <robin.rosenberg@dewire.com> | 2013-04-14 00:41:55 +0200 |
commit | a6ed390ea79ad0a29265448a1c294e9a1953eb53 (patch) | |
tree | eb59a0c8e954a472538d6e94fc9eff829a9e9f2a /org.eclipse.jgit/src | |
parent | 5db307a695d661420455e455a5a2e2169355ee8a (diff) | |
download | jgit-a6ed390ea79ad0a29265448a1c294e9a1953eb53.tar.gz jgit-a6ed390ea79ad0a29265448a1c294e9a1953eb53.zip |
NLS warning cleanup
Change-Id: Ia76aa02dd330a1f88096c2b059b363aa38d653e9
Diffstat (limited to 'org.eclipse.jgit/src')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java | 8 | ||||
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/api/RevertCommand.java | 3 |
2 files changed, 5 insertions, 6 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java index 35bf75dcc4..65af216ae8 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java @@ -155,12 +155,10 @@ public class CloneCommand extends TransportCommand<CloneCommand, Git> { config.addURI(u); final String dst = (bare ? Constants.R_HEADS : Constants.R_REMOTES - + config.getName() + "/") + "*"; + + config.getName() + "/") + "*"; //$NON-NLS-1$//$NON-NLS-2$ RefSpec refSpec = new RefSpec(); refSpec = refSpec.setForceUpdate(true); - refSpec = refSpec.setSourceDestination( - Constants.R_HEADS + "*", dst); //$NON-NLS-1$ //$NON-NLS-2$ - + refSpec = refSpec.setSourceDestination(Constants.R_HEADS + "*", dst); //$NON-NLS-1$ config.addFetchRefSpec(refSpec); config.update(clonedRepo.getConfig()); @@ -183,7 +181,7 @@ public class CloneCommand extends TransportCommand<CloneCommand, Git> { private List<RefSpec> calculateRefSpecs(final String dst) { RefSpec wcrs = new RefSpec(); wcrs = wcrs.setForceUpdate(true); - wcrs = wcrs.setSourceDestination(Constants.R_HEADS + "*", dst); //$NON-NLS-1$ //$NON-NLS-2$ + wcrs = wcrs.setSourceDestination(Constants.R_HEADS + "*", dst); //$NON-NLS-1$ List<RefSpec> specs = new ArrayList<RefSpec>(); if (cloneAllBranches) specs.add(wcrs); diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/RevertCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/RevertCommand.java index 16522b74dc..be8f66de37 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/api/RevertCommand.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/RevertCommand.java @@ -164,7 +164,8 @@ public class RevertCommand extends GitCommand<RevCommit> { .newMerger(repo); merger.setWorkingTreeIterator(new FileTreeIterator(repo)); merger.setBase(srcCommit.getTree()); - merger.setCommitNames(new String[] { "BASE", ourName, revertName }); //$NON-NLS-1$ //$NON-NLS-2$ + merger.setCommitNames(new String[] { + "BASE", ourName, revertName }); //$NON-NLS-1$ String shortMessage = "Revert \"" + srcCommit.getShortMessage() //$NON-NLS-1$ + "\""; //$NON-NLS-1$ |