Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LFYSec/MScan
/ deadAssign2
Method
deadAssign2
src/test/resources/deadcode/DeadAssignment2.java:11–17 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
9
}
10
11
void
deadAssign2() {
12
int
x = 1;
13
int
y = x + 2;
// dead assignment
14
int
z = x + 3;
15
use(z);
16
int
a = x;
// dead assignment
17
}
18
19
void
deadAssign3(
int
p,
int
q) {
20
int
x, y;
Callers
nothing calls this directly
Calls
1
use
Method · 0.95
Tested by
no test coverage detected