You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2019/04/27 09:54:54 UTC

[groovy] branch GROOVY_2_5_X updated: minor refactor: remove javadoc warnings (fix typo)

This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch GROOVY_2_5_X
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/GROOVY_2_5_X by this push:
     new cff8452  minor refactor: remove javadoc warnings (fix typo)
cff8452 is described below

commit cff8452fb1555cfc4008669385c5844f36f97572
Author: Paul King <pa...@asert.com.au>
AuthorDate: Sat Apr 27 19:54:42 2019 +1000

    minor refactor: remove javadoc warnings (fix typo)
---
 subprojects/groovy-sql/src/main/java/groovy/sql/DataSet.java | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/subprojects/groovy-sql/src/main/java/groovy/sql/DataSet.java b/subprojects/groovy-sql/src/main/java/groovy/sql/DataSet.java
index c067e25..9e901de 100644
--- a/subprojects/groovy-sql/src/main/java/groovy/sql/DataSet.java
+++ b/subprojects/groovy-sql/src/main/java/groovy/sql/DataSet.java
@@ -44,8 +44,8 @@ import java.util.Set;
  * def db = // an instance of groovy.sql.Sql
  * def sql = '''select * from Person
  *     where (purchaseCount > ? and birthMonth = ?)
- *     and (lastName &lt; ? or lastName > ?)
- *     and age &lt; ? and age > ? and firstName != ?
+ *     and (lastName < ? or lastName > ?)
+ *     and age < ? and age > ? and firstName != ?
  *     order by firstName DESC, age'''
  * def params = [10, "January", "Zulu", "Alpha", 99, 5, "Bert"]
  * def sortedPeopleOfInterest = db.rows(sql, params)
@@ -57,10 +57,11 @@ import java.util.Set;
  * def person = new DataSet(db, 'Person') // or db.dataSet('Person'), or db.dataSet(Person)
  * def janFrequentBuyers = person.findAll { it.purchaseCount > 10 && it.lastName == "January" }
  * def sortedPeopleOfInterest = janFrequentBuyers.
- *     findAll{ it.lastName &lt; 'Zulu' || it.lastName > 'Alpha' }.
- *     findAll{ it.age &lt; 99 }.
+ *     findAll{ it.lastName < 'Zulu' || it.lastName > 'Alpha' }.
+ *     findAll{ it.age < 99 }.
  *     findAll{ it.age > 5 }.
- *     sort{ it.firstName }.reverse().
+ *     sort{ it.firstName }.
+ *     reverse().
  *     findAll{ it.firstName != 'Bert' }.
  *     sort{ it.age }
  * }