Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress warnings about deprecated Preferences in legacy Code #1191

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
/**
* Those tests should run on Java Dolphin 1.7 .
*/
@SuppressWarnings("deprecation") // Preferences
public class AssistQuickFixTest1d7 extends QuickFixTest {

@Rule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 */";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
*
* @since 2.1
*/
@SuppressWarnings("deprecation") // Preferences
class JavaEditorColoringConfigurationBlock extends AbstractConfigurationBlock {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
/**
* Java comment scanner.
*/
@SuppressWarnings("deprecation") // Preferences
public class JavaCommentScanner extends AbstractJavaScanner{

private static class AtJavaIdentifierDetector implements IWordDetector {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
*
* @since 3.0
*/
@SuppressWarnings("deprecation") // Preferences
public class PreferencesAdapter implements IPreferenceStore {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
*
* @since 3.2
*/
@SuppressWarnings("deprecation") // Preferences
public final class ContentAssistHistory {
/**
* Persistence implementation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
/**
* A rule based JavaDoc scanner.
*/
@SuppressWarnings("deprecation") // Preferences
public final class JavaDocScanner extends JavaCommentScanner {


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
*
* @since 3.0
*/
@SuppressWarnings("deprecation") // Preferences
public class TaskTagDictionary extends AbstractSpellDictionary implements IPropertyChangeListener {

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
*
* @noextend This class is not intended to be subclassed by clients.
*/
@SuppressWarnings("deprecation") // Preferences
public class JavaTextTools {

/**
Expand Down
Loading