@@ -254,12 +254,12 @@ inline java_generic_typet &to_java_generic_type(typet &type)
254
254
// / vector of java_generic_type variables.
255
255
// /
256
256
// / For example, a class definition `class MyGenericClass<T>`
257
- class java_generics_class_typet : public java_class_typet
257
+ class java_generic_class_typet : public java_class_typet
258
258
{
259
259
public:
260
260
typedef std::vector<java_generic_parametert> generic_typest;
261
261
262
- java_generics_class_typet ()
262
+ java_generic_class_typet ()
263
263
{
264
264
set (ID_C_java_generics_class_type, true );
265
265
}
@@ -277,27 +277,27 @@ class java_generics_class_typet:public java_class_typet
277
277
278
278
// / \param type: the type to check
279
279
// / \return true if type is a java class type with generics
280
- inline bool is_java_generics_class_type (const typet &type)
280
+ inline bool is_java_generic_class_type (const typet &type)
281
281
{
282
282
return type.get_bool (ID_C_java_generics_class_type);
283
283
}
284
284
285
285
// / \param type: the type to check
286
286
// / \return cast of type to java_generics_class_typet
287
- inline const java_generics_class_typet & to_java_generics_class_type (
288
- const java_class_typet &type)
287
+ inline const java_generic_class_typet &
288
+ to_java_generic_class_type ( const java_class_typet &type)
289
289
{
290
- PRECONDITION (is_java_generics_class_type (type));
291
- return static_cast <const java_generics_class_typet &>(type);
290
+ PRECONDITION (is_java_generic_class_type (type));
291
+ return static_cast <const java_generic_class_typet &>(type);
292
292
}
293
293
294
294
// / \param type: source type
295
295
// / \return cast of type into a java class type with generics
296
- inline java_generics_class_typet & to_java_generics_class_type (
297
- java_class_typet &type)
296
+ inline java_generic_class_typet &
297
+ to_java_generic_class_type ( java_class_typet &type)
298
298
{
299
- PRECONDITION (is_java_generics_class_type (type));
300
- return static_cast <java_generics_class_typet &>(type);
299
+ PRECONDITION (is_java_generic_class_type (type));
300
+ return static_cast <java_generic_class_typet &>(type);
301
301
}
302
302
303
303
// / Access information of instantiated type params of java instantiated type.
@@ -318,9 +318,8 @@ inline const typet &java_generic_get_inst_type(
318
318
// / \param index: the index of the type variable
319
319
// / \param type: the type from which to extract the type variable
320
320
// / \return the name of the generic type variable of t at the given index
321
- inline const irep_idt &java_generics_class_type_var (
322
- size_t index,
323
- const java_generics_class_typet &type)
321
+ inline const irep_idt &
322
+ java_generic_class_type_var (size_t index, const java_generic_class_typet &type)
324
323
{
325
324
const std::vector<java_generic_parametert> &gen_types=type.generic_types ();
326
325
@@ -334,13 +333,11 @@ inline const irep_idt &java_generics_class_type_var(
334
333
// / \param index: the index of the type variable
335
334
// / \param t: the type from which to extract the type bound
336
335
// / \return the type of the bound of the type variable
337
- inline const typet &java_generics_class_type_bound (
338
- size_t index,
339
- const typet &t)
336
+ inline const typet &java_generic_class_type_bound (size_t index, const typet &t)
340
337
{
341
- PRECONDITION (is_java_generics_class_type (t));
342
- const java_generics_class_typet &type=
343
- to_java_generics_class_type (to_java_class_type (t));
338
+ PRECONDITION (is_java_generic_class_type (t));
339
+ const java_generic_class_typet &type =
340
+ to_java_generic_class_type (to_java_class_type (t));
344
341
const std::vector<java_generic_parametert> &gen_types=type.generic_types ();
345
342
346
343
PRECONDITION (index <gen_types.size ());
@@ -381,7 +378,7 @@ inline typet java_type_from_string_with_exception(
381
378
// / \param identifier The string identifier of the type of the component.
382
379
// / \return Optional with the size if the identifier was found.
383
380
inline const optionalt<size_t > java_generics_get_index_for_subtype (
384
- const java_generics_class_typet &t,
381
+ const java_generic_class_typet &t,
385
382
const irep_idt &identifier)
386
383
{
387
384
const std::vector<java_generic_parametert> &gen_types=
0 commit comments