You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/05/01 12:46:15 UTC

[commons-bcel] 46/49: Use compact array declaration.

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

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-bcel.git

commit f2b37b0f8fee651a6bb151ee05492eb9b5701958
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun May 1 08:40:57 2022 -0400

    Use compact array declaration.
---
 src/main/java/org/apache/bcel/generic/Type.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/bcel/generic/Type.java b/src/main/java/org/apache/bcel/generic/Type.java
index 15161b27..34a482e2 100644
--- a/src/main/java/org/apache/bcel/generic/Type.java
+++ b/src/main/java/org/apache/bcel/generic/Type.java
@@ -62,7 +62,7 @@ public abstract class Type {
     /**
      * Empty array.
      */
-    public static final Type[] NO_ARGS = new Type[0];
+    public static final Type[] NO_ARGS = {};
     public static final ReferenceType NULL = new ReferenceType() {
     };
     public static final Type UNKNOWN = new Type(Const.T_UNKNOWN, "<unknown object>") {