[java] Add @:keep to Resource.content

It was lost during DCE if only getString and getBytes were used...