Skip to content

Commit 7b5da6a

Browse files
committed
minor refactor: remove javadoc warnings (fix typo)
1 parent addd13f commit 7b5da6a

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

subprojects/groovy-sql/src/main/java/groovy/sql/DataSet.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,23 +44,24 @@
4444
* def db = // an instance of groovy.sql.Sql
4545
* def sql = '''select * from Person
4646
* where (purchaseCount > ? and birthMonth = ?)
47-
* and (lastName < ? or lastName > ?)
48-
* and age < ? and age > ? and firstName != ?
47+
* and (lastName < ? or lastName > ?)
48+
* and age < ? and age > ? and firstName != ?
4949
* order by firstName DESC, age'''
5050
* def params = [10, "January", "Zulu", "Alpha", 99, 5, "Bert"]
5151
* def sortedPeopleOfInterest = db.rows(sql, params)
5252
* }
5353
* </pre>
5454
* You can write code like this:
5555
* <pre>
56-
* @{code
56+
* {@code
5757
* def person = new DataSet(db, 'Person') // or db.dataSet('Person'), or db.dataSet(Person)
5858
* def janFrequentBuyers = person.findAll { it.purchaseCount > 10 && it.lastName == "January" }
5959
* def sortedPeopleOfInterest = janFrequentBuyers.
60-
* findAll{ it.lastName &lt; 'Zulu' || it.lastName > 'Alpha' }.
61-
* findAll{ it.age &lt; 99 }.
60+
* findAll{ it.lastName < 'Zulu' || it.lastName > 'Alpha' }.
61+
* findAll{ it.age < 99 }.
6262
* findAll{ it.age > 5 }.
63-
* sort{ it.firstName }.reverse().
63+
* sort{ it.firstName }.
64+
* reverse().
6465
* findAll{ it.firstName != 'Bert' }.
6566
* sort{ it.age }
6667
* }

0 commit comments

Comments
 (0)