Return-Type

Description

The return type of SearchService.fetch (String) must be Map <Class <? Extends Entity>, List <? Extends Entity >> because in general lists of specific subclasses are returned by Entity.

Generally it should be always used <? extends T> instead of <T> in collections, if the collections are only for read access - this often saves the implementation from an unnecessary copying task and creates a compile error, if the recipient of the collection accidentally calls adds() or a similar Mutating method.

Assignee

Angelika Wittek

Reporter

Hans-Jörg Kremer

Labels

Process Step

Global

Eclipse Project

MDM Business Layer

Status

New

Components

None

User Story Name

Return-Type

Implementer (Company)

None

Customer (Company)

None

Epic Link

Fix versions

Affects versions

Priority

Major
Configure