Retain null-safe syntax in AST representation of SpEL indexers
Prior to this commit, SpEL's CompoundExpression omitted the null-safe syntax in AST string representations of indexing operations. To address this, this commit implements isNullSafe() in Indexer. See gh-29847
This commit is contained in:
@@ -60,8 +60,8 @@ class ParsingTests {
|
||||
parseCheck("property1?.property2?.methodOne()");
|
||||
parseCheck("property1?.methodOne('enigma')?.methodTwo(42)");
|
||||
parseCheck("property1?.methodOne()?.property2?.methodTwo()");
|
||||
parseCheck("property1[0]?.property2['key']?.methodTwo()");
|
||||
parseCheck("property1[0][1]?.property2['key'][42]?.methodTwo()");
|
||||
parseCheck("property1?.[0]?.property2?.['key']?.methodTwo()");
|
||||
parseCheck("property1?.[0]?.[1]?.property2?.['key']?.[42]?.methodTwo()");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user