# Warning after "Convert to apply"

**URL:** https://discuss.kotlinlang.org/t/warning-after-convert-to-apply/3817
**Category:** Android
**Created:** [July 20, 2017, 12:02pm UTC](https://discuss.kotlinlang.org/t/warning-after-convert-to-apply/3817 "2017-07-20T12:02:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![yshinkarev](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/yshinkarev/32/3248_2.png) [@yshinkarev](https://discuss.kotlinlang.org/u/yshinkarev)
#### Post date: [July 20, 2017, 12:02pm UTC](https://discuss.kotlinlang.org/t/warning-after-convert-to-apply/3817/1 "2017-07-20T12:02:11Z")

</div>

_Android Studio 3.0 Canary 6_  
_Build #AI-171.4163606, built on July 8, 2017_  
_JRE: 1.8.0\_152-release-884-b01 amd64_  
_JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o_  
_Linux 4.4.0-83-generic_

I try set arguments to fragment:  
_val args = Bundle()_  
_args.putInt(“image”, image)_  
_args.putInt(“text”, text)_  
_arguments = args_

Then I activate “Convert to apply” I get code:  
_arguments = Bundle().apply {_  
_putInt(“image”, image)_  
_putInt(“text”, text)_  
_}_

But in this case I get warning: _“Calling new methods on older versions” Call requires API level 21 (current min is 17): android.os.BaseBundle#putInt_

Is it correct behavior?
