We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6586ed commit 43b41a4Copy full SHA for 43b41a4
jbmc/src/java_bytecode/select_pointer_type.cpp
@@ -89,15 +89,7 @@ pointer_typet select_pointer_typet::specialize_generics(
89
{
90
optionalt<pointer_typet> result = get_recursively_instantiated_type(
91
parameter_name, generic_parameter_specialization_map);
92
- if(result.has_value())
93
- {
94
- return result.value();
95
- }
96
- else
97
98
- // return pointer type of generic parameter bound
99
- return pointer_type;
100
+ return result.has_value() ? result.value() : pointer_type;
101
}
102
103
// generic parameters can be adopted from outer classes or superclasses so
0 commit comments