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–41 unchanged (41 lines)
42 } catch (Throwable t) {
43 return false;
44 }
45 }
46
47 private boolean toStringEquals(Matcher m, Object arg) {
48 return StringDescription.toString(m).equals(arg.toString());
49 }
50}
51

After

…lines 1–41 unchanged (41 lines)
42 } catch (Throwable t) {
43 return false;
44 }
45 }
46
47 private boolean toStringEquals(Matcher m, Object arg) {
48 return StringDescription.toString(m).equals(arg == null? "null" : arg.toString());
49 }
50}
51

Before

program
block_comment "/*\r\n * Copyright (c) 2007 Mockito contributors\r\n * This prog"...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "mockito"
. "."
identifier "internal"
. "."
identifier "verification"
. "."
identifier "argumentmatching"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "LinkedList"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "List"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "hamcrest"
. "."
identifier "Matcher"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "hamcrest"
. "."
identifier "StringDescription"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "mockito"
. "."
identifier "internal"
. "."
identifier "matchers"
. "."
identifier "ContainsExtraTypeInformation"
; ";"
class_declaration
modifiers
annotation
@ "@"
identifier "SuppressWarnings"
annotation_argument_list
( "("
string_literal
" "\""
string_fragment "unchecked"
" "\""
) ")"
public "public"
class "class"
identifier "ArgumentMatchingTool"
class_body
{ "{"
block_comment "/**\r\n * Suspiciously not matching arguments are those th"...
method_declaration (+200 nodes collapsed)
method_declaration (+49 nodes collapsed)
method_declaration
modifiers
private "private"
boolean_type "boolean"
identifier "toStringEquals"
formal_parameters
( "("
formal_parameter
type_identifier "Matcher"
identifier "m"
, ","
formal_parameter
type_identifier "Object"
identifier "arg"
) ")"
block
{ "{"
return_statement
return "return"
method_invocation
method_invocation
identifier "StringDescription"
. "."
identifier "toString"
argument_list
( "("
identifier "m"
) ")"
. "."
identifier "equals"
argument_list
( "("
method_invocation
identifier "arg"
. "."
identifier "toString"
argument_list
( "("
) ")"
) ")"
; ";"
} "}"
} "}"

After

program
block_comment "/*\r\n * Copyright (c) 2007 Mockito contributors\r\n * This prog"...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "mockito"
. "."
identifier "internal"
. "."
identifier "verification"
. "."
identifier "argumentmatching"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "LinkedList"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "List"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "hamcrest"
. "."
identifier "Matcher"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "hamcrest"
. "."
identifier "StringDescription"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "mockito"
. "."
identifier "internal"
. "."
identifier "matchers"
. "."
identifier "ContainsExtraTypeInformation"
; ";"
class_declaration
modifiers
annotation
@ "@"
identifier "SuppressWarnings"
annotation_argument_list
( "("
string_literal
" "\""
string_fragment "unchecked"
" "\""
) ")"
public "public"
class "class"
identifier "ArgumentMatchingTool"
class_body
{ "{"
block_comment "/**\r\n * Suspiciously not matching arguments are those th"...
method_declaration (+200 nodes collapsed)
method_declaration (+49 nodes collapsed)
method_declaration
modifiers
private "private"
boolean_type "boolean"
identifier "toStringEquals"
formal_parameters
( "("
formal_parameter
type_identifier "Matcher"
identifier "m"
, ","
formal_parameter
type_identifier "Object"
identifier "arg"
) ")"
block
{ "{"
return_statement
return "return"
method_invocation
method_invocation
identifier "StringDescription"
. "."
identifier "toString"
argument_list
( "("
identifier "m"
) ")"
. "."
identifier "equals"
argument_list
( "("
ternary_expression
binary_expression
identifier "arg"
== "=="
null_literal "null"
? "?"
string_literal
" "\""
string_fragment "null"
" "\""
: ":"
method_invocation
identifier "arg"
. "."
identifier "toString"
argument_list
( "("
) ")"
) ")"
; ";"
} "}"
} "}"