Author: dgolovin
Date: 2008-07-03 20:40:37 -0400 (Thu, 03 Jul 2008)
New Revision: 9064
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateFileList.java
Log:
Fix PMD Violations in code
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateFileList.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateFileList.java 2008-07-04
00:24:56 UTC (rev 9063)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateFileList.java 2008-07-04
00:40:37 UTC (rev 9064)
@@ -10,6 +10,7 @@
******************************************************************************/
package org.jboss.tools.vpe.editor.template;
+import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
@@ -100,7 +101,7 @@
return templateList;
}
- static IPath getFilePath(String name, IConfigurationElement confElement) throws
Exception {
+ static IPath getFilePath(String name, IConfigurationElement confElement) throws
IOException {
VpePlugin plugin = VpePlugin.getDefault();
Bundle bundle =
confElement==null?plugin.getBundle():Platform.getBundle(confElement.getContributor().getName());
@@ -110,7 +111,7 @@
return path;
}
- static String getAutoTemplateFileName() throws Exception {
+ static String getAutoTemplateFileName() throws IOException {
IPath path = getFilePath(VpeTemplateManager.AUTO_TEMPLATES_FILE_NAME, null);
return path.toOSString();
}