mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
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:
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user