Skip to content

Commit fe11df6

Browse files
authored
refactor: remove outdated and incorrect @SInCE tags (#736)
1 parent 55911dc commit fe11df6

File tree

17 files changed

+8
-97
lines changed

17 files changed

+8
-97
lines changed

fesod-examples/src/test/java/org/apache/fesod/sheet/demo/fill/FillTest.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,10 @@
4141

4242
/**
4343
* Example of writing and filling data into Excel
44-
*
45-
* @since 2.1.1
4644
*/
4745
public class FillTest {
4846
/**
4947
* Simplest example of filling data
50-
*
51-
* @since 2.1.1
5248
*/
5349
@Test
5450
public void simpleFill() {
@@ -76,8 +72,6 @@ public void simpleFill() {
7672

7773
/**
7874
* Example of filling a list
79-
*
80-
* @since 2.1.1
8175
*/
8276
@Test
8377
public void listFill() {
@@ -106,8 +100,6 @@ public void listFill() {
106100

107101
/**
108102
* Example of complex filling
109-
*
110-
* @since 2.1.1
111103
*/
112104
@Test
113105
public void complexFill() {
@@ -144,8 +136,6 @@ public void complexFill() {
144136
* Example of complex filling with large datasets
145137
* <p>
146138
* The solution here is to ensure that the list in the template is the last row, and then append a table. For Excel 2003, there is no solution other than increasing memory.
147-
*
148-
* @since 2.1.1
149139
*/
150140
@Test
151141
public void complexFillWithTable() {
@@ -192,8 +182,6 @@ public void complexFillWithTable() {
192182

193183
/**
194184
* Example of horizontal filling
195-
*
196-
* @since 2.1.1
197185
*/
198186
@Test
199187
public void horizontalFill() {
@@ -222,8 +210,6 @@ public void horizontalFill() {
222210

223211
/**
224212
* Example of composite filling with multiple lists
225-
*
226-
* @since 2.2.0-beta1
227213
*/
228214
@Test
229215
public void compositeFill() {

fesod-examples/src/test/java/org/apache/fesod/sheet/demo/read/ReadTest.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,6 @@ public void headerRead() {
316316
* 2. Since Fesod reads Excel files row by row by default, you need to create a callback listener for each row. Refer to {@link DemoExtraListener}.
317317
* <p>
318318
* 3. Directly read the file.
319-
*
320-
* @since 2.2.0-beat1
321319
*/
322320
@Test
323321
public void extraRead() {
@@ -343,8 +341,6 @@ public void extraRead() {
343341
* 2. Since Fesod reads Excel files row by row by default, you need to create a callback listener for each row. Refer to {@link CellDataDemoHeadDataListener}.
344342
* <p>
345343
* 3. Directly read the file.
346-
*
347-
* @since 2.2.0-beat1
348344
*/
349345
@Test
350346
public void cellDataRead() {

fesod-examples/src/test/java/org/apache/fesod/sheet/demo/web/WebTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ public void download(HttpServletResponse response) throws IOException {
7373

7474
/**
7575
* File download that returns JSON when failed (by default, returns an Excel with partial data when failed)
76-
*
77-
* @since 2.1.1
7876
*/
7977
@GetMapping("downloadFailedUsingJson")
8078
public void downloadFailedUsingJson(HttpServletResponse response) throws IOException {

fesod-examples/src/test/java/org/apache/fesod/sheet/demo/write/ImageDataWithAnnotation.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ public class ImageDataWithAnnotation {
5050
private byte[] byteArray;
5151
/**
5252
* 根据url导出
53-
*
54-
* @since 2.1.1
5553
*/
5654
private URL url;
5755
}

fesod-examples/src/test/java/org/apache/fesod/sheet/demo/write/ImageDemoData.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@
3333

3434
/**
3535
* 图片导出类
36-
*
37-
*
3836
*/
3937
@Getter
4038
@Setter
@@ -53,15 +51,11 @@ public class ImageDemoData {
5351
private byte[] byteArray;
5452
/**
5553
* 根据url导出
56-
*
57-
* @since 2.1.1
5854
*/
5955
private URL url;
6056

6157
/**
6258
* 根据文件导出 并设置导出的位置。
63-
*
64-
* @since 3.0.0-beta1
6559
*/
6660
private WriteCellData<Void> writeCellDataFile;
6761
}

fesod-examples/src/test/java/org/apache/fesod/sheet/demo/write/WriteCellDemoData.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,45 +26,33 @@
2626

2727
/**
2828
* 根据WriteCellData写
29-
*
30-
*
3129
*/
3230
@Getter
3331
@Setter
3432
@EqualsAndHashCode
3533
public class WriteCellDemoData {
3634
/**
3735
* 超链接
38-
*
39-
* @since 3.0.0-beta1
4036
*/
4137
private WriteCellData<String> hyperlink;
4238

4339
/**
4440
* 备注
45-
*
46-
* @since 3.0.0-beta1
4741
*/
4842
private WriteCellData<String> commentData;
4943

5044
/**
5145
* 公式
52-
*
53-
* @since 3.0.0-beta1
5446
*/
5547
private WriteCellData<String> formulaData;
5648

5749
/**
5850
* 指定单元格的样式。当然样式 也可以用注解等方式。
59-
*
60-
* @since 3.0.0-beta1
6151
*/
6252
private WriteCellData<String> writeCellStyle;
6353

6454
/**
6555
* 指定一个单元格有多个样式
66-
*
67-
* @since 3.0.0-beta1
6856
*/
6957
private WriteCellData<String> richText;
7058
}

fesod-examples/src/test/java/org/apache/fesod/sheet/demo/write/WriteTest.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,6 @@ public void testEscapeHex() {
131131
* 2. 根据自己或者排除自己需要的列
132132
* <p>
133133
* 3. 直接写即可
134-
*
135-
* @since 2.1.1
136134
*/
137135
@Test
138136
public void excludeOrIncludeWrite() {
@@ -353,8 +351,6 @@ public void imageWrite() throws Exception {
353351
* 1. 创建excel对应的实体对象 参照{@link WriteCellDemoData}
354352
* <p>
355353
* 2. 直接写即可
356-
*
357-
* @since 3.0.0-beta1
358354
*/
359355
@Test
360356
public void writeCellDataWrite() {
@@ -471,8 +467,6 @@ public void widthAndHeightWrite() {
471467
* 1. 创建excel对应的实体对象 参照{@link DemoStyleData}
472468
* <p>
473469
* 3. 直接写即可
474-
*
475-
* @since 2.2.0-beta1
476470
*/
477471
@Test
478472
public void annotationStyleWrite() {
@@ -524,7 +518,6 @@ public void handlerStyleWrite() {
524518
.doWrite(data());
525519

526520
// 方法2: 使用Fesod的方式完全自己写 不太推荐 尽量使用已有策略
527-
// @since 3.0.0-beta2
528521
fileName = TestFileUtil.getPath() + "handlerStyleWrite" + System.currentTimeMillis() + ".xlsx";
529522
FesodSheet.write(fileName, DemoData.class)
530523
.registerWriteHandler(new CellWriteHandler() {
@@ -553,7 +546,6 @@ public void afterCellDispose(CellWriteHandlerContext context) {
553546
.doWrite(data());
554547

555548
// 方法3: 使用poi的样式完全自己写 不推荐
556-
// @since 3.0.0-beta2
557549
// 坑1:style里面有dataformat 用来格式化数据的 所以自己设置可能导致格式化注解不生效
558550
// 坑2:不要一直去创建style 记得缓存起来 最多创建6W个就挂了
559551
fileName = TestFileUtil.getPath() + "handlerStyleWrite" + System.currentTimeMillis() + ".xlsx";
@@ -595,8 +587,6 @@ public void afterCellDispose(CellWriteHandlerContext context) {
595587
* 2. 创建一个merge策略 并注册
596588
* <p>
597589
* 3. 直接写即可
598-
*
599-
* @since 2.2.0-beta1
600590
*/
601591
@Test
602592
public void mergeWrite() {

fesod-examples/src/test/java/org/apache/fesod/sheet/temp/FillTempTest.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,11 @@
3434

3535
/**
3636
* 写的填充写法
37-
*
38-
*
39-
* @since 2.1.1
4037
*/
4138
public class FillTempTest {
4239

4340
/**
4441
* 复杂的填充
45-
*
46-
* @since 2.1.1
4742
*/
4843
@Test
4944
public void complexFill() {
@@ -74,8 +69,6 @@ public void complexFill() {
7469
* 数据量大的复杂填充
7570
* <p>
7671
* 这里的解决方案是 确保模板list为最后一行,然后再拼接table.还有03版没救,只能刚正面加内存。
77-
*
78-
* @since 2.1.1
7972
*/
8073
@Test
8174
public void complexFillWithTable() {

fesod-examples/src/test/java/org/apache/fesod/sheet/temp/fill/FillTempTest.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,10 @@
3737

3838
/**
3939
* Example of filling data into Excel templates.
40-
*
41-
*
42-
* @since 2.1.1
4340
*/
4441
public class FillTempTest {
4542
/**
4643
* Simplest example of filling data.
47-
*
48-
* @since 2.1.1
4944
*/
5045
@Test
5146
public void simpleFill() {
@@ -74,8 +69,6 @@ public void simpleFill() {
7469

7570
/**
7671
* Example of filling a list of data.
77-
*
78-
* @since 2.1.1
7972
*/
8073
@Test
8174
public void listFill() {
@@ -103,8 +96,6 @@ public void listFill() {
10396

10497
/**
10598
* Example of complex data filling.
106-
*
107-
* @since 2.1.1
10899
*/
109100
@Test
110101
public void complexFill() {
@@ -140,8 +131,6 @@ public void complexFill() {
140131
* <p>
141132
* The solution here is to ensure the list in the template is the last row, then append a table.
142133
* Note: Excel 2003 format is not supported and requires more memory.
143-
*
144-
* @since 2.1.1
145134
*/
146135
@Test
147136
public void complexFillWithTable() {
@@ -185,8 +174,6 @@ public void complexFillWithTable() {
185174

186175
/**
187176
* Example of horizontal data filling.
188-
*
189-
* @since 2.1.1
190177
*/
191178
@Test
192179
public void horizontalFill() {
@@ -215,8 +202,6 @@ public void horizontalFill() {
215202

216203
/**
217204
* Example of composite data filling with multiple lists.
218-
*
219-
* @since 2.2.0-beta1
220205
*/
221206
@Test
222207
public void compositeFill() {

fesod/src/main/java/org/apache/fesod/sheet/converters/url/UrlImageConverter.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
* Url and image converter
3434
*
3535
*
36-
* @since 2.1.1
3736
*/
3837
public class UrlImageConverter implements Converter<URL> {
3938
public static int urlConnectTimeout = 1000;

0 commit comments

Comments
 (0)