@@ -1,7 +1,7 @@
|
||||
package com.imyeyu.compress;
|
||||
|
||||
import com.imyeyu.java.bean.ActionException;
|
||||
import com.imyeyu.java.bean.CallbackArg;
|
||||
import com.imyeyu.java.bean.timi.TimiException;
|
||||
import com.imyeyu.utils.OS;
|
||||
|
||||
import java.io.File;
|
||||
@@ -274,12 +274,12 @@ public abstract class AbstractRunner<T extends AbstractRunner<T>> implements OS.
|
||||
* @return 规范化后的名称
|
||||
*/
|
||||
protected String normalizeEntryName(String entryName) {
|
||||
TimiException.required(entryName, "not found entryName");
|
||||
ActionException.required(entryName, "not found entryName");
|
||||
String normalized = entryName.replace('\\', '/');
|
||||
while (normalized.startsWith("/")) {
|
||||
normalized = normalized.substring(1);
|
||||
}
|
||||
TimiException.required(normalized, "not found normalized entryName");
|
||||
ActionException.required(normalized, "not found normalized entryName");
|
||||
return normalized;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user