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–26 unchanged (26 lines)
27
28/**
29 * Deflate decompressor.
30 * @since 1.9
31 */
32public class DeflateCompressorInputStream extends CompressorInputStream {
33
34 private final InputStream in;
35
36 /**
37 * Creates a new input stream that decompresses Deflate-compressed data
38 * from the specified input stream.
39 *
…lines 40–99 unchanged (60 lines)
100 * the number of bytes to check
101 * @return true, if this stream is zlib / deflate compressed with a header
102 * stream, false otherwise
103 *
104 * @since 1.9
105 */
106}
107

After

…lines 1–26 unchanged (26 lines)
27
28/**
29 * Deflate decompressor.
30 * @since 1.9
31 */
32public class DeflateCompressorInputStream extends CompressorInputStream {
33 private static final int MAGIC_1 = 0x78;
34 private static final int MAGIC_2a = 0x01;
35 private static final int MAGIC_2b = 0x5e;
36 private static final int MAGIC_2c = 0x9c;
37 private static final int MAGIC_2d = 0xda;
38
39 private final InputStream in;
40
41 /**
42 * Creates a new input stream that decompresses Deflate-compressed data
43 * from the specified input stream.
…lines 44–104 unchanged (61 lines)
105 * the number of bytes to check
106 * @return true, if this stream is zlib / deflate compressed with a header
107 * stream, false otherwise
108 *
109 * @since 1.9
110 */
111 public static boolean matches(byte[] signature, int length) {
112 return length > 3 && signature[0] == MAGIC_1 && (
113 signature[1] == (byte) MAGIC_2a ||
114 signature[1] == (byte) MAGIC_2b ||
115 signature[1] == (byte) MAGIC_2c ||
116 signature[1] == (byte) MAGIC_2d);
117 }
118}
119

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
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "compress"
. "."
identifier "compressors"
. "."
identifier "deflate"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "IOException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "InputStream"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "zip"
. "."
identifier "Inflater"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "zip"
. "."
identifier "InflaterInputStream"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "compress"
. "."
identifier "compressors"
. "."
identifier "CompressorInputStream"
; ";"
block_comment "/**\n * Deflate decompressor.\n * @since 1.9\n */"
class_declaration
modifiers
public "public"
class "class"
identifier "DeflateCompressorInputStream"
superclass
extends "extends"
type_identifier "CompressorInputStream"
class_body
{ "{"
field_declaration
modifiers
private "private"
final "final"
type_identifier "InputStream"
variable_declarator
identifier "in"
; ";"
block_comment "/**\n * Creates a new input stream that decompresses Defl"...
constructor_declaration (+27 nodes collapsed)
block_comment "/**\n * Creates a new input stream that decompresses Defl"...
constructor_declaration (+45 nodes collapsed)
block_comment "/** {@inheritDoc} */"
method_declaration (+54 nodes collapsed)
block_comment "/** {@inheritDoc} */"
method_declaration (+67 nodes collapsed)
block_comment "/** {@inheritDoc} */"
method_declaration (+33 nodes collapsed)
block_comment "/** {@inheritDoc} */"
method_declaration (+28 nodes collapsed)
block_comment "/** {@inheritDoc} */"
method_declaration (+26 nodes collapsed)
block_comment "/**\n * Checks if the signature matches what is expected "...
} "}"

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
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "compress"
. "."
identifier "compressors"
. "."
identifier "deflate"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "IOException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "InputStream"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "zip"
. "."
identifier "Inflater"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "zip"
. "."
identifier "InflaterInputStream"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "compress"
. "."
identifier "compressors"
. "."
identifier "CompressorInputStream"
; ";"
block_comment "/**\n * Deflate decompressor.\n * @since 1.9\n */"
class_declaration
modifiers
public "public"
class "class"
identifier "DeflateCompressorInputStream"
superclass
extends "extends"
type_identifier "CompressorInputStream"
class_body
{ "{"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "MAGIC_1"
= "="
hex_integer_literal "0x78"
; ";"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "MAGIC_2a"
= "="
hex_integer_literal "0x01"
; ";"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "MAGIC_2b"
= "="
hex_integer_literal "0x5e"
; ";"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "MAGIC_2c"
= "="
hex_integer_literal "0x9c"
; ";"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "MAGIC_2d"
= "="
hex_integer_literal "0xda"
; ";"
field_declaration
modifiers
private "private"
final "final"
type_identifier "InputStream"
variable_declarator
identifier "in"
; ";"
block_comment "/**\n * Creates a new input stream that decompresses Defl"...
constructor_declaration (+27 nodes collapsed)
block_comment "/**\n * Creates a new input stream that decompresses Defl"...
constructor_declaration (+45 nodes collapsed)
block_comment "/** {@inheritDoc} */"
method_declaration (+54 nodes collapsed)
block_comment "/** {@inheritDoc} */"
method_declaration (+67 nodes collapsed)
block_comment "/** {@inheritDoc} */"
method_declaration (+33 nodes collapsed)
block_comment "/** {@inheritDoc} */"
method_declaration (+28 nodes collapsed)
block_comment "/** {@inheritDoc} */"
method_declaration (+26 nodes collapsed)
block_comment "/**\n * Checks if the signature matches what is expected "...
method_declaration
modifiers
public "public"
static "static"
boolean_type "boolean"
identifier "matches"
formal_parameters
( "("
formal_parameter
array_type
integral_type
byte "byte"
dimensions
[ "["
] "]"
identifier "signature"
, ","
formal_parameter
integral_type
int "int"
identifier "length"
) ")"
block
{ "{"
return_statement
return "return"
binary_expression
binary_expression
binary_expression
identifier "length"
> ">"
decimal_integer_literal "3"
&& "&&"
binary_expression
array_access
identifier "signature"
[ "["
decimal_integer_literal "0"
] "]"
== "=="
identifier "MAGIC_1"
&& "&&"
parenthesized_expression
( "("
binary_expression
binary_expression
binary_expression
binary_expression
array_access
identifier "signature"
[ "["
decimal_integer_literal "1"
] "]"
== "=="
cast_expression
( "("
integral_type
byte "byte"
) ")"
identifier "MAGIC_2a"
|| "||"
binary_expression
array_access
identifier "signature"
[ "["
decimal_integer_literal "1"
] "]"
== "=="
cast_expression
( "("
integral_type
byte "byte"
) ")"
identifier "MAGIC_2b"
|| "||"
binary_expression
array_access
identifier "signature"
[ "["
decimal_integer_literal "1"
] "]"
== "=="
cast_expression
( "("
integral_type
byte "byte"
) ")"
identifier "MAGIC_2c"
|| "||"
binary_expression
array_access
identifier "signature"
[ "["
decimal_integer_literal "1"
] "]"
== "=="
cast_expression
( "("
integral_type
byte "byte"
) ")"
identifier "MAGIC_2d"
) ")"
; ";"
} "}"
} "}"