fixed chopDelimiters() again

This commit is contained in:
stefanp 2003-06-24 14:42:59 +00:00
parent 84ae9050f7
commit 203e409bc6

View file

@ -35,7 +35,11 @@ public final class Util {
line = line.trim();
if (line == null) {
return null;
} else if (line.startsWith("/**")) {
}
if (line.endsWith("*/")) {
line = line.substring(0, line.length() - 2);
}
if (line.startsWith("/**")) {
line = line.substring(3).trim();
} else if (line.startsWith("/*")) {
line = line.substring(2).trim();
@ -44,9 +48,6 @@ public final class Util {
} else if (line.startsWith("//")) {
line = line.substring(2).trim();
}
if (line.endsWith("*/")) {
line = line.substring(0, line.length() - 2);
}
return line;
}