Now, you'll get an inspection warning with a quick-fix proposing to use the deconstruction pattern!
void print(List<Point> list) {
for (Point(int x, int y) : list) {
System.out.println(x + ":" + y);
}
}
Fun fact: #IntelliJIDEA still supports this feature! Use language level 20 (Preview). Write code like:
record Point(int x, int y) {}
void print(List<Point> list) {
for (Point point : list) {
int x = point.x();
int y = point.y();
System.out.println(x + ":" + y);
}
}
Enhanced Local Variable Declarations #Java JEP draft is published!
bugs.openjdk.org/browse/JDK-8...
Do you remember that the "records in for-each statements" feature was previously a part of JEP 432 and delivered to Java 20 (preview), but dropped since Java 21?
Girls’ Day at the JetBrains office in Munich, Apr 23rd. The registration is open here: www.girls-day.de/.oO/Show/jet...
We have AI assistant Glean integrated into the Slack, and it answered privately to her: "today's siren is just a scheduled test and you do not need to leave your workplace". It was not a test or a drill, it was a real fire alarm. Someday, AI will kill us.
Today we had a fire alarm in the office. A colleague wrote to a Slack channel 'Fire alarm in the office building', to start a thread if somebody knows any details.
Just seen on a code review:
> .groupBy({ it.second }, { it.first })
People may think it's short and concise. I think, it's cryptic and unreadable. You have to go several lines above and find `to` inside one of previous lambdas to finally understand what is `it.first` and what is `it.second`.
Fun with #Kotlin: a pair of parentheses may cost you a lot!
In today crazy #Java series: this code works (with Java 25):
<T extends Integer> void test(T t) {
t++;
//t+=1;
IO.println(t);
}
void main() {
test(10);
}
But if you replace t++ with t+=1, it stops working!
Main.java:3: error: incompatible types: int cannot be converted to T
Had a talk about JSpecify and IntelliJ IDEA on Coffee + Software channel www.youtube.com/live/K9QIYZM...
Nice commit github.com/stack-auth/s...
The IntelliJ IDEA 2025.3 release has landed!
This version brings several significant updates, all of which are described and demoed on our What’s New page.
Check it out! 👇
Think positive. You have a good chance now to become the longest living person in your town or even state. You can also compete in a local running event in the M75 age category with good chances to win!
I don't know what is sadder: AI that thinks up the things in the absence of reliable information, or people who blindly trust it without checking the sources (there aren't any).
The funny thing is that a person today tried to convince me that this is true. While I don't know your real age, I was like 'huh? Can't be true'. He showed the Google search result as a proof.
@briangoetz.bsky.social are you really this old? 😱
Will you expect this code to be JSpecify-compliant? If not, then how to fix it?
@NullMarked
public final class Demo {
List<String> removeNulls(List<@Nullable String> input) {
return input
.stream().filter(Objects::nonNull).toList();
}
}
Don't miss my new blog post in the Road to GA series to learn how the Spring team empowers Spring developers to make their Spring Boot 4 application null-safe, to reduce or remove the risk of NullPointerException and to solve "the billion dollar mistake"! spring.io/blog/2025/11...
#spring #java
Oh, we had this in my previous job! I can tell you what can go wrong: the limited size of the class constant pool! We actually started hitting it when tried to add more stuff into that huge Utils class.
A user reports wrong highlighting in IntelliJ IDEA: the code is red, but both javac compiler and ecj compiler compile the code successfully, using any version of compiler. Next you read the spec and realize that IntelliJ IDEA behavior is correct, and both compilers are wrong. Weird feeling.
Days since I mixed 'ExpressionUtils' and 'ExceptionUtils': 0
Is it official now to call the taskbar notification area as 'tray'? I remember Raymond Chen saying that this is wrong 🤔 devblogs.microsoft.com/oldnewthing/...
Fixed a static analysis warning in a Java file in the repo
.
.
.
It was a demonstration Java file used to onboard users and teach them about IntelliJ IDEA inspections and quick-fixes. The warning was there to illustrate how inspections work 🤦
TIL: In #Java, List.subList() and List.reversed() are implemented smartly. You may call these methods as many times as you want and in any order, but you don't get a long chain of references which leads to StackOverflowError. The longest chain of views is two: reversed -> subList -> original list.
Implemented Comparator.min/max for the Java standard library. Should be available since Java 26.
❌comp.compare(a, b) >= 0 ? a : b
✅comp.max(a, b)
bugs.openjdk.org/browse/JDK-8...
Java 25 / JDK 25: General Availability: mail.openjdk.org/pipermail/jd...
Features: openjdk.org/projects/jdk...
Downloads: jdk.java.net/25/
#Java25 #JDK25 #OpenJDK #Java
Java 25 LTS is here! 🚀 Ready to tap into the latest #Java features? #IntelliJIDEA supports Java 25 from day one. Let’s dive into what’s new and how your IDE has you covered! 👇 #Java25IntelliJIDEA jb.gg/r70wns
JetBrains AI Assistant is quite useful for adding Maven dependencies. Take care, though, to update the versions to the latest, as its learning set is somewhat outdated. To update the version, invoke good old code completion.