diff options
author | Patrick Quist <partouf@gmail.com> | 2024-04-16 21:26:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-16 21:26:53 +0200 |
commit | b8325cf0c62654c905ba871ab36991e10164b53b (patch) | |
tree | f86c39d4f025704a7c2df7ad978d9c7856878002 /lib/compilers/java.ts | |
parent | 1fc1b9f7c6deab9f799884051e875f7d28c1db0f (diff) | |
download | compiler-explorer-b8325cf0c62654c905ba871ab36991e10164b53b.tar.gz compiler-explorer-b8325cf0c62654c905ba871ab36991e10164b53b.zip |
eslint root setting and fixes (#6307)gh-11409
Diffstat (limited to 'lib/compilers/java.ts')
-rw-r--r-- | lib/compilers/java.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/compilers/java.ts b/lib/compilers/java.ts index 2555507f9..894f04a0f 100644 --- a/lib/compilers/java.ts +++ b/lib/compilers/java.ts @@ -27,7 +27,9 @@ import path from 'path'; import fs from 'fs-extra'; import type {ParsedAsmResult, ParsedAsmResultLine} from '../../types/asmresult/asmresult.interfaces.js'; +import {BypassCache} from '../../types/compilation/compilation.interfaces.js'; import type {PreliminaryCompilerInfo} from '../../types/compiler.interfaces.js'; +import {ExecutableExecutionOptions} from '../../types/execution/execution.interfaces.js'; import type {ParseFiltersAndOutputOptions} from '../../types/features/filters.interfaces.js'; import {unwrap} from '../assert.js'; import {BaseCompiler, SimpleOutputFilenameCompiler} from '../base-compiler.js'; @@ -35,8 +37,6 @@ import {logger} from '../logger.js'; import * as utils from '../utils.js'; import {JavaParser} from './argument-parsers.js'; -import {BypassCache} from '../../types/compilation/compilation.interfaces.js'; -import {ExecutableExecutionOptions} from '../../types/execution/execution.interfaces.js'; export class JavaCompiler extends BaseCompiler implements SimpleOutputFilenameCompiler { static get key() { @@ -308,7 +308,7 @@ export class JavaCompiler extends BaseCompiler implements SimpleOutputFilenameCo // 8: <code> // -1: <code> // default: <code> - const match = codeLineCandidate.match(/\s+([-\d]+|default): (.*)/); + const match = codeLineCandidate.match(/\s+([\d-]+|default): (.*)/); if (match) { const instrOffset = Number.parseInt(match[1]); method.instructions.push({ |