Skip to content

Commit

Permalink
@deprecated some method
Browse files Browse the repository at this point in the history
  • Loading branch information
tywo45 committed Jul 17, 2019
1 parent 1d7d3ed commit bc10283
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/src/main/java/org/tio/core/ChannelContext.java
Original file line number Diff line number Diff line change
@@ -168,6 +168,7 @@ public boolean equals(Object obj) {

/**
* 等价于:getAttribute(DEFAULT_ATTUBITE_KEY)
* @deprecated 不建议用不带参数的
* @return
*/
public Object getAttribute() {
@@ -177,6 +178,7 @@ public Object getAttribute() {
/**
* 等价于:getAttribute(DEFAULT_ATTUBITE_KEY)<br>
* 等价于:getAttribute()<br>
* @deprecated 不建议用不带参数的
* @return
*/
public Object get() {
@@ -333,6 +335,7 @@ public void setAsynchronousSocketChannel(AsynchronousSocketChannel asynchronousS
/**
* 等价于:setAttribute(DEFAULT_ATTUBITE_KEY, value)<br>
* 仅仅是为了内部方便,不建议大家使用<br>
* @deprecated 不建议各位同学使用这个方法,建议使用setAttribute("name1", object1)
* @param value
* @author tanyaowu
*/
@@ -343,6 +346,7 @@ public void setAttribute(Object value) {
/**
* 等价于:set(DEFAULT_ATTUBITE_KEY, value)<br>
* 等价于:setAttribute(Object value)<br>
* @deprecated 不建议各位同学使用这个方法,建议使用setAttribute("name1", object1)
* @param value
*/
public void set(Object value) {

0 comments on commit bc10283

Please sign in to comment.