Skip to content

Commit 01e9eca

Browse files
authored
optimize: removed write only object (apache#6883)
1 parent 247c1a0 commit 01e9eca

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

changes/en-us/2.x.md

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Add changes here for all PR submitted to the 2.x branch.
1212
### optimize:
1313
- [[#6826](https://github.com/apache/incubator-seata/pull/6826)] remove the branch registration operation of the XA read-only transaction
1414
- [[#6874](https://github.com/apache/incubator-seata/pull/6874)] modify the version to 2.3.0-SNAPSHOT
15+
- [[#6883](https://github.com/apache/incubator-seata/pull/6874)] remove write only object
1516
- [[#6892](https://github.com/apache/incubator-seata/pull/6892)] upgrade npmjs version
1617
- [[#6889](https://github.com/apache/incubator-seata/pull/6889)] Correct word spelling errors
1718

@@ -29,8 +30,10 @@ Thanks to these contributors for their code commits. Please report an unintended
2930
- [slievrly](https://github.com/slievrly)
3031
- [GoodBoyCoder](https://github.com/GoodBoyCoder)
3132
- [funky-eyes](https://github.com/funky-eyes)
33+
- [dk2k](https://github.com/dk2k)
3234
- [MaoMaoandSnail](https://github.com/MaoMaoandSnail)
3335
- [yougecn](https://github.com/yougecn)
3436

3537

38+
3639
Also, we receive many valuable issues, questions and advices from our community. Thanks for you all.

changes/zh-cn/2.x.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010

1111
### optimize:
1212
- [[#6826](https://github.com/apache/incubator-seata/pull/6826)] 移除只读XA事务的分支注册操作
13-
- [[#6874](https://github.com/apache/incubator-seata/pull/6874)] modify the version to 2.3.0-SNAPSHOT
13+
- [[#6874](https://github.com/apache/incubator-seata/pull/6874)] 修改版本为2.3.0-SNAPSHOT
14+
- [[#6883](https://github.com/apache/incubator-seata/pull/6874)] 删除代码中无用对象的创建
1415
- [[#6892](https://github.com/apache/incubator-seata/pull/6892)] 升级 npmjs 版本
1516
- [[#6889](https://github.com/apache/incubator-seata/pull/6889)] 修正单词拼写错误
1617

@@ -29,6 +30,7 @@
2930
- [slievrly](https://github.com/slievrly)
3031
- [GoodBoyCoder](https://github.com/GoodBoyCoder)
3132
- [funky-eyes](https://github.com/funky-eyes)
33+
- [dk2k](https://github.com/dk2k)
3234
- [MaoMaoandSnail](https://github.com/MaoMaoandSnail)
3335
- [yougecn](https://github.com/yougecn)
3436

spring/src/main/java/org/apache/seata/spring/tcc/TccAnnotationProcessor.java

-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
*/
1717
package org.apache.seata.spring.tcc;
1818

19-
import org.apache.seata.integration.tx.api.remoting.RemotingDesc;
2019
import org.apache.seata.integration.tx.api.util.ProxyUtil;
2120
import org.apache.seata.rm.tcc.api.TwoPhaseBusinessAction;
2221
import org.slf4j.Logger;
@@ -101,8 +100,6 @@ public void addTccAdvise(Object bean, String beanName, Field field, Class servic
101100
}
102101
for (Method method : field.getType().getMethods()) {
103102
if (!Modifier.isStatic(method.getModifiers()) && (method.isAnnotationPresent(TwoPhaseBusinessAction.class))) {
104-
RemotingDesc remotingDesc = new RemotingDesc();
105-
remotingDesc.setServiceClass(serviceClass);
106103

107104
Object proxyBean = ProxyUtil.createProxy(bean, beanName);
108105
field.setAccessible(true);

0 commit comments

Comments
 (0)