Tag Archives: Inspections

Updated Inspections and Intentions in IntelliJ IDEA 2018.2

We’ve talked about a lot of the changes in IntelliJ IDEA 2018.2 here in the blog, such as the improved data flow analysis and advanced contract annotations. In this post we’re going to look at pretty much all the other … Continue reading

Posted in New Features | Tagged , | 6 Comments

Improved Data Flow Analysis in IntelliJ IDEA 2018.2

IntelliJ IDEA gives warnings in the editor if it detects suspicious code based on an analysis of data flow.  In IntelliJ IDEA 2018.2 we can now see information known about a particular symbol.  For example, if a number of instanceof … Continue reading

Posted in New Features | Tagged , | Leave a comment

Code Smells: Null

This is part of a series investigating code that looks suspicious (“code smells”), and exploring possible alternatives. Code Smells: Null Code Smells: Deeply Nested Code Code Smells: Iteration Code Smells: Mutation Code Smells: Multi-Responsibility Methods Code Smells: If Statements Code Smells: Too Many Problems During my … Continue reading

Posted in Tips & Tricks | Tagged , , , , | 36 Comments

IntelliJ IDEA 2017.2 EAP, with Smarter Control Flow Analysis

Earlier we mentioned that IntelliJ IDEA 2017.2 EAP features improved control flow analysis that infers the contracts of certain methods of String, Array, Collection and Map classes. With today’s EAP build, this analysis becomes even smarter. If that sounds like … Continue reading

Posted in EAP Releases, New Features | Tagged , , , , | 2 Comments

IntelliJ IDEA 2016.3 EAP: Polyglot Maven, Grails View, Inspections and More

Say hello to the fresh IntelliJ IDEA 2016.3 EAP build, which brings several new features worth checking out. Support for Polyglot Maven First of all, we’ve added the support for Polyglot Maven. In case you don’t know, this is a set of Maven extensions that … Continue reading

Posted in EAP Releases, New Features | Tagged , , , | 7 Comments

Java 8 Top Tips

I’ve been working a lot with Java 8 code over the last couple of years, for both new applications and migrating existing ones, and it feels like the right time to write down some of the “best practices” I’ve found useful. I … Continue reading

Posted in Tips & Tricks | Tagged , | 34 Comments

IntelliJ IDEA 2016.2 EAP 162.426.1 is Out

A fresh EAP build for IntelliJ IDEA 2016.2 is out and, being a good EAP build that it is, has something new for you to try: General A new inspection that warns you when you instantiate new objects inside equals, hashCode, compareTo … Continue reading

Posted in EAP Releases, New Features | Tagged , , , , , , | 8 Comments

New Inspections for Java 8 in IntelliJ IDEA 2016.1

Since Java 8 has been launched almost two years ago, it has been gaining more and more traction around the community. Most Java frameworks and platforms have either already migrated their APIs to Java 8, or are planning to do so. With … Continue reading

Posted in New Features | Tagged , , , | 5 Comments

Inspection Connection – Issue #5, Encapsulation Examination

Encapsulation is a simple but powerful concept in software engineering that often goes hand-in hand with abstraction. In OOP, we use these two principles to help model mundane and complex systems, from physical processes to digital transactions, however these terms … Continue reading

Posted in Tips & Tricks | Tagged | Leave a comment

The Inspection Connection – Issue #4, Duplication Detection

One of the core principles of computer programming is eliminating manual repetition. Not only is repeated code time-consuming to read and review, it is disproportionately complex to maintain and provides a ready source of bugs when one copy changes. Yet … Continue reading

Posted in Tips & Tricks | Tagged , , | Leave a comment