Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LFYSec/MScan
/ deadAssign
Method
deadAssign
src/test/resources/deadcode/DeadAssignment.java:3–9 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1
class
DeadAssignment {
2
3
void
deadAssign() {
4
int
x = 1;
5
int
y = x + 2;
// dead assignment
6
int
z = x + 3;
7
use(z);
8
int
a = x;
// dead assignment
9
}
10
11
void
use(
int
n) {
12
}
Callers
nothing calls this directly
Calls
1
use
Method · 0.95
Tested by
no test coverage detected