summaryrefslogtreecommitdiff
path: root/qadevOOo/runner/graphical/IniFile.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/runner/graphical/IniFile.java')
-rw-r--r--qadevOOo/runner/graphical/IniFile.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/qadevOOo/runner/graphical/IniFile.java b/qadevOOo/runner/graphical/IniFile.java
index 65303c876f8f..46173e4fb4ed 100644
--- a/qadevOOo/runner/graphical/IniFile.java
+++ b/qadevOOo/runner/graphical/IniFile.java
@@ -27,7 +27,7 @@ import java.util.Enumeration;
Helper class to give a simple API to read/write windows like ini files
*/
/* public */ // is only need, if we need this class outside package convwatch
-public class IniFile implements Enumeration
+public class IniFile implements Enumeration<String>
{
/**
@@ -423,10 +423,10 @@ public class IniFile implements Enumeration
if (sLine.startsWith("["))
{
// write an extra empty line before next section.
- aWriter.writeByte((int) '\n');
+ aWriter.writeByte('\n');
}
aWriter.writeBytes(sLine);
- aWriter.writeByte((int) '\n');
+ aWriter.writeByte('\n');
}
aWriter.close();
}
@@ -648,7 +648,7 @@ public class IniFile implements Enumeration
* Enumeration Interface
* @return a key without the enveloped '[' ']'
*/
- public Object nextElement()
+ public String nextElement()
{
int nLineWithSection = findNextSection(m_aEnumerationPos);
if (nLineWithSection != -1)