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/03/14 11:08:09 UTC

[1/2] groovy git commit: GROOVY-8118: Builder's DefaultStrategy has small doc error

Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_4_X 1f629229b -> c24167c09


GROOVY-8118: Builder's DefaultStrategy has small doc error


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

Branch: refs/heads/GROOVY_2_4_X
Commit: 38bf97baf0af6944edf64ab8173f0bbfeb03b4df
Parents: 313150e
Author: paulk <pa...@asert.com.au>
Authored: Mon Mar 13 08:55:19 2017 +1000
Committer: paulk <pa...@asert.com.au>
Committed: Mon Mar 13 08:58:57 2017 +1000

----------------------------------------------------------------------
 src/main/groovy/transform/builder/DefaultStrategy.java | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/38bf97ba/src/main/groovy/transform/builder/DefaultStrategy.java
----------------------------------------------------------------------
diff --git a/src/main/groovy/transform/builder/DefaultStrategy.java b/src/main/groovy/transform/builder/DefaultStrategy.java
index 35a522e..be7466b 100644
--- a/src/main/groovy/transform/builder/DefaultStrategy.java
+++ b/src/main/groovy/transform/builder/DefaultStrategy.java
@@ -76,7 +76,7 @@ import static org.objectweb.asm.Opcodes.ACC_STATIC;
  *     String lastName
  *     int age
  * }
- * def person = Person.builder().firstName("Robert").lastName("Lewandowski").age(21)
+ * def person = Person.builder().firstName("Robert").lastName("Lewandowski").age(21).build()
  * assert person.firstName == "Robert"
  * assert person.lastName == "Lewandowski"
  * assert person.age == 21
@@ -90,11 +90,11 @@ import static org.objectweb.asm.Opcodes.ACC_STATIC;
  *     String lastName
  *     int age
  * }
- * def p2 = Person.builder().setFirstName("Robert").setLastName("Lewandowski").setAge(21)
+ * def p2 = Person.builder().setFirstName("Robert").setLastName("Lewandowski").setAge(21).build()
  * </pre>
  * or using a prefix of 'with' would result in usage like this:
  * <pre>
- * def p3 = Person.builder().withFirstName("Robert").withLastName("Lewandowski").withAge(21)
+ * def p3 = Person.builder().withFirstName("Robert").withLastName("Lewandowski").withAge(21).build()
  * </pre>
  *
  * You can also use the {@code @Builder} annotation in combination with this strategy on one or more constructor or
@@ -159,8 +159,6 @@ import static org.objectweb.asm.Opcodes.ACC_STATIC;
  * </pre>
  *
  * The 'forClass' annotation attribute for the {@code @Builder} transform isn't applicable for this strategy.
- *
- * @author Paul King
  */
 public class DefaultStrategy extends BuilderASTTransformation.AbstractBuilderStrategy {
     private static final Expression DEFAULT_INITIAL_VALUE = null;


[2/2] groovy git commit: Merge branch 'GROOVY_2_4_X' of http://git-wip-us.apache.org/repos/asf/groovy into GROOVY_2_4_X

Posted by pa...@apache.org.
Merge branch 'GROOVY_2_4_X' of http://git-wip-us.apache.org/repos/asf/groovy into GROOVY_2_4_X


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

Branch: refs/heads/GROOVY_2_4_X
Commit: c24167c09e83ebf5d9f096b44d360db3ef888369
Parents: 38bf97b 1f62922
Author: paulk <pa...@asert.com.au>
Authored: Tue Mar 14 21:07:06 2017 +1000
Committer: paulk <pa...@asert.com.au>
Committed: Tue Mar 14 21:07:06 2017 +1000

----------------------------------------------------------------------
 build.gradle | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
----------------------------------------------------------------------