@@ -29,9 +29,9 @@ public class AtomContext<T extends AtomBaseParam> {
2929
3030 private final AtomResult result ;
3131
32- private final static String ATOM_FILE_ENCODING = "UTF-8" ;
32+ private static final String ATOM_FILE_ENCODING = "UTF-8" ;
3333
34- private final static Logger logger = LoggerFactory .getLogger (AtomContext .class );
34+ private static final Logger logger = LoggerFactory .getLogger (AtomContext .class );
3535
3636 /**
3737 * 插件定义的参数类
@@ -70,14 +70,15 @@ public T getParam() {
7070
7171 /**
7272 * 获取敏感信息参数
73+ *
7374 * @param filedName 字段名
7475 * @return 敏感信息参数
7576 */
76- public String getSensitiveConfParam (String filedName ){
77- Map <String ,String > bkSensitiveConfInfo = param .getBkSensitiveConfInfo ();
78- if (null != bkSensitiveConfInfo ){
77+ public String getSensitiveConfParam (String filedName ) {
78+ Map <String , String > bkSensitiveConfInfo = param .getBkSensitiveConfInfo ();
79+ if (null != bkSensitiveConfInfo ) {
7980 return bkSensitiveConfInfo .get (filedName );
80- }else {
81+ } else {
8182 return null ;
8283 }
8384 }
@@ -96,9 +97,10 @@ private T readParam(Class<T> paramClazz) throws IOException {
9697 return JsonUtil .fromJson (json , paramClazz );
9798 }
9899
99- public Map <String ,Object > getAllParameters () throws IOException {
100+ public Map <String , Object > getAllParameters () throws IOException {
100101 String json = FileUtils .readFileToString (new File (dataDir + "/" + inputFile ), ATOM_FILE_ENCODING );
101- return JsonUtil .fromJson (json , new TypeReference <Map <String , Object >>(){});
102+ return JsonUtil .fromJson (json , new TypeReference <Map <String , Object >>() {
103+ });
102104 }
103105
104106 void persistent () throws IOException {
0 commit comments