Tag Archives: Code Analysis

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

Avoiding Assert Statements with Constant Conditions

Though assert statements are very useful when it comes to checking runtime assumptions, using them to verify conditions that are constant is not so wise. Assert conditions that always evaluate to true are particularly unnecessary because they will never throw … Continue reading

Posted in New Features | Tagged , | Leave a comment

Towards Side Effectless Assert Statements

It is a well known rule that assert statements should cause no changes in state outside of them (aka side effects). Until now, you could only check if this rule was followed by visually inspecting the code. In IntelliJ IDEA … Continue reading

Posted in New Features | Tagged , | 1 Comment