search

Home  >  Q&A  >  body text

java程序中是否要清理“从未使用导入”


java程序中“从未使用的导入”要不要清理,清理的理由是什么

阿神阿神2889 days ago329

reply all(4)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 17:39:41

    I always use ctrl+shift+o

    reply
    0
  • 高洛峰

    高洛峰2017-04-17 17:39:41

    Unused imports have no impact on performance. For details, please refer to the Java Virtual Machine Specification

    reply
    0
  • ringa_lee

    ringa_lee2017-04-17 17:39:41

    The reason why I clean up is because I feel unhappy when I see warnings and have obsessive-compulsive disorder tendencies.

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-17 17:39:41

    It doesn’t matter, for the simplicity of code use ctrl + shit + o you can import necessary packages and delete unnecessary packages

    reply
    0
  • Cancelreply