|
11 | 11 |
|
12 | 12 | #include "generate_java_generic_type.h"
|
13 | 13 | #include <util/namespace.h>
|
14 |
| -#include <util/prefix.h> |
15 | 14 | #include <java_bytecode/java_types.h>
|
16 | 15 | #include <java_bytecode/java_utils.h>
|
17 | 16 |
|
18 |
| -/// Strip the package name from a java type, for the type to be |
19 |
| -/// pretty printed (java::java.lang.Integer -> Integer). |
20 |
| -/// \param fqn_java_type The java type we want to pretty print. |
21 |
| -/// \return The pretty printed type if there was a match of the |
22 |
| -// qualifiers, or the type as it was passed otherwise. |
23 |
| -std::string pretty_print_java_type(const std::string &fqn_java_type) |
24 |
| -{ |
25 |
| - std::string result(fqn_java_type); |
26 |
| - const std::string java_cbmc_string("java::"); |
27 |
| - // Remove the java internal cbmc identifier |
28 |
| - if(has_prefix(fqn_java_type, java_cbmc_string)) |
29 |
| - result = fqn_java_type.substr(java_cbmc_string.length()); |
30 |
| - // If the class is in package java.lang strip |
31 |
| - // package name due to default import |
32 |
| - const std::string java_lang_string("java.lang."); |
33 |
| - if(has_prefix(result, java_lang_string)) |
34 |
| - result = result.substr(java_lang_string.length()); |
35 |
| - return result; |
36 |
| -} |
37 |
| - |
38 | 17 | generate_java_generic_typet::generate_java_generic_typet(
|
39 | 18 | message_handlert &message_handler):
|
40 | 19 | message_handler(message_handler)
|
|
0 commit comments