MCPcopy Create free account
hub / github.com/LFYSec/MScan / setIndex

Method setIndex

src/main/java/pascal/taie/analysis/pta/core/heap/Obj.java:40–49  ·  view source on GitHub ↗
(int index)

Source from the content-addressed store, hash-verified

38 private int index = -1;
39
40 void setIndex(int index) {
41 if (this.index != -1) {
42 throw new IllegalStateException("index already set");
43 }
44 if (index < 0) {
45 throw new IllegalArgumentException(
46 "index must be 0 or positive number, given: " + index);
47 }
48 this.index = index;
49 }
50
51 @Override
52 public int getIndex() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected