Skip to content

Commit

Permalink
add annotation of Deprecated. #593
Browse files Browse the repository at this point in the history
  • Loading branch information
btkobayashirun authored and yoshikawaa committed Jul 25, 2016
1 parent a49f405 commit a9b1d3d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ public interface TransactionTokenContext {
/**
* Defines the contract for implementations of token creation
*/
@Deprecated
void createToken();

/**
* Defines the contract for implementations of token removal
*/
@Deprecated
void removeToken();

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ public TransactionTokenInfo getTokenInfo() {
* <code>TransactionToken</code>
* @see org.terasoluna.gfw.web.token.transaction.TransactionTokenContext#createToken()
*/
@Deprecated
@Override
public void createToken() {
if (receivedToken.valid()) {
Expand All @@ -95,6 +96,7 @@ public void createToken() {
* {@link org.terasoluna.gfw.web.token.transaction.TransactionTokenContextImpl.ReserveCommand#REMOVE_TOKEN}
* @see org.terasoluna.gfw.web.token.transaction.TransactionTokenContext#removeToken()
*/
@Deprecated
@Override
public void removeToken() {
reserveCommand = ReserveCommand.REMOVE_TOKEN;
Expand All @@ -103,6 +105,7 @@ public void removeToken() {
/**
* rollback resrveCommand to default
*/
@Deprecated
public void cancelReservation() {
reserveCommand = defaultCommand;
}
Expand Down

0 comments on commit a9b1d3d

Please sign in to comment.