File tree 1 file changed +3
-0
lines changed
core/src/main/java/org/apache/calcite/plan
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 31
31
import java .util .List ;
32
32
import java .util .Map ;
33
33
import java .util .function .Supplier ;
34
+ import javax .annotation .CheckReturnValue ;
34
35
35
36
/**
36
37
* RelTraitSet represents an ordered set of {@link RelTrait}s.
@@ -159,6 +160,7 @@ public <T extends RelMultipleTrait> List<T> getTraits(
159
160
* @param trait the new RelTrait
160
161
* @return the old RelTrait at the index
161
162
*/
163
+ @ CheckReturnValue
162
164
public RelTraitSet replace (int index , RelTrait trait ) {
163
165
assert traits [index ].getTraitDef () == trait .getTraitDef ()
164
166
: "RelTrait has different RelTraitDef than replacement" ;
@@ -182,6 +184,7 @@ public RelTraitSet replace(int index, RelTrait trait) {
182
184
* @return New set
183
185
* @see #plus(RelTrait)
184
186
*/
187
+ @ CheckReturnValue
185
188
public RelTraitSet replace (
186
189
RelTrait trait ) {
187
190
// Quick check for common case
You can’t perform that action at this time.
0 commit comments