aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/java.ts
diff options
context:
space:
mode:
authorOfek <ofekshilon@gmail.com>2024-03-10 10:04:29 +0200
committerGitHub <noreply@github.com>2024-03-10 10:04:29 +0200
commit8dd09d1c1f0e44db48d6fa42083a42377dd572fe (patch)
tree55daf629e22c7d2472851ef54119f070c91bcf51 /lib/compilers/java.ts
parent1764c7c3874ba6e8a30ee4fe2c6e1812d442c748 (diff)
downloadcompiler-explorer-8dd09d1c1f0e44db48d6fa42083a42377dd572fe.tar.gz
compiler-explorer-8dd09d1c1f0e44db48d6fa42083a42377dd572fe.zip
Replace the deprecated `substr` with `substring` (#6236)gh-10941
Just some minor homekeeping.
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) {