groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject groovy git commit: GROOVY-8170: Error in note 1 for pseudo-properties: should be "writing" not "reading"
Date Tue, 23 May 2017 12:43:55 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_4_X 8223b98af -> cd668e0e3


GROOVY-8170: Error in note 1 for pseudo-properties: should be "writing" not "reading"


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/cd668e0e
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/cd668e0e
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/cd668e0e

Branch: refs/heads/GROOVY_2_4_X
Commit: cd668e0e3927d073f22039ee7cffc1fbb77650a5
Parents: 8223b98
Author: paulk <paulk@asert.com.au>
Authored: Tue May 23 22:40:46 2017 +1000
Committer: paulk <paulk@asert.com.au>
Committed: Tue May 23 22:43:41 2017 +1000

----------------------------------------------------------------------
 src/spec/doc/core-object-orientation.adoc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/cd668e0e/src/spec/doc/core-object-orientation.adoc
----------------------------------------------------------------------
diff --git a/src/spec/doc/core-object-orientation.adoc b/src/spec/doc/core-object-orientation.adoc
index 5f5b34d..1189e9c 100644
--- a/src/spec/doc/core-object-orientation.adoc
+++ b/src/spec/doc/core-object-orientation.adoc
@@ -456,14 +456,15 @@ It is possible to list the properties of a class thanks to the meta
`properties`
 include::{projectdir}/src/spec/test/ClassTest.groovy[tags=properties_meta,indent=0]
 ----
 
-By convention, Groovy will recognize properties even if there is no backing field, if there
are getters or setters
+By convention, Groovy will recognize properties even if there is no backing field
+provided there are getters or setters
 that follow the Java Beans specification. For example:
 
 [source,groovy]
 ----
 include::{projectdir}/src/spec/test/ClassTest.groovy[tags=pseudo_properties,indent=0]
 ----
-<1> reading `p.name` is allowed because there is a pseudo-property `name`
+<1> writing `p.name` is allowed because there is a pseudo-property `name`
 <2> reading `p.age` is allowed because there is a pseudo-readonly property `age`
 <3> writing `p.groovy` is allowed because there is a pseudo-writeonly property `groovy`
 


Mime
View raw message