Tag Archives: Code Analysis

ThreadLocal in One Click

Most of applications initially are single threaded, and IntelliJ IDEA was no different; though luckily, now it isn’t — but we had to adapt our code to use multiple threads. In this post I’m going to tell you how. In … Continue reading

Posted in New Features | Tagged , | 4 Comments

Intelligent Copy&Paste

Do you find yourself copying and pasting parts of bodies between different methods and then facing broken code? Unfortunately, parameter names tend to differ — like in this (very simplified) example: Nothing is easier than fixing this problem with a … Continue reading

Posted in New Features | Tagged | Leave a comment

New String-related Intentions for Groovy

With the latest Maia EAP Groovy language support is improved with several new GStrings intention actions. Now you can convert string concatenations to GStrings… …and back simply by pressing Alt+Enter, Enter. Also, IntelliJ IDEA is now aware of that braces … Continue reading

Posted in New Features | Tagged , , | Leave a comment

Code Inspections for Web Applications

If you ever coded a Web project, you know that all the errors in those HTML / JavaScript files are detected only during run time. Starting next build IntelliJ IDEA 9 (Maia) will help you to spot the problems much … Continue reading

Posted in New Features | Tagged , , , | Leave a comment

Listeners and Adapters

Occasionally implementing a Listener leads to an explosion of ugly empty boiler-plate methods. In such cases it is usually better to extend a matching adapter class and only override the needed methods. The next IntelliJ IDEA Maia EAP build will … Continue reading

Posted in New Features | Tagged , | 5 Comments

Analyzing Dataflow with IntelliJ IDEA

Upcoming IntelliJ IDEA version, Maia brings you an improved version of the Dataflow to this feature and the completely new Dataflow from this. Here I am describing how these features work and how they can help you the Code Archeologists … Continue reading

Posted in New Features | Tagged , | 15 Comments

Upgrading Event Listeners to GWT 1.6

Google Web Toolkit 1.6 replaces EventListener class with EventHandler, so the existing code base needs an upgrade. In most cases IntelliJ IDEA can do this automatically — all you need to do is to press Alt+Enter on a highlighted listener … Continue reading

Posted in New Features | Tagged , , | Leave a comment

Flip Setter Call Intention Action in Maia

Two-way synchronization between different data models is a common routine task and often developers are stuck with manual copying of data from one model to another for many reasons: model complexity, impossibility to create a simple binding, etc. For example, … Continue reading

Posted in New Features | Tagged , | 4 Comments

Global unused declaration inspection

Thanks to improvements in the internal indexes behind the Intellij IDEA code insight engine, Maia will be able to instantly highlight some java classes, methods and fields which are unused across the entire project. To use the feature, enable the Unused … Continue reading

Posted in New Features | Tagged , | 17 Comments

WebBeans Inspections in Maia

IntelliJ IDEA code analyzer will be extended with WebBeans-specific inspections in the upcoming Maia release:Here’s the example of how they work:

Posted in New Features | Tagged , , | Leave a comment