add comprehensive javadoc comments for all classes
- Add class-level documentation for all mapper and multilingual classes - Add complete javadoc for all public methods with @param and @return tags - Add field-level comments for better code readability - Improve documentation for initialization blocks and constructors Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -9,10 +9,13 @@ import java.io.InputStreamReader;
|
||||
import java.util.Properties;
|
||||
|
||||
/**
|
||||
* 资源文件语言映射
|
||||
*
|
||||
* @author 夜雨
|
||||
* @version 2024-04-09 00:55
|
||||
*/
|
||||
public class ResourcesLanguageMap extends PropertiesLanguageMap {
|
||||
|
||||
/**
|
||||
* 默认构造
|
||||
*
|
||||
@@ -22,6 +25,11 @@ public class ResourcesLanguageMap extends PropertiesLanguageMap {
|
||||
super(language);
|
||||
}
|
||||
|
||||
/**
|
||||
* 加载资源文件,格式化 % 为 {@link Language.Enum#toString()},示例:lang/app_%s.lang
|
||||
*
|
||||
* @param path 路径
|
||||
*/
|
||||
public void load(String path) {
|
||||
try {
|
||||
InputStream is = IO.resourceToInputStream(getClass(), path.formatted(language.toString()));
|
||||
|
||||
Reference in New Issue
Block a user