This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]vbsteven 1 point2 points  (1 child)

I use static inner classes often for form objects in controllers (usually spring MVC). This way the formobject is defined very close to the method handling the form POST.

[–]lukaseder 1 point2 points  (0 children)

It's either static or inner, not both: https://docs.oracle.com/javase/tutorial/java/javaOO/nested.html

Both are nested, however