From 1209b8820bad58fd3865069b63f3a1125d9824bc Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 10 Jan 2022 09:54:46 -0800 Subject: compilers: push the compiler id to a class variable It really is a per class value, and shouldn't be set per instance. It also allows us to get rid of useless constructors, including those breaking mypy --- mesonbuild/compilers/java.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/compilers/java.py') diff --git a/mesonbuild/compilers/java.py b/mesonbuild/compilers/java.py index 4abf998..05c271a 100644 --- a/mesonbuild/compilers/java.py +++ b/mesonbuild/compilers/java.py @@ -30,11 +30,11 @@ if T.TYPE_CHECKING: class JavaCompiler(BasicLinkerIsCompilerMixin, Compiler): language = 'java' + id = 'unknown' def __init__(self, exelist: T.List[str], version: str, for_machine: MachineChoice, info: 'MachineInfo', full_version: T.Optional[str] = None): super().__init__(exelist, version, for_machine, info, full_version=full_version) - self.id = 'unknown' self.javarunner = 'java' def get_werror_args(self) -> T.List[str]: -- cgit v1.1