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

Method enqueue

src/test/resources/pta/taint/LinkedQueue.java:31–41  ·  view source on GitHub ↗
(String item)

Source from the content-addressed store, hash-verified

29 }
30
31 public void enqueue(String item) {
32 Node oldlast = last;
33 last = new Node();
34 last.item = item;
35 last.next = null;
36 if (isEmpty())
37 first = last;
38 else
39 oldlast.next = last;
40 n++;
41 }
42
43 public String dequeue() {
44 if (isEmpty())

Callers 1

mainMethod · 0.95

Calls 1

isEmptyMethod · 0.95

Tested by

no test coverage detected