You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by ke...@apache.org on 2015/11/07 00:26:28 UTC

incubator-groovy git commit: GROOVY-7524: Document that TupleConstructor and InheritConstructors shouldn't be mixed (closes #180)

Repository: incubator-groovy
Updated Branches:
  refs/heads/master 14b2307e8 -> 1eb37ea96


GROOVY-7524: Document that TupleConstructor and InheritConstructors shouldn't be mixed (closes #180)


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

Branch: refs/heads/master
Commit: 1eb37ea96428e14f0418fa003292cce9d3f94f94
Parents: 14b2307
Author: Keegan Witt <ke...@gmail.com>
Authored: Wed Nov 4 22:16:46 2015 -0500
Committer: Keegan Witt <ke...@gmail.com>
Committed: Fri Nov 6 18:26:08 2015 -0500

----------------------------------------------------------------------
 src/main/groovy/transform/InheritConstructors.java | 1 +
 src/main/groovy/transform/TupleConstructor.java    | 1 +
 2 files changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/1eb37ea9/src/main/groovy/transform/InheritConstructors.java
----------------------------------------------------------------------
diff --git a/src/main/groovy/transform/InheritConstructors.java b/src/main/groovy/transform/InheritConstructors.java
index f4416c8..cd22173 100644
--- a/src/main/groovy/transform/InheritConstructors.java
+++ b/src/main/groovy/transform/InheritConstructors.java
@@ -27,6 +27,7 @@ import java.lang.annotation.Target;
 
 /**
  * Class annotation to make constructors from a super class available in a sub class.
+ * Do not use with {@link TupleConstructor}.
  * <p>
  * {@code @InheritConstructors} saves you typing some boilerplate code.
  * <p>

http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/1eb37ea9/src/main/groovy/transform/TupleConstructor.java
----------------------------------------------------------------------
diff --git a/src/main/groovy/transform/TupleConstructor.java b/src/main/groovy/transform/TupleConstructor.java
index e077657..7090a86 100644
--- a/src/main/groovy/transform/TupleConstructor.java
+++ b/src/main/groovy/transform/TupleConstructor.java
@@ -27,6 +27,7 @@ import java.lang.annotation.Target;
 
 /**
  * Class annotation used to assist in the creation of tuple constructors in classes.
+ * Do not use with {@link InheritConstructors}.
  * <p>
  * It allows you to write classes in this shortened form:
  * <pre>