Fix test case and documentation (closes #458) `Foo.i` is a field; only `Foo.i.class` could be `int.class`
Project: http://git-wip-us.apache.org/repos/asf/groovy/repo Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/1c58ba3c Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/1c58ba3c Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/1c58ba3c Branch: refs/heads/GROOVY_2_4_X Commit: 1c58ba3cbd0812288fc550bc29004184a7899ca9 Parents: 376e051 Author: Erich Schubert <[email protected]> Authored: Mon Nov 7 11:16:50 2016 +0100 Committer: paulk <[email protected]> Committed: Mon Nov 7 21:23:23 2016 +1000 ---------------------------------------------------------------------- src/spec/test/PrimitiveTest.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/groovy/blob/1c58ba3c/src/spec/test/PrimitiveTest.groovy ---------------------------------------------------------------------- diff --git a/src/spec/test/PrimitiveTest.groovy b/src/spec/test/PrimitiveTest.groovy index 1c3d333..2780fba 100644 --- a/src/spec/test/PrimitiveTest.groovy +++ b/src/spec/test/PrimitiveTest.groovy @@ -26,7 +26,7 @@ class PrimitiveTest extends GroovyTestCase { } assert Foo.class.getDeclaredField('i').type == int.class - assert Foo.i != int.class && Foo.i.class == Integer.class + assert Foo.i.class != int.class && Foo.i.class == Integer.class // end::primitive_references[] ''' }
