question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Smart merging with wildcard import

See original GitHub issue

It’ll be nice to remove redundant granular imports in such situation:

import a.b.ClassA
import a.b._

now it will be grouped into

import a.b.{ClassA, _}

but, in fact, ClassA is redundant here, and it could be simply

import a.b._

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
danslapmancommented, Oct 20, 2020

@liancheng thank you, works like a charm 👍

0reactions
lianchengcommented, Oct 20, 2020

@danslapman, just published 0.4.3, please have a try 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Auto import | IntelliJ IDEA Documentation - JetBrains
Basic procedures to create and optimize imports in IntelliJ IDEA. ... Disable wildcard imports to always import single classes.
Read more >
Allow merging of a wildcard import alias with a compile-time ...
Declaration merging, a noted workaround for this missing feature, of the type and namespace is nicer than wildcard imports because refactors ...
Read more >
Python Pandas - Merging With Wildcards and Conditions
Merging two dataframes with pandas but only if certain conditions are true.
Read more >
Using Wildcards in Quick Search - Help
A wildcard is a symbol used to replace or represent one or more unknown characters. Using a wildcard enables you to search for...
Read more >
Any way (or shortcut) to auto import the classes in IntelliJ IDEA ...
When looking for a command/keyboard shortcut, type Ctrl-shift-A (or Cmd-shift-A on Mac), and search for the command. For example here, typing " ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found