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 2018/03/06 00:57:41 UTC
groovy git commit: improve error message plus minor refactoring
Repository: groovy
Updated Branches:
refs/heads/GROOVY_2_5_X f4cb73958 -> e07fea6cc
improve error message plus minor refactoring
Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/e07fea6c
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/e07fea6c
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/e07fea6c
Branch: refs/heads/GROOVY_2_5_X
Commit: e07fea6cc50bc4caddf29338a5e659af451a3a67
Parents: f4cb739
Author: paulk <pa...@asert.com.au>
Authored: Tue Mar 6 10:53:34 2018 +1000
Committer: paulk <pa...@asert.com.au>
Committed: Tue Mar 6 10:57:22 2018 +1000
----------------------------------------------------------------------
.../java/org/codehaus/groovy/classgen/asm/CallSiteWriter.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/groovy/blob/e07fea6c/src/main/java/org/codehaus/groovy/classgen/asm/CallSiteWriter.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/codehaus/groovy/classgen/asm/CallSiteWriter.java b/src/main/java/org/codehaus/groovy/classgen/asm/CallSiteWriter.java
index 47a1bbd..75d06a0 100644
--- a/src/main/java/org/codehaus/groovy/classgen/asm/CallSiteWriter.java
+++ b/src/main/java/org/codehaus/groovy/classgen/asm/CallSiteWriter.java
@@ -72,7 +72,7 @@ public class CallSiteWriter {
private static String getCreateArraySignature(int numberOfArguments) {
if (numberOfArguments >= SIG_ARRAY_LENGTH) {
throw new IllegalArgumentException(String.format(
- "The max number of arguments is %s, actual got %s",
+ "The max number of supported arguments is %s, but found %s",
SIG_ARRAY_LENGTH, numberOfArguments));
}
if (sig[numberOfArguments] == null) {
@@ -102,8 +102,7 @@ public class CallSiteWriter {
METHOD_OO_DESC = "(Ljava/lang/Object;)Ljava/lang/Object;",
CREATE_CSA_METHOD = "$createCallSiteArray";
public static final String CONSTRUCTOR = "<$constructor$>";
-
- private final List callSites = new ArrayList(32);
+ private final List<String> callSites = new ArrayList<String>(32);
private int callSiteArrayVarIndex = -1;
private final WriterController controller;