Skip to content

Use Generics in Command and derived classes #1272

@kwin

Description

@kwin

New feature, improvement proposal

Currently the org.apache.maven.scm.command.Command interface does not leverage generics which leads to the fact that its execute methods just returns the generic ScmResult instead of the command specific result classes. This requires some casting in the code (e.g. in

). Introducing a type variable for the return type of its execute method should allow to for more type-safe programming.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions