Want IntelliJ IDEA T-Shirt?
Visit our Apparel Store!
Tag Archives: Code Analysis
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
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
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
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
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
IntelliJ IDEA code analyzer will be extended with WebBeans-specific inspections in the upcoming Maia release:Here’s the example of how they work:
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
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