Corrected all static warnings raised by Xlint