summaryrefslogtreecommitdiff
path: root/base/src/bjc/dicelang/util/ResourceLoader.java
diff options
context:
space:
mode:
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());
}