Skip to content

Commit 0d41f3d

Browse files
authored
Fixes some typos in javadoc (#1756)
1 parent 2f9a391 commit 0d41f3d

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

grails-datastore-gorm/src/main/groovy/grails/gorm/api/GormStaticOperations.groovy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,25 +106,25 @@ interface GormStaticOperations<D> {
106106
D create()
107107

108108
/**
109-
* Retrieves and object from the datastore. eg. Book.get(1)
109+
* Retrieves an object from the datastore. eg. Book.get(1)
110110
*/
111111
D get(Serializable id)
112112

113113
/**
114-
* Retrieves and object from the datastore. eg. Book.read(1)
114+
* Retrieves an object from the datastore. eg. Book.read(1)
115115
*
116116
* Since the datastore abstraction doesn't support dirty checking yet this
117117
* just delegates to {@link #get(Serializable)}
118118
*/
119119
D read(Serializable id)
120120

121121
/**
122-
* Retrieves and object from the datastore as a proxy. eg. Book.load(1)
122+
* Retrieves an object from the datastore as a proxy. eg. Book.load(1)
123123
*/
124124
D load(Serializable id)
125125

126126
/**
127-
* Retrieves and object from the datastore as a proxy. eg. Book.proxy(1)
127+
* Retrieves an object from the datastore as a proxy. eg. Book.proxy(1)
128128
*/
129129
D proxy(Serializable id)
130130

grails-datastore-gorm/src/main/groovy/org/grails/datastore/gorm/GormEntity.groovy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -547,14 +547,14 @@ trait GormEntity<D> implements GormValidateable, DirtyCheckable, GormEntityApi<D
547547
}
548548

549549
/**
550-
* Retrieves and object from the datastore. eg. Book.get(1)
550+
* Retrieves an object from the datastore. eg. Book.get(1)
551551
*/
552552
static D get(Serializable id) {
553553
currentGormStaticApi().get id
554554
}
555555

556556
/**
557-
* Retrieves and object from the datastore. eg. Book.read(1)
557+
* Retrieves an object from the datastore. eg. Book.read(1)
558558
*
559559
* Since the datastore abstraction doesn't support dirty checking yet this
560560
* just delegates to {@link #get(Serializable)}
@@ -564,14 +564,14 @@ trait GormEntity<D> implements GormValidateable, DirtyCheckable, GormEntityApi<D
564564
}
565565

566566
/**
567-
* Retrieves and object from the datastore as a proxy. eg. Book.load(1)
567+
* Retrieves an object from the datastore as a proxy. eg. Book.load(1)
568568
*/
569569
static D load(Serializable id) {
570570
currentGormStaticApi().load id
571571
}
572572

573573
/**
574-
* Retrieves and object from the datastore as a proxy. eg. Book.proxy(1)
574+
* Retrieves an object from the datastore as a proxy. eg. Book.proxy(1)
575575
*/
576576
static D proxy(Serializable id) {
577577
currentGormStaticApi().proxy id

grails-datastore-gorm/src/main/groovy/org/grails/datastore/gorm/GormStaticApi.groovy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ class GormStaticApi<D> extends AbstractGormApi<D> implements GormAllOperations<D
333333
}
334334

335335
/**
336-
* Retrieves and object from the datastore. eg. Book.get(1)
336+
* Retrieves an object from the datastore. eg. Book.get(1)
337337
*/
338338
D get(Serializable id) {
339339
(D)execute({ Session session ->
@@ -342,7 +342,7 @@ class GormStaticApi<D> extends AbstractGormApi<D> implements GormAllOperations<D
342342
}
343343

344344
/**
345-
* Retrieves and object from the datastore. eg. Book.read(1)
345+
* Retrieves an object from the datastore. eg. Book.read(1)
346346
*
347347
* Since the datastore abstraction doesn't support dirty checking yet this
348348
* just delegates to {@link #get(Serializable)}
@@ -354,7 +354,7 @@ class GormStaticApi<D> extends AbstractGormApi<D> implements GormAllOperations<D
354354
}
355355

356356
/**
357-
* Retrieves and object from the datastore as a proxy. eg. Book.load(1)
357+
* Retrieves an object from the datastore as a proxy. eg. Book.load(1)
358358
*/
359359
D load(Serializable id) {
360360
(D)execute ({ Session session ->
@@ -363,7 +363,7 @@ class GormStaticApi<D> extends AbstractGormApi<D> implements GormAllOperations<D
363363
}
364364

365365
/**
366-
* Retrieves and object from the datastore as a proxy. eg. Book.proxy(1)
366+
* Retrieves an object from the datastore as a proxy. eg. Book.proxy(1)
367367
*/
368368
D proxy(Serializable id) {
369369
load(id)

0 commit comments

Comments
 (0)