Skip to content

Commit e1621a3

Browse files
author
thk123
committed
Hide methods relating to getting multiple type variables for specific param
It is not possible for a generic parameter to either have multiple names or have multiple instantiated types so the public interface should only return one value.
1 parent e952708 commit e1621a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/java_bytecode/java_types.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ class java_generic_parametert:public reference_typet
9090
{
9191
public:
9292
typedef symbol_typet type_variablet;
93-
typedef std::vector<type_variablet> type_variablest;
9493

9594
java_generic_parametert(
9695
const irep_idt &_type_var_name,
@@ -108,6 +107,8 @@ class java_generic_parametert:public reference_typet
108107
return type_variables().front();
109108
}
110109

110+
private:
111+
typedef std::vector<type_variablet> type_variablest;
111112
const type_variablest &type_variables() const
112113
{
113114
return (const type_variablest &)(find(ID_type_variables).get_sub());

0 commit comments

Comments
 (0)