static int tableSizeFor(int cap) {
        int n = ALL_BIT_IS_ONE >>> Integer.numberOfLeadingZeros(cap - 1);
        return (n < 0) ? 1 : (n >= MAXIMUM_CAPACITY) ? MAXIMUM_CAPACITY : n + 1;
    }
@Test
    public void testTableSizeFor() {
        int maxCap = 1 << 30;
        for (int i = 0; i <= maxCap; i++) {
            int tabSize1 = tabSizeFor_JDK8(i);
            int tabSize2 = TaskTimeRecordPlugin.tableSizeFor(i);
            Assert.assertTrue(tabSize1 == tabSize2);
        }
    }