Commit 1d259db33caeca3b6c0cab9910c6a38f92c71972
1 parent
a7ecf5aa
Exists in
master
and in
1 other branch
Remove método não utilizado
- Remove método não utilizado que validava interessados - Suprime alguns warnings
Showing
3 changed files
with
3 additions
and
6 deletions
Show diff stats
src/main/java/br/gov/ans/integracao/sei/dao/ContatoDAO.java
... | ... | @@ -29,6 +29,7 @@ public class ContatoDAO { |
29 | 29 | return (Contato) query.getSingleResult(); |
30 | 30 | } |
31 | 31 | |
32 | + @SuppressWarnings({ "unchecked" }) | |
32 | 33 | public List<Contato> getContatosNaoTemporariosPelaSigla(String sigla){ |
33 | 34 | Query query = em.createNamedQuery("Contato.pesquisarPorSigla",Contato.class); |
34 | 35 | ... | ... |
src/main/java/br/gov/ans/integracao/sei/helper/DocumentoHelper.java
... | ... | @@ -12,7 +12,6 @@ import javax.inject.Inject; |
12 | 12 | import org.apache.commons.lang3.ArrayUtils; |
13 | 13 | import org.apache.commons.lang3.StringUtils; |
14 | 14 | import org.codehaus.jackson.JsonParseException; |
15 | -import org.hibernate.engine.transaction.jta.platform.internal.TransactionManagerBasedSynchronizationStrategy; | |
16 | 15 | import org.jboss.logging.Logger; |
17 | 16 | |
18 | 17 | import com.github.mustachejava.Mustache; |
... | ... | @@ -96,11 +95,7 @@ public class DocumentoHelper { |
96 | 95 | throw new BusinessException(messages.getMessage("erro.tamanho.documento")); |
97 | 96 | } |
98 | 97 | } |
99 | - | |
100 | - private boolean isSemInteressados(Documento documento){ | |
101 | - return ArrayUtils.isEmpty(documento.getInteressados()); | |
102 | - } | |
103 | - | |
98 | + | |
104 | 99 | private double calcularBytes(int sizeBase64){ |
105 | 100 | return sizeBase64 * 3.0 / 4; |
106 | 101 | } | ... | ... |
src/main/java/br/gov/ans/integracao/sei/modelo/UnidadeTarefa.java