mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
29 lines
373 B
Java
29 lines
373 B
Java
public class WhitespaceContradictsPrecedence {
|
|
int bad(int x) {
|
|
return x + x>>1;
|
|
}
|
|
|
|
int ok1(int x) {
|
|
return x + x >> 1;
|
|
}
|
|
|
|
int ok2(int x) {
|
|
return x+x >> 1;
|
|
}
|
|
|
|
int ok3(int x) {
|
|
return x + (x>>1);
|
|
}
|
|
|
|
int ok4(int x, int y, int z) {
|
|
return x + y + z;
|
|
}
|
|
|
|
int ok5(int x, int y, int z) {
|
|
return x + y+z;
|
|
}
|
|
|
|
int ok6(int x) {
|
|
return x + x>> 1;
|
|
}
|
|
} |