Skip to content

Commit

Permalink
fix(qmp): renamed tipo to TipoPrenda #2
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasanchez committed Apr 23, 2021
1 parent 1e80b46 commit c60c4eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions 01-lecture/quemepongo/src/main/java/quemepongo/Prenda.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class Prenda {
*
* @since 1.0
*/
public final Tipo tipo;
public final TipoPrenda tipo;

/**
* El color primario
Expand Down Expand Up @@ -57,7 +57,7 @@ public Categoria categoria() {
* @author Tomás Sánchez
* @since 1.1
*/
public Prenda(Tipo tipoPrenda, Color principal, Material matnr) {
public Prenda(TipoPrenda tipoPrenda, Color principal, Material matnr) {

if (Objects.isNull(principal) || Objects.isNull(tipoPrenda) || Objects.isNull(matnr))
throw new IllegalArgumentException("El tipo, color principal y material son obligatorios");
Expand All @@ -77,7 +77,7 @@ public Prenda(Tipo tipoPrenda, Color principal, Material matnr) {
* @author Tomás Sánchez
* @since 1.1
*/
public Prenda(Tipo tipoPrenda, Color principal, Color secundario, Material matnr) {
public Prenda(TipoPrenda tipoPrenda, Color principal, Color secundario, Material matnr) {
this(tipoPrenda, principal, matnr);
color2 = secundario;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @version 2.0
* @since 04.20.2021
*/
public enum Tipo {
public enum TipoPrenda {

LENTES(Categoria.ACCESORIOS), REMERA_MANGAS_CORTAS(Categoria.SUPERIOR), CAMISA(Categoria.SUPERIOR),
JEANS(Categoria.INFERIOR);
Expand Down Expand Up @@ -37,7 +37,7 @@ Categoria categoria() {
*
* @since 2.0
*/
Tipo(Categoria cat) {
TipoPrenda(Categoria cat) {
categoria = cat;
}
}

0 comments on commit c60c4eb

Please sign in to comment.