Mikael Karlsson

Avatar
  • Total activity 126
  • Last activity
  • Member since
  • Following 0 users
  • Followed by 0 users
  • Votes 1
  • Subscriptions 55
  • Created

    Refactoring libraries

    During the development of a shared library it may happen that the externalinterface has to change, for example by renaming a method. This is of courseeasy to do with a Rename refactoring. (Obviousl...
    • 4 followers
    • 3 comments
    • 0 votes
  • Created

    Close+Go Back (like Spring-loaded folders)

    Quite often I find myself digging down through multiple levels of definitionsusing Go to definition. Then I want to go back up to the starting point whileclosing all the windows that I opened going...
    • 1 follower
    • 0 comments
    • 0 votes
  • Created

    A what-if analyzer for code

    Here's something cool I'd like to have:A live what-if functionality for testing code.Right now I'm trying to do some simple math, like this: int updatesPerSec = 3000; long batchesPerSec = updat...
    • 2 followers
    • 1 comment
    • 0 votes
  • Created

    Missing inspection for infinite loop

    I was surprised to discover that IDEA has nothing to say about this code: int count = 0; while (count < 10) { System.out.println("count = " + count); }I guess it wouldn't be too hard to ...
    • 4 followers
    • 8 comments
    • 0 votes
  • Created

    Should modules export their test output dir?

    Is it a good idea that modules expose their test output directory to dependent modules?It seems strange to me. Could it at least be an option?/Mikael
    • 2 followers
    • 3 comments
    • 0 votes
  • Created

    Why no Structural Search intentions?

    Demetra provides Structural Search inspections. Why no Structural Search intentions?There are many intentions that could be implemented using Structural Search.
    • 2 followers
    • 2 comments
    • 0 votes
  • Created

    Possible inspection: Unnecessary middleman

    Let's say that I've got the codeThis code has an unnecessary middleman (please disregard the feature envy in this example), and could be transformed intoWould this be possible to detect using an in...
    • 1 follower
    • 0 comments
    • 0 votes
  • Created

    Browsing sample code

    What technique do you use when browsing sample code?Let's say that you want to write a plugin for IDEA. You probably have a few samples that you want to keep on hand during development.How do you d...
    • 3 followers
    • 4 comments
    • 0 votes
  • Created

    Idea for function: Access hierarchy

    Quite often I find myself investigating a field to find outhow it is used. I usually do this by doing Find Usages on thefield. Based on the result I go to each usage and examine that,sometimes by u...
    • 3 followers
    • 4 comments
    • 0 votes
  • Created

    Idea for inspection/quickfix

    I'm starting with this:); System.out.println("Color is " + color);]]>Inlining my makeColor method gave me this code:) { result = "Foo"; } else { result = "Fie"; } String color = result; Syste...
    • 3 followers
    • 3 comments
    • 0 votes