Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/main/java/java/lang/String.java
Original file line number Diff line number Diff line change
Expand Up @@ -3873,9 +3873,7 @@ public static String copyValueOf(char data[]) {
* @diffblue.untested
*/
public static String valueOf(boolean b) {
// DIFFBLUE MODEL LIBRARY This is treated internally in CBMC
return CProver.nondetWithoutNullForNotModelled();
// return b ? "true" : "false";
return b ? "true" : "false";
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/java/lang/StringBuffer.java
Original file line number Diff line number Diff line change
Expand Up @@ -505,11 +505,11 @@ public synchronized StringBuffer append(char[] str, int offset, int len) {
*/
@Override
public synchronized StringBuffer append(boolean b) {
// DIFFBLUE MODEL LIBRARY this is replaced internally
// DIFFBLUE MODEL LIBRARY do not use cache
// toStringCache = null;
// super.append(b);
// return this;
return CProver.nondetWithoutNullForNotModelled();
return append(b ? "true" : "false");
}

/**
Expand Down