Skip to content

Commit 992bd3a

Browse files
authored
Merge pull request #3247 from diffblue/refactor/bytecode-fixes
Small java_bytecode fixes
2 parents 83b655a + 3f3eb24 commit 992bd3a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

jbmc/src/java_bytecode/java_bytecode_parse_tree.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ struct java_bytecode_parse_treet
8686
struct methodt : public membert
8787
{
8888
irep_idt base_name;
89-
bool is_native, is_abstract, is_synchronized, is_bridge, is_varargs;
89+
bool is_native = false, is_abstract = false, is_synchronized = false,
90+
is_bridge = false, is_varargs = false;
9091
source_locationt source_location;
9192

9293
typedef std::vector<instructiont> instructionst;

jbmc/src/java_bytecode/java_string_library_preprocess.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Date: April 2017
3333

3434
/// \return tag of a struct prefixed by "java::" or symbolic tag
3535
/// empty string if not symbol or struct
36-
irep_idt get_tag(const typet &type)
36+
static irep_idt get_tag(const typet &type)
3737
{
3838
/// \todo Use follow instead of assuming tag to symbol relationship.
3939
if(type.id() == ID_symbol_type)
@@ -169,7 +169,7 @@ bool java_string_library_preprocesst::is_java_char_array_pointer_type(
169169
}
170170

171171
/// \return the type of the length field in java Strings.
172-
typet string_length_type()
172+
static typet string_length_type()
173173
{
174174
return java_int_type();
175175
}

0 commit comments

Comments
 (0)