We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8148d3 commit e268b4eCopy full SHA for e268b4e
src/com/nikhaldimann/inieditor/IniEditor.java
@@ -500,10 +500,9 @@ public void save(OutputStream stream) throws IOException {
500
* @throws IOException at an I/O problem
501
*/
502
public void save(OutputStreamWriter streamWriter) throws IOException {
503
- Iterator<String> it = this.sectionOrder.iterator();
504
PrintWriter writer = new PrintWriter(streamWriter, true);
505
- while (it.hasNext()) {
506
- Section sect = getSection(it.next());
+ for (String sectionName : sectionOrder) {
+ Section sect = getSection(sectionName);
507
writer.println(sect.header());
508
sect.save(writer);
509
}
0 commit comments