mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
Co-authored-by: Raúl Pardo <raul.pardo@protonmail.com> Co-authored-by: SimonJorgensenMancofi <simon.jorgensen@mancofi.dk> Co-authored-by: Bjørnar Haugstad Jåtten <bjornjaat@hotmail.com>
18 lines
324 B
Java
18 lines
324 B
Java
package examples;
|
|
|
|
@ThreadSafe
|
|
public class Test3Super extends Test2 { // We might want an alert here for the inherited unsafe methods.
|
|
|
|
public Test3Super() {
|
|
super.x = 0;
|
|
}
|
|
|
|
public void y() {
|
|
super.x = 0; //$ MISSING: Alert
|
|
}
|
|
|
|
public void yLst() {
|
|
super.lst.add("Hello!"); //$ MISSING: Alert
|
|
}
|
|
}
|