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 @@ -1370,10 +1370,9 @@ public KeyMapper(String key,
13701370 MappingContext <? extends MongoPersistentEntity <?>, MongoPersistentProperty > mappingContext ) {
13711371
13721372 this .pathParts = Arrays .asList (key .split ("\\ ." ));
1373- this .currentPropertyRoot = pathParts .get (0 );
1374- this .currentIndex = 0 ;
13751373 this .iterator = pathParts .iterator ();
1376- this .iterator .next ();
1374+ this .currentPropertyRoot = iterator .next ();
1375+ this .currentIndex = 0 ;
13771376 }
13781377
13791378 /**
@@ -1385,6 +1384,7 @@ public KeyMapper(String key,
13851384 protected String mapPropertyName (MongoPersistentProperty property ) {
13861385
13871386 StringBuilder mappedName = new StringBuilder (PropertyToFieldNameConverter .INSTANCE .convert (property ));
1387+
13881388 boolean inspect = iterator .hasNext ();
13891389
13901390 while (inspect ) {
You can’t perform that action at this time.
0 commit comments