test external annotations

This commit is contained in:
Nikita Skvortsov
2013-07-12 18:16:43 +04:00
parent 0308465b65
commit 79e7c5bd7b
3 changed files with 10 additions and 1 deletions
@@ -21,6 +21,10 @@ android {
compileSdkVersion 17
buildToolsVersion "17.0.0"
kotlinOptions {
annotations = "kotlinAnnotations"
}
defaultConfig {
minSdkVersion 7
targetSdkVersion 16
@@ -26,7 +26,7 @@ open class MainActivity2: Activity() {
public override fun onCreateOptionsMenu(menu: Menu?): Boolean {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater()?.inflate(R.menu.main_activity2, menu);
getMenuInflater().inflate(R.menu.main_activity2, menu);
return true
}
@@ -0,0 +1,5 @@
<root>
<item name='android.app.Activity android.view.MenuInflater getMenuInflater()'>
<annotation name='org.jetbrains.annotations.NotNull'/>
</item>
</root>