Skip to content

Commit 8c66875

Browse files
committed
refactor(bean): 拆分FastBeanCopier后端并补齐兼容性测试
1 parent b4b69d6 commit 8c66875

19 files changed

Lines changed: 3369 additions & 739 deletions

hsweb-core/pom.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,29 @@
1414
<name>${project.artifactId}</name>
1515
<description>核心包</description>
1616

17+
<build>
18+
<plugins>
19+
<plugin>
20+
<groupId>org.apache.maven.plugins</groupId>
21+
<artifactId>maven-compiler-plugin</artifactId>
22+
<configuration>
23+
<annotationProcessorPaths>
24+
<path>
25+
<groupId>org.projectlombok</groupId>
26+
<artifactId>lombok</artifactId>
27+
<version>1.18.42</version>
28+
</path>
29+
<path>
30+
<groupId>org.openjdk.jmh</groupId>
31+
<artifactId>jmh-generator-annprocess</artifactId>
32+
<version>1.37</version>
33+
</path>
34+
</annotationProcessorPaths>
35+
</configuration>
36+
</plugin>
37+
</plugins>
38+
</build>
39+
1740
<dependencies>
1841

1942
<dependency>
@@ -179,5 +202,12 @@
179202
<artifactId>context-propagation</artifactId>
180203
<optional>true</optional>
181204
</dependency>
205+
206+
<dependency>
207+
<groupId>org.openjdk.jmh</groupId>
208+
<artifactId>jmh-core</artifactId>
209+
<version>1.37</version>
210+
<scope>test</scope>
211+
</dependency>
182212
</dependencies>
183213
</project>

hsweb-core/src/main/java/org/hswebframework/web/bean/AccessorFastBeanCopierBackend.java

Lines changed: 570 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package org.hswebframework.web.bean;
2+
3+
import org.hswebframework.web.bean.accessor.AsmBeanAccessor;
4+
5+
final class AsmAccessorFastBeanCopierBackend extends AccessorFastBeanCopierBackend {
6+
7+
AsmAccessorFastBeanCopierBackend() {
8+
super(new AsmBeanAccessor());
9+
}
10+
}

0 commit comments

Comments
 (0)