mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
Add sink models to notification builder setters
This commit is contained in:
@@ -1,13 +1,16 @@
|
||||
import android.app.Activity;
|
||||
import android.app.Notification;
|
||||
import androidx.core.app.NotificationCompat;
|
||||
import androidx.core.app.NotificationManagerCompat;
|
||||
|
||||
class Test extends Activity {
|
||||
void test(String password) {
|
||||
NotificationManagerCompat manager = NotificationManagerCompat.from(this);
|
||||
|
||||
NotificationCompat.Builder builder = new NotificationCompat.Builder(this, "");
|
||||
builder.setContentText(password);
|
||||
manager.notify(0, builder.build()); // sensitive-notification
|
||||
builder.setContentText(password); // $sensitive-notification
|
||||
|
||||
}
|
||||
|
||||
void test2(String password) {
|
||||
Notification.Builder builder = new Notification.Builder(this, "");
|
||||
builder.setContentText(password); // $sensitive-notification
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user