domainMatchingFunc) {
diff --git a/src/main/java/org/casbin/jcasbin/util/BuiltInFunctions.java b/src/main/java/org/casbin/jcasbin/util/BuiltInFunctions.java
index 9dbf2471..4c4aa743 100644
--- a/src/main/java/org/casbin/jcasbin/util/BuiltInFunctions.java
+++ b/src/main/java/org/casbin/jcasbin/util/BuiltInFunctions.java
@@ -40,6 +40,9 @@ public class BuiltInFunctions {
/**
* validate the variadic string parameter size
+ *
+ * @param args the expected number of arguments.
+ * @param expectedLen the variadic string arguments to validate.
*/
public static void validateVariadicStringArgs(int expectedLen, String... args) throws IllegalArgumentException {
int length = args!=null?args.length:0;
@@ -194,7 +197,7 @@ public static boolean keyMatch4(String key1, String key2) {
* KeyMatch5 determines whether key1 matches the pattern of key2 and ignores the parameters in key2.
*
*
- * For example, "/foo/bar?status=1&type=2" matches "/foo/bar"
+ * For example, "/foo/bar?status=1&type=2" matches "/foo/bar"
*
*
* @param key1 the first argument.
@@ -232,8 +235,9 @@ public static String keyGetFunc(String key1, String key2) {
/**
* KeyGet2 returns value matched pattern.For example, "/resource1" matches "/:resource", if the pathVar == "resource", then "resource1" will be returned.
*
- * @param key1 the first argument.
- * @param key2 the second argument.
+ * @param key1 the first argument.
+ * @param key2 the second argument.
+ * @param pathVar the name of the variable to retrieve from the matched pattern.
* @return the matched part.
*/
public static String keyGet2Func(String key1, String key2, String pathVar) {
@@ -417,7 +421,7 @@ public static class GenerateConditionalGFunctionClass {
/**
* GenerateConditionalGFunction is the factory method of the g(_, _[, _]) function with conditions.
*
- * @param name the name of the g(_, _) function, can be "g", "g2", ..
+ * @param name the name of the g(_, _) function, can be "g", "g2", ..
* @param condRm the conditional role manager used by the function.
* @return the function.
*/
@@ -497,6 +501,9 @@ public static boolean eval(String eval, Map env, AviatorEvaluato
/**
* timeMatchFunc is the wrapper for TimeMatch.
+ *
+ * @param args the arguments for the time match function.
+ * @return whether the time matches the pattern.
*/
public static boolean timeMatchFunc(String... args) {
try {
@@ -511,6 +518,10 @@ public static boolean timeMatchFunc(String... args) {
/**
* TimeMatch determines whether the current time is between startTime and endTime.
* You can use "_" to indicate that the parameter is ignored
+ *
+ * @param startTime the start time as a string in the format "yyyy-MM-dd HH:mm:ss". Use "_" to ignore the start time.
+ * @param endTime the end time as a string in the format "yyyy-MM-dd HH:mm:ss". Use "_" to ignore the end time.
+ * @return whether the current time is between startTime and endTime
*/
public static boolean timeMatch(String startTime, String endTime) {
LocalDateTime now = LocalDateTime.now();
diff --git a/src/main/java/org/casbin/jcasbin/util/EnforceContext.java b/src/main/java/org/casbin/jcasbin/util/EnforceContext.java
index a07525b1..3d9849ea 100644
--- a/src/main/java/org/casbin/jcasbin/util/EnforceContext.java
+++ b/src/main/java/org/casbin/jcasbin/util/EnforceContext.java
@@ -14,9 +14,9 @@
package org.casbin.jcasbin.util;
/**
+ * EnforceContext is used as the first element of the parameter "rvals" in method "enforce"
* @author Yixiang Zhao (@seriouszyx)
- * @description EnforceContext is used as the first element of the parameter "rvals" in method "enforce"
- * @date 2021-11-30 18:56
+ * 2021-11-30 18:56
**/
public class EnforceContext {
diff --git a/src/main/java/org/casbin/jcasbin/util/Util.java b/src/main/java/org/casbin/jcasbin/util/Util.java
index d27923b5..4077ee18 100644
--- a/src/main/java/org/casbin/jcasbin/util/Util.java
+++ b/src/main/java/org/casbin/jcasbin/util/Util.java
@@ -336,8 +336,8 @@ private static MessageDigest getDigest(String algorithm) {
/**
* Helper method to check if a string is a valid JSON
*
- * @param str
- * @return boolean
+ * @param str the string to be checked.
+ * @return whether the string is a valid
*/
public static boolean isJsonString(String str) {
try {
diff --git a/src/main/java/org/casbin/jcasbin/util/function/KeyMatch5Func.java b/src/main/java/org/casbin/jcasbin/util/function/KeyMatch5Func.java
index b0ece900..6f37f006 100644
--- a/src/main/java/org/casbin/jcasbin/util/function/KeyMatch5Func.java
+++ b/src/main/java/org/casbin/jcasbin/util/function/KeyMatch5Func.java
@@ -22,9 +22,9 @@
import java.util.Map;
/**
+ * KeyMatch5Func is the wrapper for KeyMatch5.
* @author Yixiang Zhao (@seriouszyx)
- * @description KeyMatch5Func is the wrapper for KeyMatch5.
- * @date 2021-11-13 20:32
+ * 2021-11-13 20:32
**/
public class KeyMatch5Func extends AbstractFunction {