From bc8533366ac031728f93d0b9f67f80561899deac Mon Sep 17 00:00:00 2001 From: Andrej Golovnin Date: Tue, 4 Feb 2014 22:05:06 +0100 Subject: [PATCH] HHH-8950 Avoid useless creation of an array in #getColumnSpan(Mapping). --- .../main/java/org/hibernate/type/AbstractStandardBasicType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/type/AbstractStandardBasicType.java b/hibernate-core/src/main/java/org/hibernate/type/AbstractStandardBasicType.java index 4d5b0effdd..a2d441f579 100644 --- a/hibernate-core/src/main/java/org/hibernate/type/AbstractStandardBasicType.java +++ b/hibernate-core/src/main/java/org/hibernate/type/AbstractStandardBasicType.java @@ -151,7 +151,7 @@ public abstract class AbstractStandardBasicType } public final int getColumnSpan(Mapping mapping) throws MappingException { - return sqlTypes( mapping ).length; + return 1; } public final int[] sqlTypes(Mapping mapping) throws MappingException {