Article 2E7BM Representative Line: The Longest Method?

Representative Line: The Longest Method?

by
Remy Porter
from The Daily WTF on (#2E7BM)

An anonymous reader was chatting with their fellow developers on Slack. They work for a telecom, and thus have to support software and hardware from a variety of vendors. In one Apple-provided API, they found this method.

ALUnlockWebServiceRequest appleUnlockWSRequest = new ALUnlockWebServiceRequest();appleUnlockWSRequest.getAddPendingUnlockDeviceRequestAndCheckUnlockStatusDeviceRequestAndRemoveUnlockDeviceRequest();

longest-method-ever.png

Now, that is a pretty long method name, and it's certainly a WTF. That said, Java has classes like this one, and there's always Spring, if you want to find something really long. Besides, it's not the length of the name that's important, it's how you invoke it.

proget-icon.png [Advertisement] High availability, Load-balanced or Basic - design your own Universal Package Manager, allow the enterprise to scale as you grow. Download and see for yourself! TheDailyWtf?d=yIl2AUoC8zAah5JfUF6sBQ
External Content
Source RSS or Atom Feed
Feed Location http://syndication.thedailywtf.com/TheDailyWtf
Feed Title The Daily WTF
Feed Link http://thedailywtf.com/
Reply 0 comments