@@ -97,7 +97,7 @@ public void test() {
97
97
sink (v .getName ()); // Safe
98
98
sink (v .getValue ()); // $hasValueFlow
99
99
}
100
- // "org.springframework.beans;PropertyValues;true;getPropertyValue;;;MapValue of Element of Argument[-1];ReturnValue;value",
100
+ // "org.springframework.beans;PropertyValues;true;getPropertyValue;;;Element of Argument[-1];ReturnValue;value",
101
101
{
102
102
PropertyValues pv = newWithElement (newWithMapValue (source ()));
103
103
sink (pv .getPropertyValue ("safe" ).getValue ()); // $hasValueFlow
@@ -116,25 +116,24 @@ public void test() {
116
116
sink (getMapKey (getElement (pv ))); // $hasValueFlow
117
117
sink (getMapValue (getElement (pv ))); // Safe
118
118
}
119
- // "org.springframework.beans;MutablePropertyValues;true;add;(String,Object);;Argument[0];MapKey of Element of ReturnValue;value",
119
+ // "org.springframework.beans;MutablePropertyValues;true;add;(String,Object);;Argument[-1]; ReturnValue;value",
120
120
{
121
121
MutablePropertyValues pv = new MutablePropertyValues ();
122
122
sink (getMapKey (getElement (pv .add (source (), null )))); // $hasValueFlow
123
123
sink (getMapValue (getElement (pv .add (source (), null )))); // Safe
124
124
}
125
+ {
126
+ MutablePropertyValues pv = new MutablePropertyValues ();
127
+ sink (getMapKey (getElement (pv .add ("safe" , source ())))); // Safe
128
+ sink (getMapValue (getElement (pv .add ("safe" , source ())))); // $hasValueFlow
129
+ }
125
130
// "org.springframework.beans;MutablePropertyValues;true;add;(String,Object);;Argument[1];MapValue of Element of Argument[-1];value",
126
131
{
127
132
MutablePropertyValues pv = new MutablePropertyValues ();
128
133
pv .add ("safe" , source ());
129
134
sink (getMapKey (getElement (pv ))); // Safe
130
135
sink (getMapValue (getElement (pv ))); // $hasValueFlow
131
136
}
132
- // "org.springframework.beans;MutablePropertyValues;true;add;(String,Object);;Argument[1];MapValue of Element of ReturnValue;value",
133
- {
134
- MutablePropertyValues pv = new MutablePropertyValues ();
135
- sink (getMapKey (getElement (pv .add ("safe" , source ())))); // Safe
136
- sink (getMapValue (getElement (pv .add ("safe" , source ())))); // $hasValueFlow
137
- }
138
137
// "org.springframework.beans;MutablePropertyValues;true;addPropertyValue;(PropertyValue);;Argument[0];Element of Argument[-1];value",
139
138
{
140
139
MutablePropertyValues pv1 = new MutablePropertyValues ();
@@ -149,7 +148,7 @@ public void test() {
149
148
sink (getMapKey (getElement (pv2 ))); // Safe
150
149
sink (getMapValue (getElement (pv2 ))); // $hasValueFlow
151
150
}
152
- // "org.springframework.beans;MutablePropertyValues;true;addPropertyValue;(PropertyValue);;Argument[0];Element of ReturnValue;value",
151
+ // "org.springframework.beans;MutablePropertyValues;true;addPropertyValue;(PropertyValue);;Argument[-1]; ReturnValue;value",
153
152
{
154
153
MutablePropertyValues pv1 = new MutablePropertyValues ();
155
154
PropertyValue v1 = newWithMapKey (source ());
@@ -186,15 +185,6 @@ public void test() {
186
185
sink (getMapKey (getElement (pv ))); // $hasValueFlow
187
186
sink (getMapValue (getElement (pv ))); // Safe
188
187
}
189
- // "org.springframework.beans;MutablePropertyValues;true;addPropertyValues;(Map);;MapKey of Argument[0];MapKey of Element of ReturnValue;value",
190
- {
191
- MutablePropertyValues pv = new MutablePropertyValues ();
192
- Map <String , Object > values = new HashMap <String , Object >();
193
- values .put (source (), null );
194
- PropertyValues pv2 = pv .addPropertyValues (values );
195
- sink (getMapKey (getElement (pv2 ))); // $hasValueFlow
196
- sink (getMapValue (getElement (pv2 ))); // Safe
197
- }
198
188
// "org.springframework.beans;MutablePropertyValues;true;addPropertyValues;(Map);;MapValue of Argument[0];MapValue of Element of Argument[-1];value",
199
189
{
200
190
MutablePropertyValues pv = new MutablePropertyValues ();
@@ -204,7 +194,7 @@ public void test() {
204
194
sink (getMapKey (getElement (pv ))); // Safe
205
195
sink (getMapValue (getElement (pv ))); // $hasValueFlow
206
196
}
207
- // "org.springframework.beans;MutablePropertyValues;true;addPropertyValues;(Map);;MapValue of Argument[0];MapValue of Element of ReturnValue;value",
197
+ // "org.springframework.beans;MutablePropertyValues;true;addPropertyValues;(Map);;Argument[-1]; ReturnValue;value",
208
198
{
209
199
MutablePropertyValues pv = new MutablePropertyValues ();
210
200
Map <String , Object > values = new HashMap <String , Object >();
@@ -213,31 +203,37 @@ public void test() {
213
203
sink (getMapKey (getElement (pv2 ))); // Safe
214
204
sink (getMapValue (getElement (pv2 ))); // $hasValueFlow
215
205
}
216
- // "org.springframework.beans;MutablePropertyValues;true;addPropertyValues;(PropertyValues);;MapKey of Element of Argument[0];MapKey of Element of Argument[-1];value",
217
206
{
218
207
MutablePropertyValues pv = new MutablePropertyValues ();
219
- PropertyValues values = newWithElement (newWithMapKey (source ()));
220
- pv .addPropertyValues (values );
221
- sink (getMapKey (getElement (pv ))); // $hasValueFlow
222
- sink (getMapValue (getElement (pv ))); // Safe
208
+ Map <String , Object > values = new HashMap <String , Object >();
209
+ values .put (source (), null );
210
+ PropertyValues pv2 = pv .addPropertyValues (values );
211
+ sink (getMapKey (getElement (pv2 ))); // $hasValueFlow
212
+ sink (getMapValue (getElement (pv2 ))); // Safe
223
213
}
224
- // "org.springframework.beans;MutablePropertyValues;true;addPropertyValues;(PropertyValues);;MapKey of Element of Argument[0];MapKey of Element of ReturnValue ;value",
214
+ // "org.springframework.beans;MutablePropertyValues;true;addPropertyValues;(PropertyValues);;Element of Argument[0];Element of Argument[-1] ;value",
225
215
{
226
216
MutablePropertyValues pv = new MutablePropertyValues ();
227
217
PropertyValues values = newWithElement (newWithMapKey (source ()));
228
- PropertyValues pv2 = pv .addPropertyValues (values );
229
- sink (getMapKey (getElement (pv2 ))); // $hasValueFlow
230
- sink (getMapValue (getElement (pv2 ))); // Safe
218
+ pv .addPropertyValues (values );
219
+ sink (getMapKey (getElement (pv ))); // $hasValueFlow
220
+ sink (getMapValue (getElement (pv ))); // Safe
231
221
}
232
- // "org.springframework.beans;MutablePropertyValues;true;addPropertyValues;(PropertyValues);;MapValue of Element of Argument[0];MapValue of Element of Argument[-1];value",
233
222
{
234
223
MutablePropertyValues pv = new MutablePropertyValues ();
235
224
PropertyValues values = newWithElement (newWithMapValue (source ()));
236
225
pv .addPropertyValues (values );
237
226
sink (getMapKey (getElement (pv ))); // Safe
238
227
sink (getMapValue (getElement (pv ))); // $hasValueFlow
239
228
}
240
- // "org.springframework.beans;MutablePropertyValues;true;addPropertyValues;(PropertyValues);;MapValue of Element of Argument[0];MapValue of Element of ReturnValue;value",
229
+ // "org.springframework.beans;MutablePropertyValues;true;addPropertyValues;(PropertyValues);;Argument[-1];ReturnValue;value",
230
+ {
231
+ MutablePropertyValues pv = new MutablePropertyValues ();
232
+ PropertyValues values = newWithElement (newWithMapKey (source ()));
233
+ PropertyValues pv2 = pv .addPropertyValues (values );
234
+ sink (getMapKey (getElement (pv2 ))); // $hasValueFlow
235
+ sink (getMapValue (getElement (pv2 ))); // Safe
236
+ }
241
237
{
242
238
MutablePropertyValues pv = new MutablePropertyValues ();
243
239
PropertyValues values = newWithElement (newWithMapValue (source ()));
0 commit comments