Skip to content

Commit

Permalink
Update Groovy to 3.0.23
Browse files Browse the repository at this point in the history
Return type from findAll changed from Collection to List

Workflow:

1. Update the groovy version
2. Remove all reference files:
   find . -regextype egrep -regex '.*\.(occurrences|completion|folds|indexed|semantic|ccresult)'  -exec rm {} \;
3. Rebuild the reference files by running the unittests with the base
   JDK (17 for this commit)
4. Review the difference
5. Commit the change with the updated reference files
6. Add JDK specific variants by:
   6a: Removing all existing reference files:
       find . -regextype egrep -regex '.*\.(occurrences|completion|folds|indexed|semantic|ccresult)'  -exec rm {} \;
   6b: Rerun unittests with the target JDK
   6c: Move the changed reference files to their version specific name
       (21 is the JDK version in this case and needs to be adjusted):
       for i in `git status -s | cut --delimiter " " -f 3`; do mv $i ${i%.*}.21.completion; git checkout $i; done
   6d: Amend the changes to the base commit
  • Loading branch information
matthiasblaesing committed Dec 27, 2024
1 parent 0aac8c1 commit cb3c105
Show file tree
Hide file tree
Showing 51 changed files with 5,348 additions and 48 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Code completion result for source line:
longField.comp|
(QueryType=COMPLETION, prefixSearch=true, caseSensitive=true)
------------------------------------
METHOD compare(long, long) [STATIC, int
METHOD compareTo(Character) int
METHOD compareTo(Long) [PUBLIC] int
METHOD compareTo(Number) int
METHOD compareUnsigned(long, long) [STATIC, int
METHOD compress(long, long) [STATIC, long
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Code completion result for source line:
stringField.spli|
(QueryType=COMPLETION, prefixSearch=true, caseSensitive=true)
------------------------------------
METHOD split() String[]
METHOD split(Closure) Collection
METHOD split(String) [PUBLIC] String[]
METHOD split(String, int) [PUBLIC] String[]
METHOD splitEachLine(CharSequence, Cl Object
METHOD splitEachLine(Pattern, Closure Object
METHOD splitWithDelimiters(String, in [PUBLIC] String[]
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Code completion result for source line:
localLong.comp|
(QueryType=COMPLETION, prefixSearch=true, caseSensitive=true)
------------------------------------
METHOD compare(long, long) [STATIC, int
METHOD compareTo(Character) int
METHOD compareTo(Long) [PUBLIC] int
METHOD compareTo(Number) int
METHOD compareUnsigned(long, long) [STATIC, int
METHOD compress(long, long) [STATIC, long
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ METHOD find(CharSequence, Closure) String
METHOD find(Closure) Object
METHOD find(Pattern) String
METHOD find(Pattern, Closure) String
METHOD findAll() Collection
METHOD findAll() List
METHOD findAll(CharSequence) List
METHOD findAll(CharSequence, Closure) List
METHOD findAll(Closure) Collection
METHOD findAll(Closure) List
METHOD findAll(Pattern) List
METHOD findAll(Pattern, Closure) List
METHOD findIndexOf(Closure) int
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Code completion result for source line:
l.comp|
(QueryType=COMPLETION, prefixSearch=true, caseSensitive=true)
------------------------------------
METHOD compare(long, long) [STATIC, int
METHOD compareTo(Character) int
METHOD compareTo(Long) [PUBLIC] int
METHOD compareTo(Number) int
METHOD compareUnsigned(long, long) [STATIC, int
METHOD compress(long, long) [STATIC, long
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Code completion result for source line:
s.spli|
(QueryType=COMPLETION, prefixSearch=true, caseSensitive=true)
------------------------------------
METHOD split() String[]
METHOD split(Closure) Collection
METHOD split(String) [PUBLIC] String[]
METHOD split(String, int) [PUBLIC] String[]
METHOD splitEachLine(CharSequence, Cl Object
METHOD splitEachLine(Pattern, Closure Object
METHOD splitWithDelimiters(String, in [PUBLIC] String[]
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ METHOD every(Closure) boolean
METHOD finalize() [PROTECTE void
METHOD find() Object
METHOD find(Closure) Object
METHOD findAll() Collection
METHOD findAll(Closure) Collection
METHOD findAll() List
METHOD findAll(Closure) List
METHOD findIndexOf(Closure) int
METHOD findIndexOf(int, Closure) int
METHOD findIndexValues(Closure) List
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,8 @@ METHOD every(Closure) boolean
METHOD finalize() [PROTECTE void
METHOD find() Object
METHOD find(Closure) Object
METHOD findAll() Collection
METHOD findAll(Closure) Collection
METHOD findAll() List
METHOD findAll(Closure) List
METHOD findIndexOf(Closure) int
METHOD findIndexOf(int, Closure) int
METHOD findIndexValues(Closure) List
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Code completion result for source line:
(1..10).a|
(QueryType=COMPLETION, prefixSearch=true, caseSensitive=true)
------------------------------------
METHOD add(E) [PUBLIC] boolean
METHOD add(int, E) [PUBLIC] void
METHOD addAll(Collection<? extends E> [PUBLIC] boolean
METHOD addAll(Iterable) boolean
METHOD addAll(Iterator) boolean
METHOD addAll(Object[]) boolean
METHOD addAll(int, Collection<? exten [PUBLIC] boolean
METHOD addAll(int, Object) boolean
METHOD addFirst(E) [PUBLIC] void
METHOD addLast(E) [PUBLIC] void
METHOD addShutdownHook(Closure) void
METHOD any() boolean
METHOD any(Closure) boolean
METHOD asBoolean() boolean
METHOD asCollection() Collection
METHOD asImmutable() List
METHOD asList() List
METHOD asSynchronized() List
METHOD asType(Class) Object
METHOD asUnmodifiable() List
METHOD average() Object
METHOD average(Closure) Object
Loading

0 comments on commit cb3c105

Please sign in to comment.