This is an automated email from the ASF dual-hosted git repository.

benw pushed a commit to branch TAP5-2764
in repository https://gitbox.apache.org/repos/asf/tapestry-5.git


The following commit(s) were added to refs/heads/TAP5-2764 by this push:
     new c524708af JSONArray(Spec) @since/@Issue added
c524708af is described below

commit c524708af98ba076a05a2c0903bdab0cd1ad15ef
Author: Ben Weidig <b...@netzgut.net>
AuthorDate: Sat Oct 14 16:37:35 2023 +0200

    JSONArray(Spec) @since/@Issue added
---
 tapestry-json/src/main/java/org/apache/tapestry5/json/JSONArray.java | 2 ++
 tapestry-json/src/test/groovy/json/specs/JSONArraySpec.groovy        | 4 ++++
 2 files changed, 6 insertions(+)

diff --git 
a/tapestry-json/src/main/java/org/apache/tapestry5/json/JSONArray.java 
b/tapestry-json/src/main/java/org/apache/tapestry5/json/JSONArray.java
index 02cacfb17..ce22e1905 100644
--- a/tapestry-json/src/main/java/org/apache/tapestry5/json/JSONArray.java
+++ b/tapestry-json/src/main/java/org/apache/tapestry5/json/JSONArray.java
@@ -58,6 +58,8 @@ public final class JSONArray extends JSONCollection 
implements Collection<Object
 
     /**
      * Returns an immutable {@code JSONArray}.
+     * 
+     * @since 5.8.4
      */
     public static final JSONArray empty() {
         return EMPTY;
diff --git a/tapestry-json/src/test/groovy/json/specs/JSONArraySpec.groovy 
b/tapestry-json/src/test/groovy/json/specs/JSONArraySpec.groovy
index df8e2db7a..c88e28bca 100644
--- a/tapestry-json/src/test/groovy/json/specs/JSONArraySpec.groovy
+++ b/tapestry-json/src/test/groovy/json/specs/JSONArraySpec.groovy
@@ -8,6 +8,7 @@ import 
org.apache.tapestry5.json.exceptions.JSONInvalidTypeException
 import org.apache.tapestry5.json.exceptions.JSONSyntaxException
 import org.apache.tapestry5.json.exceptions.JSONTypeMismatchException
 
+import spock.lang.Issue
 import spock.lang.Specification
 
 class JSONArraySpec extends Specification {
@@ -618,6 +619,7 @@ class JSONArraySpec extends Specification {
         ]
     }
 
+    @Issue("TAP5-2764")
     def "empty() returns an empty JSONArray"() {
 
         when:
@@ -628,7 +630,9 @@ class JSONArraySpec extends Specification {
         array.isEmpty()
     }
 
+    @Issue("TAP5-2764")
     def "empty() retuns an immutable JSONArray"() {
+        given:
         def array = JSONArray.empty()
 
         when:

Reply via email to