Skip to content

Fix suppressWarnings #3072

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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 @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.e4.ui.model.workbench;singleton:=true
Bundle-Version: 2.4.600.qualifier
Bundle-Version: 2.4.700.qualifier
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: JavaSE-17
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@

public class ModelXPathEvaluator {

@SuppressWarnings({ "deprecation", "removal" })
@SuppressWarnings({ "removal" })
public static <T> Stream<T> findMatchingElements(MApplicationElement searchRoot, String xPath, Class<T> clazz) {
return XPathContextFactory.newInstance().newContext(searchRoot).stream(xPath, clazz);

Check warning on line 24 in bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/ModelXPathEvaluator.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Deprecation

NORMAL: The method newInstance() from the type XPathContextFactory is deprecated

Check warning on line 24 in bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/ModelXPathEvaluator.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Deprecation

NORMAL: is deprecated The method newContext(Object) from the type XPathContextFactory

Check warning on line 24 in bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/ModelXPathEvaluator.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Deprecation

NORMAL: ) from the type XPathContext is deprecated The method stream(String, Class
}

// Inline the then still used part of JavaXPathContextFactoryImpl here once the
Expand Down
Loading