Skip to content

KeysetScrollPosition.of(Collections.emptyMap(), Direction.BACKWARD) retain incorrect direction #2840

Closed
@quaff

Description

@quaff

static KeysetScrollPosition of(Map<String, ?> keys, Direction direction) {
Assert.notNull(keys, "Keys must not be null");
Assert.notNull(direction, "Direction must not be null");
return keys.isEmpty()
? initial()
: new KeysetScrollPosition(Collections.unmodifiableMap(new LinkedHashMap<>(keys)), direction);
}

Parameter direction should not be ignored if keys is empty.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions