Girls’ Day at the JetBrains office in Munich, Apr 23rd. The registration is open here: www.girls-day.de/.oO/Show/jet...
Girls’ Day at the JetBrains office in Munich, Apr 23rd. The registration is open here: www.girls-day.de/.oO/Show/jet...
Glean answer: In building ... today’s siren is just a scheduled test and you do not need to leave your workplace while it's running. If you're unsure or something seems off (e.g. smoke, smell, people evacuating), call Munich building emergency number ... or ask at reception immediately.
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.
Image of fire brigade near our office
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`.
import kotlin.system.measureTimeMillis fun main() { val set = (0..10000000).toCollection(linkedSetOf()) repeat(5) { val time1 = measureTimeMillis { set.last } println("set.last call took $time1 ms") val time2 = measureTimeMillis { set.last() } println("set.last() call took $time2 ms") } }
set.last call took 1 ms set.last() call took 71 ms set.last call took 0 ms set.last() call took 63 ms set.last call took 0 ms set.last() call took 58 ms set.last call took 0 ms set.last() call took 61 ms set.last call took 0 ms set.last() call took 57 ms
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();
}
}
You can find the discussion here: youtrack.jetbrains.com/issue/IDEA-3...
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.
Looks like today is the day for JDK25!
openjdk.org/projects/jdk...
#java
Yesterday during dinner with Javazone speakers, I asked JetBrains Kineto to create an app to check whether a number is prime and show factors if it's not. It took a single prompt and about 30 minutes. It deploys the app automatically. Now I have my very own prime checker 😁
Haven't seen him.
Josh's talk was actually very hot 🔥 #JavaZone