My guess is ProGuard (Android's default minifier + obfuscator) added random lines of code to make reverse engineering difficult.
I know DexGuard does this for sure.
ProGuard doesn't do any obfuscation beyond optimizing and minifying the code. When they explicitly refer to obfuscation, they mean renaming classes, fields and methods to minimal names. You still do that for open source code as part of optimizing and it just strips those names.
Ah, thanks for the clarification! I could've sworn I've read ProGuard adds dummy lines of code.
Anyways, DexGuard does it, and I'm sure WhatsApp of all apps uses a paid tool for advanced code hardening.