![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
lingting.gzm
这个作者很懒,什么都没留下…
展开
-
HashMap的tableSizeFor方法解析
tableSizeFor 返回大于或等于参数的最近的2的整数次幂的数 tableSizeFor(5) => 8 tableSizeFor(8) => 8 示例 // 设cap=8; n=7 int n = cap - 1; // 0000 0000 0000 0000 0000 0000 0000 0111 // 0000 0000 0000 0000 0000 0000 0000 0011 n |= n >>> 1; // 0000 0000 0000 0000 0000原创 2021-03-09 16:01:39 · 258 阅读 · 0 评论 -
maven release plugin 使用
maven release plugin 使用 主 pom 配置 <properties> <scm.url>git@gitee.*.git</scm.url> </properties> <!-- 版本号管理 scm 配置 --> <scm> <connection>scm:g...原创 2019-06-13 14:51:58 · 866 阅读 · 0 评论