mirror of
https://github.com/github/codeql.git
synced 2026-04-24 16:25:15 +02:00
Add additional test cases
This commit is contained in:
@@ -14,6 +14,8 @@ public final class R {
|
||||
public static final int test10 = 10;
|
||||
public static final int test11 = 11;
|
||||
public static final int test12 = 12;
|
||||
public static final int test13 = 13;
|
||||
public static final int test14 = 14;
|
||||
}
|
||||
|
||||
public static final class string {
|
||||
|
||||
@@ -60,5 +60,18 @@ class Test extends Activity {
|
||||
// GOOD: Visibility of parent set to invisible in XML
|
||||
EditText test12 = findViewById(R.id.test12);
|
||||
test12.setText(password);
|
||||
|
||||
// GOOD: Input type set to textPassword in XML
|
||||
EditText test13 = findViewById(R.id.test13);
|
||||
test13.setText(password);
|
||||
|
||||
test14 = findViewById(R.id.test14);
|
||||
}
|
||||
|
||||
EditText test14;
|
||||
|
||||
void test2(String password) {
|
||||
// GOOD: Input type set to textPassword in XML
|
||||
test14.setText(password);
|
||||
}
|
||||
}
|
||||
@@ -50,4 +50,12 @@
|
||||
android:id="@+id/test12"/>
|
||||
</LinearLayout>
|
||||
|
||||
<EditText
|
||||
android:id="@id/test13"
|
||||
android:inputType="textPassword"/>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/test14"
|
||||
android:inputType="textPassword"/>
|
||||
|
||||
</LinearLayout>
|
||||
Reference in New Issue
Block a user