summaryrefslogtreecommitdiff
path: root/base/src/bjc/dicelang/util/ResourceLoader.java
diff options
context:
space:
mode:
authorbjculkin <bjculkin@mix.wvu.edu>2018-03-01 19:13:48 -0500
committerbjculkin <bjculkin@mix.wvu.edu>2018-03-01 19:13:48 -0500
commitf9d9bd4bbf7dd6a297e1daf5ee7b4263d706d9cd (patch)
tree75ade2ca798bcdbdd7daf867480378299598581a /base/src/bjc/dicelang/util/ResourceLoader.java
parentb14a399d05fc90d8532cd08d1546e6bf197db10e (diff)
Update
Diffstat (limited to 'base/src/bjc/dicelang/util/ResourceLoader.java')
-rw-r--r--base/src/bjc/dicelang/util/ResourceLoader.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/base/src/bjc/dicelang/util/ResourceLoader.java b/base/src/bjc/dicelang/util/ResourceLoader.java
index 085081f..6777443 100644
--- a/base/src/bjc/dicelang/util/ResourceLoader.java
+++ b/base/src/bjc/dicelang/util/ResourceLoader.java
@@ -22,9 +22,10 @@ public class ResourceLoader {
* Loads a .help file from the data/help directory.
*
* @param name
- * The name of the help file to load.
+ * The name of the help file to load.
*
- * @return The contents of the help file, or null if it could not be opened.
+ * @return The contents of the help file, or null if it could not be
+ * opened.
*/
public static String[] loadHelpFile(final String name) {
final URL fle = ResourceLoader.class.getResource("/data/help/" + name + ".help");
@@ -33,7 +34,7 @@ public class ResourceLoader {
Path pth = Paths.get(fle.toURI());
return Files.lines(pth).toArray(sze -> new String[sze]);
- } catch (IOException | URISyntaxException ioex) {
+ } catch(IOException | URISyntaxException ioex) {
Errors.inst.printError(EK_MISC_IOEX, fle.toString());
}