code: public static Polygon removeHolesPolygon(Polygon polygon) {
          return new Polygon((LinearRing) polygon.getExteriorRing(), null, polygon.getFactory());
      }
docs: Create a new polygon without hole.
  
  @param polygon
  @return