From 512f68a611ea22df34efa6f5ac2542edc11fdd17 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Tue, 23 Aug 2016 10:01:46 +0200 Subject: [PATCH] DATAMONGO-1476 - Polishing. Extend year range in license header. Use the specified collection name in doRemove. Original pull request: #382. --- .../org/springframework/data/mongodb/core/MongoTemplate.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java index 78ccce2cf..11960330b 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2015 the original author or authors. + * Copyright 2010-2016 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. @@ -1336,7 +1336,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Remove using query: {} in collection: {}.", - new Object[] { serializeToJsonSafely(dboq), collection.getName() }); + new Object[] { serializeToJsonSafely(dboq), collectionName }); } WriteResult wr = writeConcernToUse == null ? collection.remove(dboq)