MCPcopy Create free account
hub / github.com/e2wugui/zeze / ReplayAttackMax

Class ReplayAttackMax

ZezeJava/ZezeJava/src/main/java/Zeze/Util/ReplayAttackMax.java:3–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package Zeze.Util;
2
3public class ReplayAttackMax extends FastLock implements ReplayAttack {
4 private long max;
5
6 @Override
7 public boolean replay(long serialId) {
8 if (serialId > max) {
9 max = serialId;
10 return false;
11 }
12 return true;
13 }
14}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected