Fixed warnings reported by Eclipse