MCPcopy Index your code
hub / github.com/f0ng/autoDecoder / deleteArrayNull

Method deleteArrayNull

src/burp/IndexautoDecoder.java:2124–2144  ·  view source on GitHub ↗
(String[] string)

Source from the content-addressed store, hash-verified

2122
2123 // 删除数组里为null的值
2124 public static String[] deleteArrayNull(String[] string) {
2125 String[] array = string;
2126
2127 List<String> list = new ArrayList<>(array.length);
2128
2129 try {
2130 for (String str : array) {
2131 list.add(str.trim());
2132 }
2133 } catch (NullPointerException e) {
2134 ;
2135 }
2136 // 删除空的值
2137 while (list.remove(null)) ;
2138 while (list.remove("")) ;
2139
2140 // 将list 转换成数组
2141 String[] list2 = list.toArray(new String[list.size()]);
2142 // 返回删除空值后的数组
2143 return list2;
2144 }
2145
2146// // 初始化,加载文件配置,入参为文件
2147// public static void Init(File selectedFile){

Callers 2

getDecodeParamsMethod · 0.95
getRespDecodeParamsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected