Corrected compiler and JavaDoc warnings