diff options
author | Eugene Kudelevsky <Eugene.Kudelevsky@jetbrains.com> | 2012-04-04 17:35:10 +0400 |
---|---|---|
committer | Eugene Kudelevsky <Eugene.Kudelevsky@jetbrains.com> | 2012-04-04 17:37:27 +0400 |
commit | ad87a8accbffac36f2a754b9348725d010e7dde3 (patch) | |
tree | 8bb4ce1736c255873da0eadfa956ff7685f522e0 /android/testData/lint | |
parent | 00d2010307d5b5241477349ba52ed9cbc5a171aa (diff) | |
download | idea-ad87a8accbffac36f2a754b9348725d010e7dde3.tar.gz |
IDEA-83572 suppressing of lint validation [rev=maxim.medvedev]
Diffstat (limited to 'android/testData/lint')
8 files changed, 85 insertions, 0 deletions
diff --git a/android/testData/lint/global/lintInJavaFile/MyActivity.java b/android/testData/lint/global/lintInJavaFile/MyActivity.java new file mode 100644 index 00000000000..54f5219b60b --- /dev/null +++ b/android/testData/lint/global/lintInJavaFile/MyActivity.java @@ -0,0 +1,17 @@ +package p1.p2; + +import android.app.Activity; +import android.os.Bundle; +import android.widget.ImageView; + +import java.lang.Integer; + +public class MyActivity extends Activity +{ + @Override + public void onCreate(Bundle savedInstanceState) + { + super.onCreate(savedInstanceState); + Integer n = new Integer(3); + } +}
\ No newline at end of file diff --git a/android/testData/lint/global/lintInJavaFile/expected.xml b/android/testData/lint/global/lintInJavaFile/expected.xml new file mode 100644 index 00000000000..90ae8bdec38 --- /dev/null +++ b/android/testData/lint/global/lintInJavaFile/expected.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<problems> + <problem> + <file>MyActivity.java</file> + <line>15</line> + <description>Use Integer.valueOf(3) instead</description> + </problem> +</problems>
\ No newline at end of file diff --git a/android/testData/lint/global/suppressingInJava/MyActivity.java b/android/testData/lint/global/suppressingInJava/MyActivity.java new file mode 100644 index 00000000000..f77a11226cf --- /dev/null +++ b/android/testData/lint/global/suppressingInJava/MyActivity.java @@ -0,0 +1,18 @@ +package p1.p2; + +import android.app.Activity; +import android.os.Bundle; +import android.widget.ImageView; + +import java.lang.Integer; + +public class MyActivity extends Activity +{ + @Override + public void onCreate(Bundle savedInstanceState) + { + super.onCreate(savedInstanceState); + @SuppressWarnings("AndroidLintUseValueOf") + Integer n = new Integer(3); + } +}
\ No newline at end of file diff --git a/android/testData/lint/global/suppressingInJava/expected.xml b/android/testData/lint/global/suppressingInJava/expected.xml new file mode 100644 index 00000000000..5e933496b9c --- /dev/null +++ b/android/testData/lint/global/suppressingInJava/expected.xml @@ -0,0 +1,3 @@ +<?xml version="1.0" encoding="UTF-8"?> +<problems> +</problems>
\ No newline at end of file diff --git a/android/testData/lint/global/suppressingInXml3/expected.xml b/android/testData/lint/global/suppressingInXml3/expected.xml new file mode 100644 index 00000000000..5e933496b9c --- /dev/null +++ b/android/testData/lint/global/suppressingInXml3/expected.xml @@ -0,0 +1,3 @@ +<?xml version="1.0" encoding="UTF-8"?> +<problems> +</problems>
\ No newline at end of file diff --git a/android/testData/lint/global/suppressingInXml3/layout.xml b/android/testData/lint/global/suppressingInXml3/layout.xml new file mode 100644 index 00000000000..5c34192b988 --- /dev/null +++ b/android/testData/lint/global/suppressingInXml3/layout.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + > +<!--suppress AndroidLintHardcodedText --> +<TextView + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:t<caret>ext="Hello World, MyActivity" + /> +</LinearLayout>
\ No newline at end of file diff --git a/android/testData/lint/suppressingInXml1.xml b/android/testData/lint/suppressingInXml1.xml new file mode 100644 index 00000000000..5c34192b988 --- /dev/null +++ b/android/testData/lint/suppressingInXml1.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + > +<!--suppress AndroidLintHardcodedText --> +<TextView + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:t<caret>ext="Hello World, MyActivity" + /> +</LinearLayout>
\ No newline at end of file diff --git a/android/testData/lint/suppressingInXml2.xml b/android/testData/lint/suppressingInXml2.xml new file mode 100644 index 00000000000..cf13ead019f --- /dev/null +++ b/android/testData/lint/suppressingInXml2.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<!--suppress AndroidLintHardcodedText --> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + > +<TextView + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:t<caret>ext="Hello World, MyActivity" + /> +</LinearLayout>
\ No newline at end of file |