diff --git a/org.eclipse.jdt.text.tests/src/org/eclipse/jdt/text/tests/contentassist/ContentAssistHistoryTest.java b/org.eclipse.jdt.text.tests/src/org/eclipse/jdt/text/tests/contentassist/ContentAssistHistoryTest.java index 118d86c3517..05ccc1a677f 100644 --- a/org.eclipse.jdt.text.tests/src/org/eclipse/jdt/text/tests/contentassist/ContentAssistHistoryTest.java +++ b/org.eclipse.jdt.text.tests/src/org/eclipse/jdt/text/tests/contentassist/ContentAssistHistoryTest.java @@ -38,6 +38,7 @@ /** * @since 3.2 */ +@SuppressWarnings("deprecation") // Preferences public class ContentAssistHistoryTest { private static final String LINKED_LIST= "java.util.LinkedList"; private static final String ARRAY_LIST= "java.util.ArrayList"; @@ -234,7 +235,6 @@ public void testLoadStore() throws Exception { history.remember(fgListT, fgArrayListT); history.remember(fgCharSequenceT, fgStringT); - Preferences prefs= new Preferences(); String key= "myKey"; ContentAssistHistory.store(history, prefs, key); diff --git a/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/AdvancedQuickAssistTest.java b/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/AdvancedQuickAssistTest.java index 598a7e65116..2ad1ba09851 100644 --- a/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/AdvancedQuickAssistTest.java +++ b/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/AdvancedQuickAssistTest.java @@ -56,6 +56,7 @@ import org.eclipse.jdt.internal.ui.text.correction.CorrectionMessages; import org.eclipse.jdt.internal.ui.text.correction.QuickTemplateProcessor; +@SuppressWarnings("deprecation") // Preferences public class AdvancedQuickAssistTest extends QuickFixTest { @Rule public ProjectTestSetup projectSetup= new ProjectTestSetup(); diff --git a/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/AdvancedQuickAssistTest1d7.java b/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/AdvancedQuickAssistTest1d7.java index 4c9346717b6..ceab3079ba0 100644 --- a/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/AdvancedQuickAssistTest1d7.java +++ b/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/AdvancedQuickAssistTest1d7.java @@ -50,6 +50,7 @@ /** * Those tests should run on Java Dolphin 1.7 . */ +@SuppressWarnings("deprecation") // Preferences public class AdvancedQuickAssistTest1d7 extends QuickFixTest { @Rule public ProjectTestSetup projectSetup= new Java1d7ProjectTestSetup(); diff --git a/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/AssistQuickFixTest.java b/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/AssistQuickFixTest.java index a4dc9b0ad71..2528ce6c03c 100644 --- a/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/AssistQuickFixTest.java +++ b/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/AssistQuickFixTest.java @@ -73,6 +73,7 @@ import org.eclipse.jdt.internal.ui.text.correction.proposals.LinkedNamesAssistProposal; import org.eclipse.jdt.internal.ui.text.correction.proposals.RenameRefactoringProposal; +@SuppressWarnings("deprecation") // Preferences public class AssistQuickFixTest extends QuickFixTest { @Rule public ProjectTestSetup projectSetup = new ProjectTestSetup(); diff --git a/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/AssistQuickFixTest1d7.java b/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/AssistQuickFixTest1d7.java index 3627d609075..7c46268dcde 100644 --- a/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/AssistQuickFixTest1d7.java +++ b/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/AssistQuickFixTest1d7.java @@ -51,6 +51,7 @@ /** * Those tests should run on Java Dolphin 1.7 . */ +@SuppressWarnings("deprecation") // Preferences public class AssistQuickFixTest1d7 extends QuickFixTest { @Rule diff --git a/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/ChangeNonStaticToStaticTest.java b/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/ChangeNonStaticToStaticTest.java index 7ee24707c95..c92d16db587 100644 --- a/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/ChangeNonStaticToStaticTest.java +++ b/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/ChangeNonStaticToStaticTest.java @@ -55,6 +55,7 @@ import org.eclipse.jdt.internal.ui.JavaPlugin; import org.eclipse.jdt.internal.ui.fix.CodeStyleCleanUpCore; +@SuppressWarnings("deprecation") // Preferences public class ChangeNonStaticToStaticTest extends QuickFixTest { @Rule diff --git a/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/CleanUpTestCase.java b/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/CleanUpTestCase.java index 96de0ca5c98..a75f9a1fe3f 100644 --- a/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/CleanUpTestCase.java +++ b/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/CleanUpTestCase.java @@ -83,6 +83,7 @@ import org.eclipse.jdt.internal.ui.preferences.formatter.ProfileManager.Profile; import org.eclipse.jdt.internal.ui.preferences.formatter.ProfileStore; +@SuppressWarnings("deprecation") // Preferences public abstract class CleanUpTestCase extends QuickFixTest { protected static final String FIELD_COMMENT= "/* Test */"; diff --git a/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/PropertiesFileQuickAssistTest.java b/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/PropertiesFileQuickAssistTest.java index 576860756ef..0dd9269f67c 100644 --- a/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/PropertiesFileQuickAssistTest.java +++ b/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/PropertiesFileQuickAssistTest.java @@ -66,6 +66,7 @@ import org.eclipse.jdt.internal.ui.propertiesfileeditor.PropertiesFileEditorMessages; import org.eclipse.jdt.internal.ui.propertiesfileeditor.PropertiesQuickAssistProcessor; +@SuppressWarnings("deprecation") // Preferences public class PropertiesFileQuickAssistTest { @Rule diff --git a/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/SurroundWithTemplateTest.java b/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/SurroundWithTemplateTest.java index 79c25685aa0..ae43ea0771a 100644 --- a/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/SurroundWithTemplateTest.java +++ b/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/SurroundWithTemplateTest.java @@ -55,6 +55,7 @@ import org.eclipse.jdt.internal.ui.text.correction.AssistContext; import org.eclipse.jdt.internal.ui.text.correction.QuickTemplateProcessor; +@SuppressWarnings("deprecation") // Preferences public class SurroundWithTemplateTest extends QuickFixTest { @Rule diff --git a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaPlugin.java b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaPlugin.java index 66fe74c049b..9ccd1c67d1c 100644 --- a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaPlugin.java +++ b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaPlugin.java @@ -139,6 +139,7 @@ * access to the workbench, keeps track of elements shared by all editors and viewers * of the plug-in such as document providers and find-replace-dialogs. */ +@SuppressWarnings("deprecation") // Preferences public class JavaPlugin extends AbstractUIPlugin implements DebugOptionsListener { /** diff --git a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorColoringConfigurationBlock.java b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorColoringConfigurationBlock.java index 125583eaf10..260cd2058ea 100644 --- a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorColoringConfigurationBlock.java +++ b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorColoringConfigurationBlock.java @@ -93,6 +93,7 @@ * * @since 2.1 */ +@SuppressWarnings("deprecation") // Preferences class JavaEditorColoringConfigurationBlock extends AbstractConfigurationBlock { /** diff --git a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaCommentScanner.java b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaCommentScanner.java index 51b4c149cb6..ac4c4471c4e 100644 --- a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaCommentScanner.java +++ b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaCommentScanner.java @@ -44,6 +44,7 @@ /** * Java comment scanner. */ +@SuppressWarnings("deprecation") // Preferences public class JavaCommentScanner extends AbstractJavaScanner{ private static class AtJavaIdentifierDetector implements IWordDetector { diff --git a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/PreferencesAdapter.java b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/PreferencesAdapter.java index ad2136f3950..33eec1ff7f1 100644 --- a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/PreferencesAdapter.java +++ b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/PreferencesAdapter.java @@ -32,6 +32,7 @@ * * @since 3.0 */ +@SuppressWarnings("deprecation") // Preferences public class PreferencesAdapter implements IPreferenceStore { /** diff --git a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ContentAssistHistory.java b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ContentAssistHistory.java index be49cd74d62..5575a689f47 100644 --- a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ContentAssistHistory.java +++ b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ContentAssistHistory.java @@ -68,6 +68,7 @@ * * @since 3.2 */ +@SuppressWarnings("deprecation") // Preferences public final class ContentAssistHistory { /** * Persistence implementation. diff --git a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocScanner.java b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocScanner.java index 3ba86f38a4b..e4ef6a1d923 100644 --- a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocScanner.java +++ b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocScanner.java @@ -46,6 +46,7 @@ /** * A rule based JavaDoc scanner. */ +@SuppressWarnings("deprecation") // Preferences public final class JavaDocScanner extends JavaCommentScanner { diff --git a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/spelling/TaskTagDictionary.java b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/spelling/TaskTagDictionary.java index e56e9a0add8..bece2a8379e 100644 --- a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/spelling/TaskTagDictionary.java +++ b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/spelling/TaskTagDictionary.java @@ -30,6 +30,7 @@ * * @since 3.0 */ +@SuppressWarnings("deprecation") // Preferences public class TaskTagDictionary extends AbstractSpellDictionary implements IPropertyChangeListener { /* diff --git a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaTextTools.java b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaTextTools.java index e38d9da8441..631d4aef0e3 100644 --- a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaTextTools.java +++ b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaTextTools.java @@ -44,6 +44,7 @@ * * @noextend This class is not intended to be subclassed by clients. */ +@SuppressWarnings("deprecation") // Preferences public class JavaTextTools { /**