@@ -101,7 +101,7 @@ public char getDelimiter() {
101101 }
102102
103103 public CSVFormat withDelimiter (char delimiter ) {
104- CSVFormat format = ( CSVFormat ) clone ();
104+ CSVFormat format = clone ();
105105 format .delimiter = delimiter ;
106106 return format ;
107107 }
@@ -111,7 +111,7 @@ public char getEncapsulator() {
111111 }
112112
113113 public CSVFormat withEncapsulator (char encapsulator ) {
114- CSVFormat format = ( CSVFormat ) clone ();
114+ CSVFormat format = clone ();
115115 format .encapsulator = encapsulator ;
116116 return format ;
117117 }
@@ -125,7 +125,7 @@ public char getCommentStart() {
125125 }
126126
127127 public CSVFormat withCommentStart (char commentStart ) {
128- CSVFormat format = ( CSVFormat ) clone ();
128+ CSVFormat format = clone ();
129129 format .commentStart = commentStart ;
130130 return format ;
131131 }
@@ -139,7 +139,7 @@ public char getEscape() {
139139 }
140140
141141 public CSVFormat withEscape (char escape ) {
142- CSVFormat format = ( CSVFormat ) clone ();
142+ CSVFormat format = clone ();
143143 format .escape = escape ;
144144 return format ;
145145 }
@@ -153,7 +153,7 @@ public boolean isLeadingSpacesIgnored() {
153153 }
154154
155155 public CSVFormat withLeadingSpacesIgnored (boolean leadingSpacesIgnored ) {
156- CSVFormat format = ( CSVFormat ) clone ();
156+ CSVFormat format = clone ();
157157 format .leadingSpacesIgnored = leadingSpacesIgnored ;
158158 return format ;
159159 }
@@ -163,7 +163,7 @@ public boolean isTrailingSpacesIgnored() {
163163 }
164164
165165 public CSVFormat withTrailingSpacesIgnored (boolean trailingSpacesIgnored ) {
166- CSVFormat format = ( CSVFormat ) clone ();
166+ CSVFormat format = clone ();
167167 format .trailingSpacesIgnored = trailingSpacesIgnored ;
168168 return format ;
169169 }
@@ -173,7 +173,7 @@ public boolean isUnicodeEscapesInterpreted() {
173173 }
174174
175175 public CSVFormat withUnicodeEscapesInterpreted (boolean unicodeEscapesInterpreted ) {
176- CSVFormat format = ( CSVFormat ) clone ();
176+ CSVFormat format = clone ();
177177 format .unicodeEscapesInterpreted = unicodeEscapesInterpreted ;
178178 return format ;
179179 }
@@ -183,7 +183,7 @@ public boolean isEmptyLinesIgnored() {
183183 }
184184
185185 public CSVFormat withEmptyLinesIgnored (boolean emptyLinesIgnored ) {
186- CSVFormat format = ( CSVFormat ) clone ();
186+ CSVFormat format = clone ();
187187 format .emptyLinesIgnored = emptyLinesIgnored ;
188188 return format ;
189189 }
@@ -193,14 +193,14 @@ public String getLineSeparator() {
193193 }
194194
195195 public CSVFormat withLineSeparator (String lineSeparator ) {
196- CSVFormat format = ( CSVFormat ) clone ();
196+ CSVFormat format = clone ();
197197 format .lineSeparator = lineSeparator ;
198198 return format ;
199199 }
200200
201- protected Object clone () {
201+ protected CSVFormat clone () {
202202 try {
203- return super .clone ();
203+ return ( CSVFormat ) super .clone ();
204204 } catch (CloneNotSupportedException e ) {
205205 throw (Error ) new InternalError ().initCause (e );
206206 }
0 commit comments