Skip to content

Provide user documentation with the summary of changes in "deprecation" area #4576

@Phillipus

Description

@Phillipus

In Eclipse 4.34 I have a class that is deprecated and a static reference to one of its methods in another class:

package example;

@Deprecated
public class Foo {
    public static void someStaticMethod() {
    }
}
package example;

import static example.Foo.someStaticMethod;

public class Other {
    @SuppressWarnings("deprecation")
    Other() {
        someStaticMethod();
    }
}

The @SuppressWarnings("deprecation") works as expected in class Other and all is well.

However, in Eclipse 4.38 (Build id: I20251029-1800) things are different:

  1. There is a "The enclosing type Foo is deprecated, perhaps this member should be marked as deprecated, too?" info message for class Foo
  2. There is a "Unnecessary @SuppressWarnings("deprecation")" warning for class Other

That's OK I guess but I can't find a way to ignore these messages in the Errors/Warnings preferences of the workspace. As I'm switching between versions of Eclipse if I fix these warnings in one version I get the inverse warnings in the other version.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions