aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/java.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compilers/java.ts')
-rw-r--r--lib/compilers/java.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compilers/java.ts b/lib/compilers/java.ts
index 8fea06be2..2555507f9 100644
--- a/lib/compilers/java.ts
+++ b/lib/compilers/java.ts
@@ -382,7 +382,7 @@ export class JavaCompiler extends BaseCompiler implements SimpleOutputFilenameCo
if (lastIndex !== -1) {
// Get "interesting" text after the LineNumbers table (header of next method/tail of file)
// trimRight() because of trailing \r on Windows
- textsBeforeMethod.push(codeAndLineNumberTable.substr(lastIndex).trimEnd());
+ textsBeforeMethod.push(codeAndLineNumberTable.substring(lastIndex).trimEnd());
}
if (currentSourceLine !== -1) {