Skip to content

Commit fd28d0d

Browse files
committed
Rename method_in_context to method_context
The new name makes it clearer that this field defines a context, not a method.
1 parent d74a8d8 commit fd28d0d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

jbmc/src/java_bytecode/java_bytecode_language.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ void java_bytecode_languaget::set_language_options(const optionst &options)
245245
options.get_bool_option("ignore-manifest-main-class");
246246

247247
if(options.is_set("context-include") || options.is_set("context-exclude"))
248-
method_in_context = get_context(options);
248+
method_context = get_context(options);
249249

250250
language_options_initialized=true;
251251
}
@@ -1174,7 +1174,7 @@ bool java_bytecode_languaget::convert_single_method(
11741174
lazy_class_to_declared_symbols_mapt &class_to_declared_symbols)
11751175
{
11761176
// Do not convert if method is not in context
1177-
if(method_in_context && !(*method_in_context)(id2string(function_id)))
1177+
if(method_context && !(*method_context)(id2string(function_id)))
11781178
{
11791179
return false;
11801180
}

jbmc/src/java_bytecode/java_bytecode_language.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ class java_bytecode_languaget:public languaget
297297
std::unordered_map<std::string, object_creation_referencet> references;
298298

299299
/// If set, method bodies are only elaborated if they pass the filter
300-
optionalt<prefix_filtert> method_in_context;
300+
optionalt<prefix_filtert> method_context;
301301
};
302302

303303
std::unique_ptr<languaget> new_java_bytecode_language();

0 commit comments

Comments
 (0)