File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert Expand file tree Collapse file tree 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,
13761376 MappingContext <? extends MongoPersistentEntity <?>, MongoPersistentProperty > mappingContext ) {
13771377
13781378 this .pathParts = Arrays .asList (key .split ("\\ ." ));
1379- this .currentPropertyRoot = pathParts .get (0 );
1380- this .currentIndex = 0 ;
13811379 this .iterator = pathParts .iterator ();
1382- this .iterator .next ();
1380+ this .currentPropertyRoot = iterator .next ();
1381+ this .currentIndex = 0 ;
13831382 }
13841383
13851384 /**
@@ -1391,6 +1390,7 @@ public KeyMapper(String key,
13911390 protected String mapPropertyName (MongoPersistentProperty property ) {
13921391
13931392 StringBuilder mappedName = new StringBuilder (PropertyToFieldNameConverter .INSTANCE .convert (property ));
1393+
13941394 boolean inspect = iterator .hasNext ();
13951395
13961396 while (inspect ) {
You can’t perform that action at this time.
0 commit comments