Skip to content

Commit 5ee3271

Browse files
author
Daniel Kroening
committed
rename add_throws_exceptions
This is follow up for #4618, and a addresses a comment by Chris. The method only adds one exception, not multiple.
1 parent 4a514e4 commit 5ee3271

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

jbmc/src/java_bytecode/java_bytecode_convert_method.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ void java_bytecode_convert_methodt::convert(
561561
method_symbol.location.set_function(method_identifier);
562562

563563
for(const auto &exception_name : m.throws_exception_table)
564-
method_type.add_throws_exceptions(exception_name);
564+
method_type.add_throws_exception(exception_name);
565565

566566
const std::string signature_string = pretty_signature(method_type);
567567

jbmc/src/java_bytecode/java_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class java_method_typet : public code_typet
131131
return exceptions;
132132
}
133133

134-
void add_throws_exceptions(irep_idt exception)
134+
void add_throws_exception(irep_idt exception)
135135
{
136136
add(ID_exceptions_thrown_list).get_sub().push_back(irept(exception));
137137
}

0 commit comments

Comments
 (0)