mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-21 13:31:46 +00:00
polish
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2069 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
+2
-1
@@ -45,7 +45,8 @@ class MappingContextHolder {
|
||||
* Is the source being mapped or has already been mapped?
|
||||
*/
|
||||
public static boolean contains(Object source) {
|
||||
return getContext().contains(source);
|
||||
Stack<Object> context = getContext();
|
||||
return context != null ? context.contains(source) : false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user