I ran into this problem a while ago and found out that it is not a problem to have 50k lines and more code in the same class until the method limit is exceeded.
Depending on what in one method actually causes the size of the bytecode, I experienced restrictions between 2-3k lines of code / method.
added by:
by the way, at some point, Eclipse crashes when your shared code gets too large to compile - just increase your Eclipse memory to 1 GB or so. It is enough that for my projects there were only about 100 thousand lines ...
source share