// There are no empty blocks in the original text. // C will be given a default constructor "C() { super(); }" which // does not have any empty blocks. // The bug is that spurious semicolons in the class defn are parsed // into redundant empty blocks in the tree, so verify there are // no empty blocks in the -printsource output
if (canon.contains("{ }")) thrownew AssertionError("unexpected empty block found");
}
String readFile(File f) throws IOException { int len = (int) f.length(); byte[] data = newbyte[len];
DataInputStream in = new DataInputStream(new FileInputStream(f)); try {
in.readFully(data); returnnew String(data);
} finally {
in.close();
}
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.