code: public static LinearRing removeCoordinates(LinearRing g) {
          Coordinate[] coords = CoordinateUtils.removeDuplicatedCoordinates(g.getCoordinates(),false);
          return FACTORY.createLinearRing(coords);
      }
docs: Removes duplicated coordinates within a linearRing.
  
  @param g
  @return