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

1/*
2 * Copyright (c) 2007 Mockito contributors
3 * This program is made available under the terms of the MIT License.
4 */
5package org.mockito.internal.configuration.injection.filter;
6
7import java.lang.reflect.Field;
8import java.util.Collection;
9
10public interface MockCandidateFilter {
11
12 OngoingInjecter filterCandidate(
13 Collection<Object> mocks,
14 Field fieldToBeInjected,
15 Object fieldInstance
16 );
17
18}
19

After

1/*
2 * Copyright (c) 2007 Mockito contributors
3 * This program is made available under the terms of the MIT License.
4 */
5package org.mockito.internal.configuration.injection.filter;
6
7import java.lang.reflect.Field;
8import java.util.Collection;
9import java.util.List;
10
11public interface MockCandidateFilter {
12
13 OngoingInjecter filterCandidate(
14 Collection<Object> mocks,
15 Field fieldToBeInjected,
16 List<Field> fields, Object instance
17 );
18
19}
20

Before

program
block_comment "/*\n * Copyright (c) 2007 Mockito contributors\n * This progra"...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "mockito"
. "."
identifier "internal"
. "."
identifier "configuration"
. "."
identifier "injection"
. "."
identifier "filter"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "lang"
. "."
identifier "reflect"
. "."
identifier "Field"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Collection"
; ";"
interface_declaration
modifiers
public "public"
interface "interface"
identifier "MockCandidateFilter"
interface_body
{ "{"
method_declaration
type_identifier "OngoingInjecter"
identifier "filterCandidate"
formal_parameters
( "("
formal_parameter
generic_type
type_identifier "Collection"
type_arguments
< "<"
type_identifier "Object"
> ">"
identifier "mocks"
, ","
formal_parameter
type_identifier "Field"
identifier "fieldToBeInjected"
, ","
formal_parameter
type_identifier "Object"
identifier "fieldInstance"
) ")"
; ";"
} "}"

After

program
block_comment "/*\n * Copyright (c) 2007 Mockito contributors\n * This progra"...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "mockito"
. "."
identifier "internal"
. "."
identifier "configuration"
. "."
identifier "injection"
. "."
identifier "filter"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "lang"
. "."
identifier "reflect"
. "."
identifier "Field"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Collection"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "List"
; ";"
interface_declaration
modifiers
public "public"
interface "interface"
identifier "MockCandidateFilter"
interface_body
{ "{"
method_declaration
type_identifier "OngoingInjecter"
identifier "filterCandidate"
formal_parameters
( "("
formal_parameter
generic_type
type_identifier "Collection"
type_arguments
< "<"
type_identifier "Object"
> ">"
identifier "mocks"
, ","
formal_parameter
type_identifier "Field"
identifier "fieldToBeInjected"
, ","
formal_parameter
generic_type
type_identifier "List"
type_arguments
< "<"
type_identifier "Field"
> ">"
identifier "fields"
, ","
formal_parameter
type_identifier "Object"
identifier "instance"
) ")"
; ";"
} "}"