diff options
author | David Pursehouse <david.pursehouse@gmail.com> | 2019-02-15 16:46:37 +0900 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2019-02-18 00:14:35 +0100 |
commit | 03689063533ec7cffa1258eec7c2bb5295541611 (patch) | |
tree | 4a0a10646a7fcf444fefe5908014f8de902b8025 /org.eclipse.jgit | |
parent | e5c4057467e92f521ff1cf84f61ddefe3c97d3e4 (diff) | |
download | jgit-03689063533ec7cffa1258eec7c2bb5295541611.tar.gz jgit-03689063533ec7cffa1258eec7c2bb5295541611.zip |
CommitBuilder: Deprecate setEncoding(String)
Deprecate the method in favor of setEncoding(Charset).
Update the only caller in the code base that was still using
the deprecated variant.
Change-Id: I6357f2d0c727007013c72e9d5b7c72a3f5f3f2b1
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/lib/CommitBuilder.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/CommitBuilder.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/CommitBuilder.java index cac97ede43..6cbddec543 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/CommitBuilder.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/CommitBuilder.java @@ -295,7 +295,9 @@ public class CommitBuilder { * @param encodingName * the encoding name. See * {@link java.nio.charset.Charset#forName(String)}. + * @deprecated use {@link #setEncoding(Charset)} instead. */ + @Deprecated public void setEncoding(String encodingName) { encoding = Charset.forName(encodingName); } |