X-Git-Url: https://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2FI18nManager.java;h=80be52b44f60aa795dbe80039f279334baae7a69;hp=87d1df4997c1ab78f5eb0ac4d0ac7dc95552c5c0;hb=54b9d8bc8f0025ccf97a67d9dd217ef1f9cf082f;hpb=52bf9e8686c916be37a26a0b75340393d4478b05 diff --git a/tim/prune/I18nManager.java b/tim/prune/I18nManager.java index 87d1df4..80be52b 100644 --- a/tim/prune/I18nManager.java +++ b/tim/prune/I18nManager.java @@ -53,13 +53,18 @@ public abstract class I18nManager */ public static void addLanguageFile(String inFilename) { + FileInputStream fis = null; try { File file = new File(inFilename); ExternalPropsFile = new Properties(); - ExternalPropsFile.load(new FileInputStream(file)); + fis = new FileInputStream(file); + ExternalPropsFile.load(fis); } catch (IOException ioe) {} + finally { try { fis.close(); + } catch (Exception e) {} + } }