Skip to content

Data Access chapter 3.5.1 uses bad pattern #24084

@michael-o

Description

@michael-o

The Java sample code in section 3.5.1 performs index-based operations on the List input with int i. This might incur a performance penalty depending on the list implementation of O(n²). Lists are best acceessed with iterators. Don't use bad practices in samples.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions