From dc3299152c306845f77c953360ffe68a07f36a6b Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Mon, 9 Oct 2017 16:06:03 +0200 Subject: [PATCH] Polishing --- .../src/main/java/org/springframework/asm/SpringAsmInfo.java | 2 +- .../main/java/org/springframework/core/ResolvableType.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-core/src/main/java/org/springframework/asm/SpringAsmInfo.java b/spring-core/src/main/java/org/springframework/asm/SpringAsmInfo.java index 3ed66e13e5..438bf3943d 100644 --- a/spring-core/src/main/java/org/springframework/asm/SpringAsmInfo.java +++ b/spring-core/src/main/java/org/springframework/asm/SpringAsmInfo.java @@ -18,7 +18,7 @@ package org.springframework.asm; /** * Utility class exposing constants related to Spring's internal repackaging - * of the ASM bytecode manipulation library (currently based on version 5.0). + * of the ASM bytecode manipulation library (currently based on version 6.0). * *

See package-level javadocs for more * information on {@code org.springframework.asm}. diff --git a/spring-core/src/main/java/org/springframework/core/ResolvableType.java b/spring-core/src/main/java/org/springframework/core/ResolvableType.java index 6077e9738d..eefc51f8a0 100644 --- a/spring-core/src/main/java/org/springframework/core/ResolvableType.java +++ b/spring-core/src/main/java/org/springframework/core/ResolvableType.java @@ -1350,7 +1350,7 @@ public class ResolvableType implements Serializable { * @see #forType(Type) */ public static ResolvableType forType(ParameterizedTypeReference typeReference) { - return forType(typeReference.getType(), null ,null); + return forType(typeReference.getType(), null, null); } /** @@ -1594,7 +1594,7 @@ public class ResolvableType implements Serializable { } WildcardType wildcardType = (WildcardType) resolveToWildcard.type; Kind boundsType = (wildcardType.getLowerBounds().length > 0 ? Kind.LOWER : Kind.UPPER); - Type[] bounds = boundsType == Kind.UPPER ? wildcardType.getUpperBounds() : wildcardType.getLowerBounds(); + Type[] bounds = (boundsType == Kind.UPPER ? wildcardType.getUpperBounds() : wildcardType.getLowerBounds()); ResolvableType[] resolvableBounds = new ResolvableType[bounds.length]; for (int i = 0; i < bounds.length; i++) { resolvableBounds[i] = ResolvableType.forType(bounds[i], type.variableResolver);