DATAMONGO-490 - Fixed typos.

This commit is contained in:
Oliver Gierke
2012-07-23 17:01:12 +02:00
parent 31b9b6b5c0
commit 669bc071b1
2 changed files with 4 additions and 4 deletions

View File

@@ -86,12 +86,12 @@ public abstract class AbstractMongoConfiguration {
@Bean
public SimpleMongoDbFactory mongoDbFactory() throws Exception {
UserCredentials creadentials = getUserCredentials();
UserCredentials credentials = getUserCredentials();
if (creadentials == null) {
if (credentials == null) {
return new SimpleMongoDbFactory(mongo(), getDatabaseName());
} else {
return new SimpleMongoDbFactory(mongo(), getDatabaseName(), creadentials);
return new SimpleMongoDbFactory(mongo(), getDatabaseName(), credentials);
}
}

View File

@@ -223,7 +223,7 @@ public class CustomConversions {
/**
* Returns the target type we can write an onject of the given source type to. The returned type might be a subclass
* oth the given expected type though. If {@code expexctedTargetType} is {@literal null} we will simply return the
* oth the given expected type though. If {@code expectedTargetType} is {@literal null} we will simply return the
* first target type matching or {@literal null} if no conversion can be found.
*
* @param source must not be {@literal null}