Browse Source

不ignored异常

feature/big-screen
alex.sung 5 years ago
parent
commit
ac63ec1c6e
  1. 7
      designer-base/src/main/java/com/fr/design/gui/itree/filetree/FileNodeConstants.java

7
designer-base/src/main/java/com/fr/design/gui/itree/filetree/FileNodeConstants.java

@ -55,14 +55,12 @@ public class FileNodeConstants {
private static void initSupportedTypes() { private static void initSupportedTypes() {
try { try {
rwl.writeLock().lock(); rwl.writeLock().lock();
supportFileType = new ArrayList<String>(Arrays.asList(FRContext.getFileNodes().getSupportedTypes())); supportFileType = new ArrayList<>(Arrays.asList(FRContext.getFileNodes().getSupportedTypes()));
//通过插件扩展的 //通过插件扩展的
Set<App> apps = ExtraDesignClassManager.getInstance().getArray(App.MARK_STRING); Set<App> apps = ExtraDesignClassManager.getInstance().getArray(App.MARK_STRING);
for (App app : apps) { for (App app : apps) {
addAppExtensions(app.defaultExtensions()); addAppExtensions(app.defaultExtensions());
} }
} catch (Exception ignored) {
//ignored
} finally { } finally {
rwl.writeLock().unlock(); rwl.writeLock().unlock();
} }
@ -72,11 +70,8 @@ public class FileNodeConstants {
try { try {
rwl.readLock().lock(); rwl.readLock().lock();
return supportFileType.toArray(new String[0]); return supportFileType.toArray(new String[0]);
} catch (Exception ignored) {
//ignored
} finally { } finally {
rwl.readLock().unlock(); rwl.readLock().unlock();
} }
return null;
} }
} }

Loading…
Cancel
Save