mirror of
https://github.com/github/codeql.git
synced 2026-06-13 17:01:10 +02:00
First pass converting qlref tests to inline expectation with postprocess
This commit is contained in:
@@ -16,14 +16,14 @@ class Super {
|
||||
}
|
||||
}
|
||||
|
||||
class NoEquals extends Super {
|
||||
class NoEquals extends Super { // $ Alert
|
||||
// BAD
|
||||
public int hashCode() {
|
||||
return myInt+1;
|
||||
}
|
||||
}
|
||||
|
||||
class NoHashCode extends Super {
|
||||
class NoHashCode extends Super { // $ Alert
|
||||
// BAD
|
||||
public boolean equals(Object other) {
|
||||
return true;
|
||||
@@ -37,4 +37,4 @@ class RefiningEquals extends Super {
|
||||
public boolean equals(Object other) {
|
||||
return (super.equals(other) && myLong == ((RefiningEquals)other).myLong);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user