mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Polishing
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* Spring's repackaging of
|
||||
* <a href="http://asm.ow2.org">org.objectweb.asm 5.0</a>
|
||||
* <a href="http://asm.ow2.org">ASM</a>
|
||||
* (for internal use only).
|
||||
*
|
||||
* <p>This repackaging technique avoids any potential conflicts with
|
||||
@@ -8,8 +8,6 @@
|
||||
* libraries and frameworks.
|
||||
*
|
||||
* <p>As this repackaging happens at the class file level, sources
|
||||
* and javadocs are not available here. See the original ObjectWeb
|
||||
* <a href="http://asm.ow2.org/asm50/javadoc/user">ASM 5.0 javadocs</a>
|
||||
* for details when working with these classes.
|
||||
* and javadocs are not available here.
|
||||
*/
|
||||
package org.springframework.asm;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* Spring's repackaging of
|
||||
* <a href="http://cglib.sourceforge.net">net.sf.cglib 3.2</a>
|
||||
* <a href="http://cglib.sourceforge.net">CGLIB</a>
|
||||
* (for internal use only).
|
||||
*
|
||||
* <p>This repackaging technique avoids any potential conflicts with
|
||||
@@ -8,8 +8,6 @@
|
||||
* libraries and frameworks.
|
||||
*
|
||||
* <p>As this repackaging happens at the class file level, sources
|
||||
* and javadocs are not available here. See the original
|
||||
* <a href="http://cglib.sourceforge.net/apidocs">CGLIB 3.2 javadocs</a>
|
||||
* for details when working with these classes.
|
||||
* and javadocs are not available here.
|
||||
*/
|
||||
package org.springframework.cglib;
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -57,7 +57,7 @@ final class CollectionToObjectConverter implements ConditionalGenericConverter {
|
||||
return source;
|
||||
}
|
||||
Collection<?> sourceCollection = (Collection<?>) source;
|
||||
if (sourceCollection.size() == 0) {
|
||||
if (sourceCollection.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
Object firstElement = sourceCollection.iterator().next();
|
||||
|
||||
Reference in New Issue
Block a user