upgrade scala version of java filter map sample