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 2017/05/23 12:41:00 UTC

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

Repository: groovy
Updated Branches:
  refs/heads/master 15dc1d82a -> ffe788e12


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/ffe788e1
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/ffe788e1
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/ffe788e1

Branch: refs/heads/master
Commit: ffe788e127211a802b4d78b3ce968c7ca7ccce27
Parents: 15dc1d8
Author: paulk <pa...@asert.com.au>
Authored: Tue May 23 22:40:46 2017 +1000
Committer: paulk <pa...@asert.com.au>
Committed: Tue May 23 22:40:46 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/ffe788e1/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 c857441..87a5033 100644
--- a/src/spec/doc/core-object-orientation.adoc
+++ b/src/spec/doc/core-object-orientation.adoc
@@ -508,14 +508,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`