8380790: trivial formatting cleanup

This commit is contained in:
jeremy 2026-04-26 01:56:06 -04:00
parent 0876ee8c6e
commit 85114da43a

View File

@ -44,7 +44,7 @@ public class GetAccessibleTextAddsDocumentListeners {
getMethod(args[0]).invoke(null);
}
public static void testOriginalComplaint() {
public static void testOriginalComplaint() throws Exception {
JTextPane textPane = new JTextPane();
textPane.setContentType("text/html");
for (int a = 0; a < 10_000; a++) {
@ -52,7 +52,7 @@ public class GetAccessibleTextAddsDocumentListeners {
}
HTMLDocument doc = (HTMLDocument) textPane.getDocument();
if (doc.getDocumentListeners().length > 1000) {
throw new Error("too many DocumentListeners");
throw new Exception("too many DocumentListeners");
}
}