Skip to content

Commit

Permalink
Fixes some typos in javadoc (#1756)
Browse files Browse the repository at this point in the history
  • Loading branch information
matrei committed Oct 6, 2023
1 parent 2f9a391 commit 0d41f3d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,25 +106,25 @@ interface GormStaticOperations<D> {
D create()

/**
* Retrieves and object from the datastore. eg. Book.get(1)
* Retrieves an object from the datastore. eg. Book.get(1)
*/
D get(Serializable id)

/**
* Retrieves and object from the datastore. eg. Book.read(1)
* Retrieves an object from the datastore. eg. Book.read(1)
*
* Since the datastore abstraction doesn't support dirty checking yet this
* just delegates to {@link #get(Serializable)}
*/
D read(Serializable id)

/**
* Retrieves and object from the datastore as a proxy. eg. Book.load(1)
* Retrieves an object from the datastore as a proxy. eg. Book.load(1)
*/
D load(Serializable id)

/**
* Retrieves and object from the datastore as a proxy. eg. Book.proxy(1)
* Retrieves an object from the datastore as a proxy. eg. Book.proxy(1)
*/
D proxy(Serializable id)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -547,14 +547,14 @@ trait GormEntity<D> implements GormValidateable, DirtyCheckable, GormEntityApi<D
}

/**
* Retrieves and object from the datastore. eg. Book.get(1)
* Retrieves an object from the datastore. eg. Book.get(1)
*/
static D get(Serializable id) {
currentGormStaticApi().get id
}

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

/**
* Retrieves and object from the datastore as a proxy. eg. Book.load(1)
* Retrieves an object from the datastore as a proxy. eg. Book.load(1)
*/
static D load(Serializable id) {
currentGormStaticApi().load id
}

/**
* Retrieves and object from the datastore as a proxy. eg. Book.proxy(1)
* Retrieves an object from the datastore as a proxy. eg. Book.proxy(1)
*/
static D proxy(Serializable id) {
currentGormStaticApi().proxy id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ class GormStaticApi<D> extends AbstractGormApi<D> implements GormAllOperations<D
}

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

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

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

/**
* Retrieves and object from the datastore as a proxy. eg. Book.proxy(1)
* Retrieves an object from the datastore as a proxy. eg. Book.proxy(1)
*/
D proxy(Serializable id) {
load(id)
Expand Down

0 comments on commit 0d41f3d

Please sign in to comment.