-
Notifications
You must be signed in to change notification settings - Fork 164
Closed
Milestone
Description
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:
- There is a
"The enclosing type Foo is deprecated, perhaps this member should be marked as deprecated, too?"info message for classFoo - There is a
"Unnecessary @SuppressWarnings("deprecation")"warning for classOther
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels