Skip to content

[Dados] TicketMachine: getTroco retorna null #3

@RVCoelho

Description

@RVCoelho

Descrição

O método getTroco retorna null, o que pode causar NullPointerException.
Além disso, o tipo de retorno é Iterator<Integer>, diferente do esperado (deveria ser sobre PapelMoeda).

Local

Arquivo: TicketMachine.java
Linhas: 39–41
https://github.com/RVCoelho/Source-Code-Inspection/blob/master/Source%20Code%20Inspection/src/br/calebe/ticketmachine/core/TicketMachine.java

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions