Skip to content

[Controle] Troco: método next nunca itera #10

@RVCoelho

Description

@RVCoelho

Descrição

O laço em next() não executa porque a condição usa ret != null (mas ret é inicializado como null).
Além disso, começa no índice 6 (fora do limite) e o incremento está incorreto (i++).

Local

Arquivo: Troco.java
Linhas: 70–74
https://github.com/RVCoelho/Source-Code-Inspection/blob/master/Source%20Code%20Inspection/src/br/calebe/ticketmachine/core/Troco.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