Tag Archives: Code Analysis

Better Control Flow Analysis with Contract Annotations and IntelliJ IDEA 13

As we’re closing in on the release date, we’re going to publish more details on the new features of IntelliJ IDEA 13. Today we’d like to tell you about the new @Contract annotation. If you are aware of @Nullable/@NotNull annotations, … Continue reading

Posted in New Features | Tagged , , | 27 Comments

30 Days with IntelliJ IDEA. Inspections

We continue to publish new articles from the 30 Day Guide for learning the fundamental features of IntelliJ IDEA. Today we will talk about such basic thing as inspections. As you know inspections are built-in tools that help you find … Continue reading

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

Java 8 and Method References in IntelliJ IDEA 12

As you might know IntelliJ IDEA 12 will bring support for new features of Java 8 language. Though this is still in progress, you can try some of these features now in IntelliJ IDEA 12 EAP. Here we would like … Continue reading

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

Validation of unknown tags and attributes in Android XML files

In the latest IntelliJ IDEA 11.1 EAP we’ve added 2 new inspections that warn you about unknown attributes and tags in Android XML resource files and AndroidManifest.xml: IntelliJ IDEA can validate both system attributes and local ones defined in attrs.xml … Continue reading

Posted in New Features | Tagged , | 1 Comment

Integration with Android Lint tool in IntelliJ IDEA 11.1

In IntelliJ IDEA 11.1 we’ve added many inspections based on Android Lint tool, which reports many kinds of potential problems in the sources of your Android project. For example IntelliJ IDEA will notify you about useless views in layout xml files … Continue reading

Posted in New Features | Tagged , , | 1 Comment

New “Magic Constant” Inspection

Have you ever cursed an API which uses magic integer constants instead of the proper enumeration? What should I pass as the titleJustification parameter here? 0 or 1? Can I pass “42″ for the titlePosition parameter? Even Javadoc won’t know. … Continue reading

Posted in New Features | Tagged | 10 Comments

How to check your RegExps in IntelliJ IDEA 11?

In IntelliJ IDEA 11 you can check your Regular Expressions while coding without leaving the IDE. Just invoke the ‘Check RegExp’ intention action on a regular expression and play! Tip: You can turn any string into a regular expression by … Continue reading

Posted in New Features | Tagged , , | 20 Comments

Better Spring with IntelliJ IDEA 10.5

Yes! The sunny Spring has finally come to St.Petersburg too. However, it’s not that “Spring” we want to talk now… We realize that many of you use the Spring framework in your every day work. So, many should be interested … Continue reading

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

Quick prototyping in Groovy with “Convert Map to Class” intention

Sometimes it is helpful to use a Map for fast prototyping of classes with some properties but without any logic. But in the end it would be nice to have a real class. In IntelliJ IDEA you can get it … Continue reading

Posted in Tips & Tricks | Tagged , | 1 Comment

Java 7. @SafeVarargs

Java 7 provides a way to remove a compiler warning about generics vararg invocation. With Java 7 you can annotate your vararg method with SafeVararg annotation and your clients won’t get these nasty warnings any more. IntelliJ IDEA 10.5 will … Continue reading

Posted in New Features | Tagged , | Leave a comment