Language: Java. The pull request has one bug. You get three tries to find the line, then a short debrief.
Half of our services took the signed-in user as an extra parameter only to pass it further down. Now a filter puts the user into CurrentUser once per request, and any code can ask for it. Requests without a session simply have no current user.
Codetrap needs JavaScript: the code review happens in your browser.