Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Keppler2018-10-20 13:09:15 +0000
committerMichael Keppler2018-11-21 05:51:30 +0000
commite50f98a4832f0af908b833453d03080be58c3743 (patch)
treef42e33a11287da2f790bd8ddfeb7305bb16b0cfc /org.eclipse.egit.ui.test/src/org/eclipse
parentd27286cf0ad46f9af916cf6d72c61e3a5435b370 (diff)
downloadegit-e50f98a4832f0af908b833453d03080be58c3743.tar.gz
egit-e50f98a4832f0af908b833453d03080be58c3743.tar.xz
egit-e50f98a4832f0af908b833453d03080be58c3743.zip
Fix usage of deprecated charset constants
* in test code, silence the warning, since the deprecated preference still needs to be handled by the tests * in product code, replace the deprecated charset by the java runtime defined constant for UTF8 Change-Id: I11452e7cc5bd79f6205d69e7622e83171295ff9c Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
Diffstat (limited to 'org.eclipse.egit.ui.test/src/org/eclipse')
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java1
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewTestBase.java1
2 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java
index 63ef60e079..53c56ff0bd 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java
@@ -285,6 +285,7 @@ public abstract class LocalRepositoryTestCase extends EGitTestCase {
testUtils.deleteTempDirs();
}
+ @SuppressWarnings("deprecation")
protected void clearAllConfiguredRepositories() throws Exception {
IEclipsePreferences prefs = Activator.getDefault().getRepositoryUtil()
.getPreferences();
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewTestBase.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewTestBase.java
index a11abfb6b9..50f4480abf 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewTestBase.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewTestBase.java
@@ -80,6 +80,7 @@ public abstract class GitRepositoriesViewTestBase extends
/**
* remove all configured repositories from the view
*/
+ @SuppressWarnings("deprecation")
protected static void clearView() {
InstanceScope.INSTANCE.getNode(Activator.getPluginId())
.remove(RepositoryUtil.PREFS_DIRECTORIES);

Back to the top