Skip to content

Violación 3-ISP: Utils.java con métodos utilitarios demasiado genéricos #24

Description

@gabygomm

Solución propuesta:
Dividir en interfaces utilitarias más específicas.

Código propuesto:

public interface IValidationUtils {
    int updateGreaterThan0(int oldValue, String str);
}
public interface IMenuUtils {
    void printMenu();
}

UML propuesto:

classDiagram
    class IValidationUtils { +updateGreaterThan0() }
    class IMenuUtils { +printMenu() }
    Utils ..> IValidationUtils
    Utils ..> IMenuUtils
Loading

Gómez S.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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