aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-06-18 01:57:23 +0200
committerMattias Andrée <maandree@operamail.com>2013-06-18 01:57:23 +0200
commit372f6ea2f107262333ba5fb57054b956e7009a6e (patch)
treeecef0e33a02fe6a22daa6313c138d43ed3f1b3ef /src
parentm (diff)
downloadargparser-372f6ea2f107262333ba5fb57054b956e7009a6e.tar.gz
argparser-372f6ea2f107262333ba5fb57054b956e7009a6e.tar.bz2
argparser-372f6ea2f107262333ba5fb57054b956e7009a6e.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/ArgParser.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ArgParser.java b/src/ArgParser.java
index 495e07c..728e63c 100644
--- a/src/ArgParser.java
+++ b/src/ArgParser.java
@@ -472,8 +472,7 @@ public class ArgParser
for (String line : lines)
{ if (line.startsWith("PPid:"))
{
- line = line.substring(5);
- line = line.replace('\t', ' ').replace('\n', ' ').replace(" ", "");
+ line = line.substring(5).replace('\t', ' ').replace(" ", "");
pid = Integer.parseInt(line);
lvl -= 1;
continue outer;