fixed chopDelimiters() again
This commit is contained in:
parent
84ae9050f7
commit
203e409bc6
1 changed files with 5 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue