handled java compiler warnings