refine Point of java