Skip to content

Commit

Permalink
Merge pull request #45 from kkzfl22/master
Browse files Browse the repository at this point in the history
将现有的注释中的警告信息进行修改!
  • Loading branch information
kkzfl authored Feb 13, 2017
2 parents 741e913 + 779cab4 commit d950264
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public int refCnt() {

/**
* 由子类直接使用的不安全操作,该类直接设置缓冲区的引用计数
* @param refCnt 参数
*/
protected final void setRefCnt(int refCnt) {
this.refCnt = refCnt;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public interface CacheStrategyInf {
/**
* 从缓存中获取数据
* @param p 参数
* @param <T> 返回的泛型信息
* @return 返回信息
*/
public <T> T getBufferData(Map<String, Object> p);
Expand Down
1 change: 1 addition & 0 deletions src/main/java/io/mycat/bigmem/util/ThreadPool.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public void submit(Runnable runjob) {
/**
* 提交一个带返回值的任务
* @param callJob 参数
* @param <T> 参数信息
*/
public <T> void submit(Callable<T> callJob) {
POOLEXECUTOR.submit(callJob);
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/io/mycat/bigmem/util/UnsafeHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ private static long roundUpTo8(final long number) {
/**
* Returns the size of the header for an instance of this class (in bytes).
*
* <p>More information <a href="http://www.codeinstructions.com/2008/12/java-objects-memory-structure.html">http://www.codeinstructions.com/2008/12/java-objects-memory-structure.html</a>
* More information <a href="http://www.codeinstructions.com/2008/12/java-objects-memory-structure.html">http://www.codeinstructions.com/2008/12/java-objects-memory-structure.html</a>
* and <a href="http://stackoverflow.com/a/17348396/88646">http://stackoverflow.com/a/17348396/88646</a>
*
* <p><pre>
* <pre>
* ,------------------+------------------+------------------ +---------------.
* | mark word(8) | klass pointer(4) | array size (opt) | padding |
* `------------------+------------------+-------------------+---------------'
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/io/mycat/bigmem/util/internal/ObjectUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ private ObjectUtil() {
* Otherwise, returns the argument.
* @param arg 参数
* @param text 参数
* @param <T> 参数泛型与返回泛型
* @return 参数
*/
public static <T> T checkNotNull(T arg, String text) {
Expand Down Expand Up @@ -85,6 +86,7 @@ public static long checkPositiveOrZero(long i, String name) {
* Otherwise, returns the argument.
* @param array 参数
* @param name 参数
* @param <T> 参数与返回泛型
* @return 返回
*/
public static <T> T[] checkNonEmpty(T[] array, String name) {
Expand Down

0 comments on commit d950264

Please sign in to comment.