Skip to content

Commit d767d35

Browse files
eclipse-platform-botakurtakov
authored andcommitted
Perform clean code of bundles/org.eclipse.e4.emf.xpath
1 parent 696393e commit d767d35

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

bundles/org.eclipse.e4.emf.xpath/src/org/eclipse/e4/emf/xpath/EcoreXPathContextFactory.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public class EcoreXPathContextFactory {
2929
*
3030
* @return the factory
3131
*/
32+
@Deprecated
3233
public static XPathContextFactory<EObject> newInstance() {
3334
return new JavaXPathContextFactoryImpl<>();
3435
}

bundles/org.eclipse.e4.emf.xpath/src/org/eclipse/e4/emf/xpath/XPathContext.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public interface XPathContext {
3838
* to evaluate
3939
* @return Object found
4040
*/
41+
@Deprecated
4142
Object getValue(String xpath);
4243

4344
/**
@@ -50,6 +51,7 @@ public interface XPathContext {
5051
* required type
5152
* @return Object found
5253
*/
54+
@Deprecated
5355
<T> T getValue(String xpath, Class<T> requiredType);
5456

5557
/**
@@ -62,6 +64,7 @@ public interface XPathContext {
6264
* @param xpath to iterate
6365
* @return Iterator&lt;Object&gt;
6466
*/
67+
@Deprecated
6568
<T> Iterator<T> iterate(String xpath);
6669

6770
/**
@@ -76,6 +79,7 @@ public interface XPathContext {
7679
* type
7780
* @since 0.5
7881
*/
82+
@Deprecated
7983
default <T> Stream<T> stream(String xpath, Class<T> type) {
8084
Iterator<?> iterator = iterate(xpath);
8185
return StreamSupport.stream(Spliterators.spliteratorUnknownSize(iterator, Spliterator.ORDERED), false)

bundles/org.eclipse.e4.emf.xpath/src/org/eclipse/e4/emf/xpath/XPathContextFactory.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public abstract class XPathContextFactory<T> {
3232
* @param contextBean Object
3333
* @return XPathContext
3434
*/
35+
@Deprecated
3536
public abstract XPathContext newContext(T contextBean);
3637

3738
/**
@@ -55,6 +56,7 @@ public abstract class XPathContextFactory<T> {
5556
* @param <T> the object type the xpath is created for
5657
* @return Create a new XPath-Factory
5758
*/
59+
@Deprecated
5860
public static <T> XPathContextFactory<T> newInstance() {
5961
return new JavaXPathContextFactoryImpl<>();
6062
}

bundles/org.eclipse.e4.emf.xpath/src/org/eclipse/e4/emf/xpath/XPathNotFoundException.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
public class XPathNotFoundException extends IllegalArgumentException {
2525
private static final long serialVersionUID = -4174244860692153739L;
2626

27+
@Deprecated
2728
public XPathNotFoundException(String message) {
2829
super(message);
2930
}

0 commit comments

Comments
 (0)