• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wmixvideo / nfe / #6332

17 Apr 2025 12:55PM UTC coverage: 52.669% (+25.7%) from 26.996%
#6332

push

web-flow
Corrigindo atribuição à variável volumeProdutoEmbalagem não tem efeito e imports não utilizado (#1033)

* Mantendo compatibilidade versão java 1.8

* Corrigindo atribuição à variável volumeProdutoEmbalagem não tem efeito

* Corrigindo imports nao utilizados

* Corrigindo método setVolumeProdutoEmbalagem

* Ajustado setter dos demais metodos da classe de embalagens

O PR havia ajustado somente um. Ajustado os demais para padronização.

* Corrigindo atribuição à variável volumeProdutoEmbalagem não sem efeito

* Corrigindo atribuição à variável volumeProdutoEmbalagem sem efeito

---------

Co-authored-by: tecnosofti <tecnosofti@amdryzen>
Co-authored-by: Diego Fincatto <58352+fincatto@users.noreply.github.com>

14001 of 26583 relevant lines covered (52.67%)

0.53 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/fincatto/documentofiscal/nfe310/classes/evento/downloadnf/NFDownloadNFe.java
1
package com.fincatto.documentofiscal.nfe310.classes.evento.downloadnf;
2

3
import com.fincatto.documentofiscal.DFAmbiente;
4
import com.fincatto.documentofiscal.DFBase;
5
import com.fincatto.documentofiscal.validadores.DFStringValidador;
6
import org.simpleframework.xml.Attribute;
7
import org.simpleframework.xml.Element;
8
import org.simpleframework.xml.Namespace;
9
import org.simpleframework.xml.Root;
10

11
@Root(name = "downloadNFe")
12
@Namespace(reference = "http://www.portalfiscal.inf.br/nfe")
13
public class NFDownloadNFe extends DFBase {
14
    private static final long serialVersionUID = 5595066759407095694L;
15
    
16
    @Attribute(name = "versao")
17
    private String versao;
18
    
19
    @Element(name = "tpAmb")
20
    private DFAmbiente ambiente;
21
    
22
    @Element(name = "xServ")
23
    private String servico;
24
    
25
    @Element(name = "CNPJ")
26
    private String cnpj;
27
    
28
    @Element(name = "chNFe")
29
    private String chave;
30

31
    public NFDownloadNFe() {
×
32
        this.versao = null;
×
33
        this.ambiente = null;
×
34
        this.servico = null;
×
35
        this.cnpj = null;
×
36
        this.chave = null;
×
37
    }
×
38

39
    public String getVersao() {
40
        return this.versao;
×
41
    }
42

43
    public void setVersao(final String versao) {
44
        this.versao = versao;
×
45
    }
×
46

47
    public DFAmbiente getAmbiente() {
48
        return this.ambiente;
×
49
    }
50

51
    public void setAmbiente(final DFAmbiente ambiente) {
52
        this.ambiente = ambiente;
×
53
    }
×
54

55
    public String getServico() {
56
        return this.servico;
×
57
    }
58

59
    public void setServico(final String servico) {
60
        this.servico = servico;
×
61
    }
×
62

63
    public String getCnpj() {
64
        return this.cnpj;
×
65
    }
66

67
    public void setCnpj(final String cnpj) {
68
        DFStringValidador.cnpj(cnpj);
×
69
        this.cnpj = cnpj;
×
70
    }
×
71

72
    public String getChave() {
73
        return this.chave;
×
74
    }
75

76
    public void setChave(final String chave) {
77
        DFStringValidador.exatamente44N(chave, "chave de acesso");
×
78
        this.chave = chave;
×
79
    }
×
80
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc