From ac63ec1c6e8fe573b0eaae38d6e7bc710083b673 Mon Sep 17 00:00:00 2001 From: "alex.sung" Date: Mon, 29 Jul 2019 20:33:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8Dignored=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fr/design/gui/itree/filetree/FileNodeConstants.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/gui/itree/filetree/FileNodeConstants.java b/designer-base/src/main/java/com/fr/design/gui/itree/filetree/FileNodeConstants.java index 88a463440..8c5f0e154 100644 --- a/designer-base/src/main/java/com/fr/design/gui/itree/filetree/FileNodeConstants.java +++ b/designer-base/src/main/java/com/fr/design/gui/itree/filetree/FileNodeConstants.java @@ -55,14 +55,12 @@ public class FileNodeConstants { private static void initSupportedTypes() { try { rwl.writeLock().lock(); - supportFileType = new ArrayList(Arrays.asList(FRContext.getFileNodes().getSupportedTypes())); + supportFileType = new ArrayList<>(Arrays.asList(FRContext.getFileNodes().getSupportedTypes())); //通过插件扩展的 Set apps = ExtraDesignClassManager.getInstance().getArray(App.MARK_STRING); for (App app : apps) { addAppExtensions(app.defaultExtensions()); } - } catch (Exception ignored) { - //ignored } finally { rwl.writeLock().unlock(); } @@ -72,11 +70,8 @@ public class FileNodeConstants { try { rwl.readLock().lock(); return supportFileType.toArray(new String[0]); - } catch (Exception ignored) { - //ignored } finally { rwl.readLock().unlock(); } - return null; } }