From 4c8c90de69b4e3cdeea0f598fea5a5358ac2c861 Mon Sep 17 00:00:00 2001 From: Andrey Turbanov Date: Sat, 18 Dec 2021 15:20:43 +0300 Subject: Reduce empty array allocations --- bridge/src/main/java/org/aspectj/bridge/MessageUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bridge/src') diff --git a/bridge/src/main/java/org/aspectj/bridge/MessageUtil.java b/bridge/src/main/java/org/aspectj/bridge/MessageUtil.java index 0a765e503..7ef4e92ab 100644 --- a/bridge/src/main/java/org/aspectj/bridge/MessageUtil.java +++ b/bridge/src/main/java/org/aspectj/bridge/MessageUtil.java @@ -357,7 +357,7 @@ public class MessageUtil { */ public static IMessage[] getMessagesExcept(IMessageHolder holder, final IMessage.Kind kind, final boolean orGreater) { if ((null == holder) || (null == kind)) { - return new IMessage[0]; + return IMessage.RA_IMessage; } IMessageHandler selector = new IMessageHandler() { -- cgit v1.2.3