test external annotations
This commit is contained in:
+4
@@ -21,6 +21,10 @@ android {
|
|||||||
compileSdkVersion 17
|
compileSdkVersion 17
|
||||||
buildToolsVersion "17.0.0"
|
buildToolsVersion "17.0.0"
|
||||||
|
|
||||||
|
kotlinOptions {
|
||||||
|
annotations = "kotlinAnnotations"
|
||||||
|
}
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdkVersion 7
|
minSdkVersion 7
|
||||||
targetSdkVersion 16
|
targetSdkVersion 16
|
||||||
|
|||||||
+1
-1
@@ -26,7 +26,7 @@ open class MainActivity2: Activity() {
|
|||||||
|
|
||||||
public override fun onCreateOptionsMenu(menu: Menu?): Boolean {
|
public override fun onCreateOptionsMenu(menu: Menu?): Boolean {
|
||||||
// Inflate the menu; this adds items to the action bar if it is present.
|
// 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
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+5
@@ -0,0 +1,5 @@
|
|||||||
|
<root>
|
||||||
|
<item name='android.app.Activity android.view.MenuInflater getMenuInflater()'>
|
||||||
|
<annotation name='org.jetbrains.annotations.NotNull'/>
|
||||||
|
</item>
|
||||||
|
</root>
|
||||||
Reference in New Issue
Block a user