File tree 1 file changed +3
-3
lines changed
spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1282,10 +1282,9 @@ public KeyMapper(String key,
1282
1282
MappingContext <? extends MongoPersistentEntity <?>, MongoPersistentProperty > mappingContext ) {
1283
1283
1284
1284
this .pathParts = Arrays .asList (key .split ("\\ ." ));
1285
- this .currentPropertyRoot = pathParts .get (0 );
1286
- this .currentIndex = 0 ;
1287
1285
this .iterator = pathParts .iterator ();
1288
- this .iterator .next ();
1286
+ this .currentPropertyRoot = iterator .next ();
1287
+ this .currentIndex = 0 ;
1289
1288
}
1290
1289
1291
1290
/**
@@ -1297,6 +1296,7 @@ public KeyMapper(String key,
1297
1296
protected String mapPropertyName (MongoPersistentProperty property ) {
1298
1297
1299
1298
StringBuilder mappedName = new StringBuilder (PropertyToFieldNameConverter .INSTANCE .convert (property ));
1299
+
1300
1300
boolean inspect = iterator .hasNext ();
1301
1301
1302
1302
while (inspect ) {
You can’t perform that action at this time.
0 commit comments