From 5278baca0187755421886b2a29ecda0aa6ed28e5 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Thu, 2 Mar 2017 12:18:09 +0100 Subject: [PATCH] Polish --- .../boot/autoconfigure/mongo/MongoProperties.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mongo/MongoProperties.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mongo/MongoProperties.java index 37d5cacdcae..43e24447714 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mongo/MongoProperties.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mongo/MongoProperties.java @@ -191,9 +191,8 @@ public class MongoProperties { /** * Creates a {@link MongoClient} using the given {@code options} and - * {@code environment}. If the configured port is zero, the value of the - * {@code local.mongo.port} property retrieved from the {@code environment} is used to - * configure the client. + * {@code environment}. If the environment contains a {@code local.mongo.port} + * property, it is used to configure a client to an embedded MongoDB instance. * @param options the options * @param environment the environment * @return the Mongo client