Skip to content

Commit f7a4f27

Browse files
authored
Merge pull request #9819 from mendix/MvM-JavaReturn
Add return type to Java with return
2 parents 2eee16e + 6f4100e commit f7a4f27

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

  • content/en/docs
    • refguide10/modeling/xpath/xpath-constraints
    • refguide/modeling/xpath/xpath-constraints

content/en/docs/refguide/modeling/xpath/xpath-constraints/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ The XPath should be used in a [core.createXPathQuery](https://apidocs.rnd.mendix
9898
For example, to retrieve all customers named Jansen:
9999

100100
```java
101-
public getCustomersNameJansen(IContext context, ICore core, int value) {
101+
public List<IMendixObject> getCustomersNameJansen(IContext context, ICore core, int value) {
102102
List<IMendixObject> results = core.createXPathQuery("//Sales.Customer[Name='Jansen']")
103103
.execute(context);
104104
return results;

content/en/docs/refguide10/modeling/xpath/xpath-constraints/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ The XPath should be used in a [core.createXPathQuery](https://apidocs.rnd.mendix
114114
For example, to retrieve all customers named Jansen:
115115

116116
```java
117-
public getCustomersNameJansen(IContext context, ICore core, int value) {
117+
public List<IMendixObject> getCustomersNameJansen(IContext context, ICore core, int value) {
118118
List<IMendixObject> results = core.createXPathQuery("//Sales.Customer[Name='Jansen']")
119119
.execute(context);
120120
return results;

0 commit comments

Comments
 (0)