summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2013-07-24 08:43:50 (EDT)
committerTomasz Zarna2013-07-24 08:43:50 (EDT)
commit7682c08e0e895d2e9c14c95d4aaa6e0a4662655c (patch)
treef2db3775f8caa071de0fa73e34134acc3ae132aa
parent25f4c396a83b494832a3939785c0cca7a9fdaf8e (diff)
downloadorg.eclipse.mylyn.reviews-7682c08e0e895d2e9c14c95d4aaa6e0a4662655c.zip
org.eclipse.mylyn.reviews-7682c08e0e895d2e9c14c95d4aaa6e0a4662655c.tar.gz
org.eclipse.mylyn.reviews-7682c08e0e895d2e9c14c95d4aaa6e0a4662655c.tar.bz2
413630: deprecate methods in GerritClient that are never calledrefs/changes/13/14813/1
Bug: 413630 Change-Id: I0a96f25c75be4f7ac718f0f5caf1f709e430e111 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=413630 Signed-off-by: Tomasz Zarna <tomasz.zarna@tasktop.com>
-rw-r--r--org.eclipse.mylyn.gerrit.core/src/org/eclipse/mylyn/internal/gerrit/core/client/GerritClient.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.gerrit.core/src/org/eclipse/mylyn/internal/gerrit/core/client/GerritClient.java b/org.eclipse.mylyn.gerrit.core/src/org/eclipse/mylyn/internal/gerrit/core/client/GerritClient.java
index 71af1c4..9d7e824 100644
--- a/org.eclipse.mylyn.gerrit.core/src/org/eclipse/mylyn/internal/gerrit/core/client/GerritClient.java
+++ b/org.eclipse.mylyn.gerrit.core/src/org/eclipse/mylyn/internal/gerrit/core/client/GerritClient.java
@@ -333,6 +333,10 @@ public class GerritClient extends ReviewsClient {
return config;
}
+ /**
+ * @deprecated Do not use, this method is going to be removed in 2.1. See bug 413630.
+ */
+ @Deprecated
public AccountDiffPreference getDiffPreference(IProgressMonitor monitor) throws GerritException {
synchronized (this) {
if (myDiffPreference != null) {
@@ -669,6 +673,10 @@ public class GerritClient extends ReviewsClient {
return getConfiguration();
}
+ /**
+ * @deprecated Do not use, this method is going to be removed in 2.1. See bug 413630.
+ */
+ @Deprecated
public ChangeDetail publish(String reviewId, int patchSetId, IProgressMonitor monitor) throws GerritException {
final PatchSet.Id id = new PatchSet.Id(new Change.Id(id(reviewId)), patchSetId);
return execute(monitor, new Operation<ChangeDetail>() {
@@ -700,6 +708,10 @@ public class GerritClient extends ReviewsClient {
});
}
+ /**
+ * @deprecated Do not use, this method is going to be removed in 2.1. See bug 413630.
+ */
+ @Deprecated
public ChangeDetail revert(String reviewId, int patchSetId, final String message, IProgressMonitor monitor)
throws GerritException {
final PatchSet.Id id = new PatchSet.Id(new Change.Id(id(reviewId)), patchSetId);