minor changes found will trying to debug why the tests

are failing.
This commit is contained in:
Oliver Burn 2002-12-08 03:18:25 +00:00
parent 4c653936fa
commit 3215661e63
2 changed files with 13 additions and 11 deletions

View File

@ -237,20 +237,20 @@ public class TranslationCheck extends AbstractFileSetCheck
*/
private void checkPropertyFileSets(Map aPropFiles)
{
Set keySet = aPropFiles.keySet();
final Set keySet = aPropFiles.keySet();
for (Iterator iterator = keySet.iterator(); iterator.hasNext();) {
String baseName = (String) iterator.next();
Set files = (Set) aPropFiles.get(baseName);
final String baseName = (String) iterator.next();
final Set files = (Set) aPropFiles.get(baseName);
if (files.size() >= 2) {
// build a map from files to the keys they contain
Set keys = new HashSet();
Map fileMap = new HashMap();
final Set keys = new HashSet();
final Map fileMap = new HashMap();
for (Iterator iter = files.iterator(); iter.hasNext();) {
File file = (File) iter.next();
Set fileKeys = loadKeys(file);
final File file = (File) iter.next();
final Set fileKeys = loadKeys(file);
keys.addAll(fileKeys);
fileMap.put(file, fileKeys);
}
@ -273,8 +273,8 @@ public class TranslationCheck extends AbstractFileSetCheck
*/
public void process(File[] aFiles)
{
Set dirs = getParentDirs(aFiles);
Set propertyFiles = getPropertyFiles(dirs);
final Set dirs = getParentDirs(aFiles);
final Set propertyFiles = getPropertyFiles(dirs);
final Map propFilesMap = arrangePropertyFiles(propertyFiles);
checkPropertyFileSets(propFilesMap);
}

View File

@ -80,8 +80,10 @@ public abstract class BaseCheckTestCase
verify(aC, aFileName, aFileName, aExpected);
}
protected void verify(Checker aC, String aProcessedFilename,
String aMessageFileName, String[] aExpected)
protected void verify(Checker aC,
String aProcessedFilename,
String aMessageFileName,
String[] aExpected)
throws Exception
{
mStream.flush();