Skip to content

Commit

Permalink
fix typo: paramter -> parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
chanjarster authored and WillemJiang committed Jul 6, 2019
1 parent bcf978d commit 5a711dd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Expand Up @@ -29,8 +29,8 @@ public Object[] getParameters(String localTransactionId) {
}

@Override
public void putParamters(String localTransactionId, Object ... paramters) {
parameters.put(localTransactionId, paramters);
public void putParameters(String localTransactionId, Object ... parameters) {
this.parameters.put(localTransactionId, parameters);
}

@Override
Expand Down
Expand Up @@ -19,6 +19,6 @@

public interface ParametersContext {
Object[] getParameters(String localTransactionId);
void putParamters(String localTransactionId, Object ... paramters);
void putParameters(String localTransactionId, Object ... parameters);
void removeParameter(String localTransactionId);
}
Expand Up @@ -67,7 +67,7 @@ Object advise(ProceedingJoinPoint joinPoint, Participate participate) throws Thr
tccMessageSender.participationEnd(new ParticipationEndedEvent(context.globalTxId(), context.localTxId(), localTxId,
confirmMethod, cancelMethod, TransactionStatus.Succeed));
// Just store the parameters into the context
parametersContext.putParamters(context.localTxId(), joinPoint.getArgs());
parametersContext.putParameters(context.localTxId(), joinPoint.getArgs());
LOG.debug("Participate Transaction with context {} has finished.", context);
return result;
} catch (Throwable throwable) {
Expand Down

0 comments on commit 5a711dd

Please sign in to comment.