WW-4045 Reduces code duplication as FileManager can handle nulls

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1483700 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Lukasz Lenart
2013-05-17 09:00:09 +00:00
parent 8d2c5ce474
commit 57ee122ab8
@@ -335,7 +335,7 @@ public class DefaultActionValidatorManager implements ActionValidatorManager {
private List<ValidatorConfig> loadFile(String fileName, Class clazz, boolean checkFile) {
List<ValidatorConfig> retList = Collections.emptyList();
URL fileUrl = ClassLoaderUtil.getResource(fileName, clazz);
if ((checkFile && fileUrl != null && fileManager.fileNeedsReloading(fileUrl.toString())) || !validatorFileCache.containsKey(fileName)) {
if ((checkFile && fileManager.fileNeedsReloading(fileUrl)) || !validatorFileCache.containsKey(fileName)) {
InputStream is = null;
try {