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 @@ -1376,10 +1376,9 @@ public KeyMapper(String key,
1376
1376
MappingContext <? extends MongoPersistentEntity <?>, MongoPersistentProperty > mappingContext ) {
1377
1377
1378
1378
this .pathParts = Arrays .asList (key .split ("\\ ." ));
1379
- this .currentPropertyRoot = pathParts .get (0 );
1380
- this .currentIndex = 0 ;
1381
1379
this .iterator = pathParts .iterator ();
1382
- this .iterator .next ();
1380
+ this .currentPropertyRoot = iterator .next ();
1381
+ this .currentIndex = 0 ;
1383
1382
}
1384
1383
1385
1384
/**
@@ -1391,6 +1390,7 @@ public KeyMapper(String key,
1391
1390
protected String mapPropertyName (MongoPersistentProperty property ) {
1392
1391
1393
1392
StringBuilder mappedName = new StringBuilder (PropertyToFieldNameConverter .INSTANCE .convert (property ));
1393
+
1394
1394
boolean inspect = iterator .hasNext ();
1395
1395
1396
1396
while (inspect ) {
You can’t perform that action at this time.
0 commit comments