StreamHD/ps3mediaserver — comment on commit 6e703c7f09c3c21c09451fd54e2f0795dfece388
File: src/main/java/net/pms/dlna/DLNAResource.java line 2112
By Raptor399:

No need to introduce a deprecated variable. ;-)

You're probably emulating many of the protected or public variables that are found all over the PMS code. The reason those variables are marked as "deprecated" is that their public getters and setters were introduced later; plugin developer could be using those variables.

By marking them as "deprecated" external plugin developers are warned to stop accessing the variable (Eclipse will display the variable in strikethrough font and generate a warning), because somewhere in the future the variable will become private. So it's in there to allow developers some time to adjust to the new code.

This, however, is new code, and you nicely provided a getter and setter. No danger for losing backwards compatibility, no need to warn people.
Simply make the variable private. Force all code to use the provided getter and setter. :-)