Files
mdm/src/main/java/com/midm/app/converter/UserAgentConverter.java
T
rick 10aa1829f5 fix: repair decompiled sources and add exhaustive documentation
- restore generic signatures, scoped variables and missing code from original bytecode
- remove decompiler artifacts and document classes, methods, fields and packages
- restore resources, add Batik/BouncyCastle dependencies and build/runtime docs
2026-11-16 17:28:23 +08:00

31 lines
838 B
Java
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package com.midm.app.converter;
import com.mitac.cell.internet.http.UserAgent;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;
/**
* 【Spring 组件】{@code UserAgentConverter}
*
* 类职责:
* <ul>
* <li>作为 Spring 组件参与依赖注入或生命周期回调。</li>
* </ul>
*
* 学习提示:先看类注释和 public 方法,再结合调用方理解它在整体流程中的位置。
*/
@Component
public class UserAgentConverter implements Converter<String, UserAgent> {
/**
* 处理转换。
*
* 实现要点:主要调用:new UserAgent。
*
* @param source 参数 {@code source}({@code String})
* @return 处理结果
*/
public UserAgent convert(String source) {
return new UserAgent(source);
}
}