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

…lines 1–332 unchanged (332 lines)
333 * @throws NullPointerException
334 * Thrown if {@link Charsets#ISO_8859_1} is not initialized, which should never happen since it is
335 * required by the Java platform specification.
336 * @since As of 1.7, throws {@link NullPointerException} instead of UnsupportedEncodingException
337 */
338 public static String newStringIso8859_1(final byte[] bytes) {
339 return new String(bytes, Charsets.ISO_8859_1);
340 }
341
342 /**
343 * Constructs a new <code>String</code> by decoding the specified array of bytes using the US-ASCII charset.
344 *
345 * @param bytes
…lines 346–423 unchanged (78 lines)

After

…lines 1–332 unchanged (332 lines)
333 * @throws NullPointerException
334 * Thrown if {@link Charsets#ISO_8859_1} is not initialized, which should never happen since it is
335 * required by the Java platform specification.
336 * @since As of 1.7, throws {@link NullPointerException} instead of UnsupportedEncodingException
337 */
338 public static String newStringIso8859_1(final byte[] bytes) {
339 return newString(bytes, Charsets.ISO_8859_1);
340 }
341
342 /**
343 * Constructs a new <code>String</code> by decoding the specified array of bytes using the US-ASCII charset.
344 *
345 * @param bytes
…lines 346–423 unchanged (78 lines)

Before

program
block_comment "/*\n * Licensed to the Apache Software Foundation (ASF) under"...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "codec"
. "."
identifier "binary"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "UnsupportedEncodingException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "nio"
. "."
identifier "ByteBuffer"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "nio"
. "."
identifier "charset"
. "."
identifier "Charset"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "codec"
. "."
identifier "CharEncoding"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "codec"
. "."
identifier "Charsets"
; ";"
block_comment "/**\n * Converts String to and from bytes using the encodings"...
class_declaration
modifiers
public "public"
class "class"
identifier "StringUtils"
class_body
{ "{"
block_comment "/**\n * <p>\n * Compares two CharSequences, returning "...
method_declaration (+132 nodes collapsed)
block_comment "/**\n * Calls {@link String#getBytes(Charset)}\n *\n "...
method_declaration (+55 nodes collapsed)
block_comment "/**\n * Calls {@link String#getBytes(Charset)}\n *\n "...
method_declaration (+57 nodes collapsed)
block_comment "/**\n * Encodes the given string into a byte buffer using"...
method_declaration (+31 nodes collapsed)
block_comment "/**\n * Encodes the given string into a sequence of bytes"...
method_declaration (+36 nodes collapsed)
block_comment "/**\n * Encodes the given string into a sequence of bytes"...
method_declaration (+86 nodes collapsed)
block_comment "/**\n * Encodes the given string into a sequence of bytes"...
method_declaration (+36 nodes collapsed)
block_comment "/**\n * Encodes the given string into a sequence of bytes"...
method_declaration (+36 nodes collapsed)
block_comment "/**\n * Encodes the given string into a sequence of bytes"...
method_declaration (+36 nodes collapsed)
block_comment "/**\n * Encodes the given string into a sequence of bytes"...
method_declaration (+36 nodes collapsed)
block_comment "/**\n * Encodes the given string into a sequence of bytes"...
method_declaration (+36 nodes collapsed)
method_declaration (+42 nodes collapsed)
block_comment "/**\n * Constructs a new <code>String</code> by decoding "...
method_declaration (+48 nodes collapsed)
block_comment "/**\n * Constructs a new <code>String</code> by decoding "...
method_declaration (+87 nodes collapsed)
block_comment "/**\n * Constructs a new <code>String</code> by decoding "...
method_declaration
modifiers
public "public"
static "static"
type_identifier "String"
identifier "newStringIso8859_1"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
array_type
integral_type
byte "byte"
dimensions
[ "["
] "]"
identifier "bytes"
) ")"
block
{ "{"
return_statement
return "return"
object_creation_expression
new "new"
type_identifier "String"
argument_list
( "("
identifier "bytes"
, ","
field_access
identifier "Charsets"
. "."
identifier "ISO_8859_1"
) ")"
; ";"
} "}"
block_comment "/**\n * Constructs a new <code>String</code> by decoding "...
method_declaration (+36 nodes collapsed)
block_comment "/**\n * Constructs a new <code>String</code> by decoding "...
method_declaration (+36 nodes collapsed)
block_comment "/**\n * Constructs a new <code>String</code> by decoding "...
method_declaration (+36 nodes collapsed)
block_comment "/**\n * Constructs a new <code>String</code> by decoding "...
method_declaration (+36 nodes collapsed)
block_comment "/**\n * Constructs a new <code>String</code> by decoding "...
method_declaration (+36 nodes collapsed)
} "}"

After

program
block_comment "/*\n * Licensed to the Apache Software Foundation (ASF) under"...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "codec"
. "."
identifier "binary"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "UnsupportedEncodingException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "nio"
. "."
identifier "ByteBuffer"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "nio"
. "."
identifier "charset"
. "."
identifier "Charset"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "codec"
. "."
identifier "CharEncoding"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "codec"
. "."
identifier "Charsets"
; ";"
block_comment "/**\n * Converts String to and from bytes using the encodings"...
class_declaration
modifiers
public "public"
class "class"
identifier "StringUtils"
class_body
{ "{"
block_comment "/**\n * <p>\n * Compares two CharSequences, returning "...
method_declaration (+132 nodes collapsed)
block_comment "/**\n * Calls {@link String#getBytes(Charset)}\n *\n "...
method_declaration (+55 nodes collapsed)
block_comment "/**\n * Calls {@link String#getBytes(Charset)}\n *\n "...
method_declaration (+57 nodes collapsed)
block_comment "/**\n * Encodes the given string into a byte buffer using"...
method_declaration (+31 nodes collapsed)
block_comment "/**\n * Encodes the given string into a sequence of bytes"...
method_declaration (+36 nodes collapsed)
block_comment "/**\n * Encodes the given string into a sequence of bytes"...
method_declaration (+86 nodes collapsed)
block_comment "/**\n * Encodes the given string into a sequence of bytes"...
method_declaration (+36 nodes collapsed)
block_comment "/**\n * Encodes the given string into a sequence of bytes"...
method_declaration (+36 nodes collapsed)
block_comment "/**\n * Encodes the given string into a sequence of bytes"...
method_declaration (+36 nodes collapsed)
block_comment "/**\n * Encodes the given string into a sequence of bytes"...
method_declaration (+36 nodes collapsed)
block_comment "/**\n * Encodes the given string into a sequence of bytes"...
method_declaration (+36 nodes collapsed)
method_declaration (+42 nodes collapsed)
block_comment "/**\n * Constructs a new <code>String</code> by decoding "...
method_declaration (+48 nodes collapsed)
block_comment "/**\n * Constructs a new <code>String</code> by decoding "...
method_declaration (+87 nodes collapsed)
block_comment "/**\n * Constructs a new <code>String</code> by decoding "...
method_declaration
modifiers
public "public"
static "static"
type_identifier "String"
identifier "newStringIso8859_1"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
array_type
integral_type
byte "byte"
dimensions
[ "["
] "]"
identifier "bytes"
) ")"
block
{ "{"
return_statement
return "return"
method_invocation
identifier "newString"
argument_list
( "("
identifier "bytes"
, ","
field_access
identifier "Charsets"
. "."
identifier "ISO_8859_1"
) ")"
; ";"
} "}"
block_comment "/**\n * Constructs a new <code>String</code> by decoding "...
method_declaration (+36 nodes collapsed)
block_comment "/**\n * Constructs a new <code>String</code> by decoding "...
method_declaration (+36 nodes collapsed)
block_comment "/**\n * Constructs a new <code>String</code> by decoding "...
method_declaration (+36 nodes collapsed)
block_comment "/**\n * Constructs a new <code>String</code> by decoding "...
method_declaration (+36 nodes collapsed)
block_comment "/**\n * Constructs a new <code>String</code> by decoding "...
method_declaration (+36 nodes collapsed)
} "}"