INNER CODE UNIT · Java

get

xxf098/shadowsocksr-v2ray-trojan-android · src/main/java/go/Seq.java:164

        synchronized Ref get(final int n) {
            if (n < 0) {
                throw new RuntimeException("ref called with Go refnum " + n);
            }
            if (n == 41) {
                return Seq.nullRef;
            }
            final Ref value = this.javaObjs.get(n);
            if (value == null) {
                throw new RuntimeException("unknown java Ref: " + n);
            }
            return value;
        }
    }

    static class GoRefQueue extends ReferenceQueue<GoObject>
    {
        private final Collection<GoRef> refs;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…