Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

156
Visualizações
Redundant import of Packages in a Java project - Is there any performance impact?

In my java project, during the process of refactoring my code, I see a lot of redundant packages. Eclipse marks them in light yellow as shown in the image below

enter image description here

What is the suggested practice of handling hese ? Do these redundant packages have any performance impact and if yes, would be interested in knowing how.

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

In eclipse there's a handy shortcut Ctrl+Shift+o which will organize your imports and remove unused.

Unused imports have a trivial impact on the compiler. It's not a big deal however it's distracting and best practice is to remove them.

Also it's prefered to use imports like this

import java.util.Map;
import java.util.List;

over this

import java.util.*;

using star will import all packages from util which you don't need in most scenarios...

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda