Skip to content

Commit b97b80a

Browse files
Antonia LechnerAntonia Lechner
Antonia Lechner
authored and
Antonia Lechner
committed
Inline qualified_clsid variable
Naming this variable only duplicates the information that is already given in the name of the function set_class_identifier.
1 parent 34d20fa commit b97b80a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

jbmc/src/java_bytecode/java_object_factory.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -826,9 +826,10 @@ void java_object_factoryt::gen_nondet_struct_init(
826826
// This code mirrors the `remove_java_new` pass:
827827
auto initial_object = zero_initializer(expr.type(), source_locationt(), ns);
828828
CHECK_RETURN(initial_object.has_value());
829-
const irep_idt qualified_clsid = "java::" + id2string(struct_tag);
830829
set_class_identifier(
831-
to_struct_expr(*initial_object), ns, struct_tag_typet(qualified_clsid));
830+
to_struct_expr(*initial_object),
831+
ns,
832+
struct_tag_typet("java::" + id2string(struct_tag)));
832833

833834
// If the initialised type is a special-cased String type (one with length
834835
// and data fields introduced by string-library preprocessing), initialise

0 commit comments

Comments
 (0)