[SPARK-2434][MLlib]: Warning messages added and scalastyle errors fixed