[FLINK-1218] Don't use "new Integer". Use "Integer.valueOf" instead.

There are lots of "new Integer" or something line it in the code.
We should use valueOf to avoid wasted instance creation.