Skip to content

Commit 4b7a195

Browse files
committed
Improve naming of annotation variables
This makes it easier to distinguish between variables of type annotationt and java_annotationt.
1 parent 9a0aa9c commit 4b7a195

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

jbmc/src/java_bytecode/java_bytecode_convert_class.cpp

+4-5
Original file line numberDiff line numberDiff line change
@@ -1015,19 +1015,18 @@ static void find_and_replace_parameters(
10151015
/// \param annotations: The java_annotationt collection to populate
10161016
void convert_annotations(
10171017
const java_bytecode_parse_treet::annotationst &parsed_annotations,
1018-
std::vector<java_annotationt> &annotations)
1018+
std::vector<java_annotationt> &java_annotations)
10191019
{
10201020
for(const auto &annotation : parsed_annotations)
10211021
{
1022-
annotations.emplace_back(annotation.type);
1022+
java_annotations.emplace_back(annotation.type);
10231023
std::vector<java_annotationt::valuet> &values =
1024-
annotations.back().get_values();
1024+
java_annotations.back().get_values();
10251025
std::transform(
10261026
annotation.element_value_pairs.begin(),
10271027
annotation.element_value_pairs.end(),
10281028
std::back_inserter(values),
1029-
[](const decltype(annotation.element_value_pairs)::value_type &value)
1030-
{
1029+
[](const decltype(annotation.element_value_pairs)::value_type &value) {
10311030
return java_annotationt::valuet(value.element_name, value.value);
10321031
});
10331032
}

0 commit comments

Comments
 (0)