From 0b13d5cf496e1809ce39979acac3cd436974aa06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E5=AE=87=E7=90=A6?= <465645774@qq.com> Date: Tue, 2 Feb 2021 08:33:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9javadoc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/auxiliary/datadriven/Functions.java | 1 - src/main/java/com/auxiliary/db/SqlAction.java | 19 ------------------- .../java/com/auxiliary/http/EasyHttp.java | 2 +- .../com/auxiliary/tool/data/DisposeText.java | 6 ++---- .../com/auxiliary/tool/data/RandomString.java | 6 +++--- .../com/auxiliary/tool/date/InitTimeUtil.java | 10 +++++++++- .../java/com/auxiliary/tool/date/Time.java | 2 +- .../com/auxiliary/tool/date/TimeUnit.java | 2 +- 8 files changed, 17 insertions(+), 31 deletions(-) diff --git a/src/main/java/com/auxiliary/datadriven/Functions.java b/src/main/java/com/auxiliary/datadriven/Functions.java index f6d6a9b..5a3941c 100644 --- a/src/main/java/com/auxiliary/datadriven/Functions.java +++ b/src/main/java/com/auxiliary/datadriven/Functions.java @@ -385,7 +385,6 @@ public class Functions { * *
* - * @param splitText 分隔符,必须按照正则表达式的形式传入 * @return {@link DataDriverFunction}类对象 */ public static DataDriverFunction randomWord() { diff --git a/src/main/java/com/auxiliary/db/SqlAction.java b/src/main/java/com/auxiliary/db/SqlAction.java index 6393824..5d081aa 100644 --- a/src/main/java/com/auxiliary/db/SqlAction.java +++ b/src/main/java/com/auxiliary/db/SqlAction.java @@ -21,25 +21,6 @@ import com.auxiliary.tool.data.TableData; * ** 类中的所有方法均为重头遍历结果集,与当前在结果集中光标的位置无关,并且遍历后不影响当前光标的位置。 - * 以调用{@link #getFirstResult()}方法为例: - *
- *
- * 查询的结果集中存在ID字段,并且字段下有如下数据[1, 2, 3, 4, 5, 6, 7],对该字段循环获取5次:
其结果输出为:
- * // run为SqlAction类对象
- * ResultSet result = run.{@link #getResult()};
- * for (int index = 0; index < 5 && result.next(), index++) {
- * System.out.print(result.getString("ID"));
- * }
- *
- * System.out.print(run.{@link #getFirstResult()});
- *
- * if (result.next()) {
- * System.out.print(result.getString("ID"));
- * }
- *
- * 12345
- * 1
- * 6
*
* 编码时间:2020年12月7日上午8:12:04
diff --git a/src/main/java/com/auxiliary/http/EasyHttp.java b/src/main/java/com/auxiliary/http/EasyHttp.java
index 9764f20..5bccc5e 100644
--- a/src/main/java/com/auxiliary/http/EasyHttp.java
+++ b/src/main/java/com/auxiliary/http/EasyHttp.java
@@ -331,7 +331,7 @@ public class EasyHttp implements Cloneable {
/**
* 用于设置请求头
- * @param request 请求类对象
+ * @param requestBase 请求类对象
* @return 设置请求头的类对象
*/
public HttpRequestBase setHead(HttpRequestBase requestBase) {
diff --git a/src/main/java/com/auxiliary/tool/data/DisposeText.java b/src/main/java/com/auxiliary/tool/data/DisposeText.java
index b9a1863..5c5d296 100644
--- a/src/main/java/com/auxiliary/tool/data/DisposeText.java
+++ b/src/main/java/com/auxiliary/tool/data/DisposeText.java
@@ -1,6 +1,5 @@
package com.auxiliary.tool.data;
-import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.LinkedHashMap;
@@ -56,9 +55,8 @@ public class DisposeText {
/**
* 该方法用于对文本进行去重,保留不重复的字符
*
- * @param textFile 存储文本的文件
+ * @param text 待去重的文本
* @return 去重后的文本
- * @throws IOException
*/
public static String textDelDuplication(String text) {
// 存储文件中的文本
@@ -108,7 +106,7 @@ public class DisposeText {
/**
* 该方法用于对文本中单词进行去重,输出不重复单词
*
- * @param testFile 待测文件
+ * @param textList 待去重的词语集合
* @return 去重后的单词数组
*/
public static List
* 注意:
*
- *
*