Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

1package org.jsoup;
2
3import java.io.IOException;
4
5public class UncheckedIOException extends RuntimeException {
6 public UncheckedIOException(IOException cause) {
7 super(cause);
8 }
9
10
11 public IOException ioException() {
12 return (IOException) getCause();
13 }
14}
15

After

1package org.jsoup;
2
3import java.io.IOException;
4
5public class UncheckedIOException extends RuntimeException {
6 public UncheckedIOException(IOException cause) {
7 super(cause);
8 }
9
10 public UncheckedIOException(String message) {
11 super(new IOException(message));
12 }
13
14 public IOException ioException() {
15 return (IOException) getCause();
16 }
17}
18

Before

program
package_declaration
package "package"
scoped_identifier
identifier "org"
. "."
identifier "jsoup"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "IOException"
; ";"
class_declaration
modifiers
public "public"
class "class"
identifier "UncheckedIOException"
superclass
extends "extends"
type_identifier "RuntimeException"
class_body
{ "{"
constructor_declaration
modifiers
public "public"
identifier "UncheckedIOException"
formal_parameters
( "("
formal_parameter
type_identifier "IOException"
identifier "cause"
) ")"
constructor_body
{ "{"
explicit_constructor_invocation
super "super"
argument_list
( "("
identifier "cause"
) ")"
; ";"
} "}"
method_declaration (+23 nodes collapsed)
} "}"

After

program
package_declaration
package "package"
scoped_identifier
identifier "org"
. "."
identifier "jsoup"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "IOException"
; ";"
class_declaration
modifiers
public "public"
class "class"
identifier "UncheckedIOException"
superclass
extends "extends"
type_identifier "RuntimeException"
class_body
{ "{"
constructor_declaration
modifiers
public "public"
identifier "UncheckedIOException"
formal_parameters
( "("
formal_parameter
type_identifier "IOException"
identifier "cause"
) ")"
constructor_body
{ "{"
explicit_constructor_invocation
super "super"
argument_list
( "("
identifier "cause"
) ")"
; ";"
} "}"
constructor_declaration
modifiers
public "public"
identifier "UncheckedIOException"
formal_parameters
( "("
formal_parameter
type_identifier "String"
identifier "message"
) ")"
constructor_body
{ "{"
explicit_constructor_invocation
super "super"
argument_list
( "("
object_creation_expression
new "new"
type_identifier "IOException"
argument_list
( "("
identifier "message"
) ")"
) ")"
; ";"
} "}"
method_declaration (+23 nodes collapsed)
} "}"