fix: fix warnings reported by LGTM.com

This commit is contained in:
Sefa Eyeoglu
2022-06-17 16:34:32 +02:00
parent 03e454b71d
commit 9ec260619b
8 changed files with 20 additions and 11 deletions

View File

@@ -17,7 +17,7 @@ public:
is_synthetic = false;
read_be(magic);
if (magic != 0xCAFEBABE)
throw new classfile_exception();
throw classfile_exception();
read_be(minor_version);
read_be(major_version);
constants.load(*this);
@@ -153,4 +153,4 @@ public:
// FIXME: doesn't free up memory on delete
java::annotation_table visible_class_annotations;
};
}
}