diff options
Diffstat (limited to 'lint/libs/lint_checks/tests/src/com/android/tools/lint/checks/data/src/test/pkg/StringFormatActivity.java.txt')
-rw-r--r-- | lint/libs/lint_checks/tests/src/com/android/tools/lint/checks/data/src/test/pkg/StringFormatActivity.java.txt | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/lint/libs/lint_checks/tests/src/com/android/tools/lint/checks/data/src/test/pkg/StringFormatActivity.java.txt b/lint/libs/lint_checks/tests/src/com/android/tools/lint/checks/data/src/test/pkg/StringFormatActivity.java.txt deleted file mode 100644 index c22828f..0000000 --- a/lint/libs/lint_checks/tests/src/com/android/tools/lint/checks/data/src/test/pkg/StringFormatActivity.java.txt +++ /dev/null @@ -1,35 +0,0 @@ -package test.pkg; - -import android.app.Activity; -import android.os.Bundle; - -public class StringFormatActivity extends Activity { - /** Called when the activity is first created. */ - @Override - public void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - String target = "World"; - String hello = getResources().getString(R.string.hello); - String output1 = String.format(hello, target); - String hello2 = getResources().getString(R.string.hello2); - String output2 = String.format(hello2, target, "How are you"); - setContentView(R.layout.main); - String score = getResources().getString(R.string.score); - int points = 50; - boolean won = true; - String output3 = String.format(score, points); - String output4 = String.format(score, true); // wrong - String output4 = String.format(score, won); // wrong - String output5 = String.format(score, 75); - String.format(getResources().getString(R.string.hello2), target, "How are you"); - getResources().getString(hello2, target, "How are you"); - getResources().getString(R.string.hello2, target, "How are you"); - } - - // Test constructor handling (issue 35588) - public StringFormatActivity() { - String target = "World"; - String hello = getResources().getString(R.string.hello); - String output1 = String.format(hello, target); - } -} |