Would the following be considered bad practice in Java?

Printable View