Javadocs and unit tests, God help me.

This commit is contained in:
akwizgran
2011-06-27 13:01:31 +01:00
parent d193f23e4c
commit 5281113f24
34 changed files with 169 additions and 54 deletions

View File

@@ -58,13 +58,6 @@ public class FontManagerImpl implements FontManager {
return Font.getFont(attr);
}
public String[] getBundledFontFilenames() {
String[] names = new String[BUNDLED_FONTS.length];
for(int i = 0; i < BUNDLED_FONTS.length; i++)
names[i] = BUNDLED_FONTS[i].filename;
return names;
}
public Font getFontForLanguage(String language) {
assert defaultFont != null;
Font font = fonts.get(language);

View File

@@ -94,8 +94,7 @@ class InvitationWorker implements Runnable {
}
private void copyInstaller(File dest) throws IOException {
File root = FileUtils.getBriarDirectory();
File src = new File(root, "Data/setup.dat");
File src = parameters.getSetupDat();
if(!src.exists() || !src.isFile())
throw new IOException("File not found: " + src.getPath());
callback.copyingFile(dest);