@@ -40,8 +40,7 @@ SCENARIO(
40
40
" generate_java_generic_type_from_file" ,
41
41
" [core][java_bytecode][generate_java_generic_type]" )
42
42
{
43
- auto expected_symbol=
44
- " java::generic_two_fields$bound_element<java::java.lang.Integer>" ;
43
+ auto expected_symbol = " java::generic_two_fields$bound_element<Integer>" ;
45
44
46
45
GIVEN (" A generic java type with two generic fields and a concrete "
47
46
" substitution" )
@@ -56,8 +55,8 @@ SCENARIO(
56
55
REQUIRE (new_symbol_table.has_symbol (expected_symbol));
57
56
THEN (" The class should contain two instantiated fields." )
58
57
{
59
- const auto &class_symbol= new_symbol_table.lookup (
60
- " java::generic_two_fields$bound_element<java::java.lang. Integer>" );
58
+ const auto &class_symbol = new_symbol_table.lookup (
59
+ " java::generic_two_fields$bound_element<Integer>" );
61
60
const typet &symbol_type=class_symbol->type ;
62
61
63
62
REQUIRE (symbol_type.id ()==ID_struct);
@@ -89,10 +88,8 @@ SCENARIO(
89
88
" generate_java_generic_type_from_file_two_params" ,
90
89
" [core][java_bytecode][generate_java_generic_type]" )
91
90
{
92
- auto expected_symbol=
93
- " java::generic_two_parameters$KeyValuePair"
94
- " <java::java.lang.String,"
95
- " java::java.lang.Integer>" ;
91
+ auto expected_symbol =
92
+ " java::generic_two_parameters$KeyValuePair<String, Integer>" ;
96
93
97
94
GIVEN (" A generic java type with two generic parameters, like a Hashtable" )
98
95
{
@@ -133,10 +130,8 @@ SCENARIO(
133
130
// After we have loaded the class and converted the generics,
134
131
// the presence of these two symbols in the symbol table is
135
132
// proof enough that we did the work we needed to do correctly.
136
- auto first_expected_symbol=
137
- " java::generic_two_instances$element<java::java.lang.Boolean>" ;
138
- auto second_expected_symbol=
139
- " java::generic_two_instances$element<java::java.lang.Integer>" ;
133
+ auto first_expected_symbol = " java::generic_two_instances$element<Boolean>" ;
134
+ auto second_expected_symbol = " java::generic_two_instances$element<Integer>" ;
140
135
141
136
GIVEN (" A generic java type with a field that refers to another generic with"
142
137
" an uninstantiated parameter." )
@@ -284,9 +279,8 @@ SCENARIO(
284
279
" There should be a specialised version of the class in the symbol "
285
280
" table" )
286
281
{
287
- const irep_idt specialised_class_name = id2string (harness_class) + " $" +
288
- id2string (inner_class) +
289
- " <java::java.lang.Float>" ;
282
+ const irep_idt specialised_class_name =
283
+ id2string (harness_class) + " $" + id2string (inner_class) + " <Float>" ;
290
284
REQUIRE (new_symbol_table.has_symbol (specialised_class_name));
291
285
292
286
const symbolt test_class_symbol =
0 commit comments