using @deprecated instead of deprecated in javadoc