As I told you in my last thread, in some situations walkmod (or the eclipse's formatter ^^) doesn't replace tabs by spaces and it replaces spaces by tabs.
I have modified the test to show you the problem:
@Test
public void testSpacesInsteadOfTabs() throws Exception {
EclipseWriter ew = new EclipseWriter();
VisitorContext ctx = new VisitorContext();
File outputDir = new File("src/test/output");
outputDir.mkdirs();
File output = new File(outputDir, "Foo.java");
ctx.put(AbstractWalker.ORIGINAL_FILE_KEY, output);
ew.write("\t public class Foo {\n\t\tint a = 0;\n int b = 0;}", ctx);
ew.close();
String code = FileUtil.readEntirely(output);
output.delete();
outputDir.delete();
Assert.assertFalse(code.contains("\t"));
}
Maybe I'm not understanding the behavior and it's not a problem.
Thanks,