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
12 changes: 6 additions & 6 deletions src/main/java/java/lang/StringBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ public StringBuilder insert(int offset, boolean b) {
// return this;
if ((offset < 0) || (offset > length()))
throw new StringIndexOutOfBoundsException(offset);
return CProverString.insert(this, offset, b);
return CProverString.insert(this, offset, String.valueOf(b));
}

/**
Expand All @@ -502,7 +502,7 @@ public StringBuilder insert(int offset, char c) {
// return this;
if ((offset < 0) || (offset > length()))
throw new IndexOutOfBoundsException();
return CProverString.insert(this, offset, c);
return CProverString.insert(this, offset, String.valueOf(c));
}

/**
Expand All @@ -517,7 +517,7 @@ public StringBuilder insert(int offset, int i) {
// return this;
if ((offset < 0) || (offset > length()))
throw new StringIndexOutOfBoundsException(offset);
return CProverString.insert(this, offset, i);
return CProverString.insert(this, offset, String.valueOf(i));
}

/**
Expand All @@ -533,7 +533,7 @@ public StringBuilder insert(int offset, long l) {
// return this;
if ((offset < 0) || (offset > length()))
throw new StringIndexOutOfBoundsException(offset);
return CProverString.insert(this, offset, l);
return CProverString.insert(this, offset, String.valueOf(l));
}

/**
Expand All @@ -549,7 +549,7 @@ public StringBuilder insert(int offset, float f) {
// return this;
if ((offset < 0) || (offset > length()))
throw new StringIndexOutOfBoundsException(offset);
return CProverString.insert(this, offset, f);
return CProverString.insert(this, offset, String.valueOf(f));
}

/**
Expand All @@ -567,7 +567,7 @@ public StringBuilder insert(int offset, double d) {
// return this;
if ((offset < 0) || (offset > length()))
throw new StringIndexOutOfBoundsException(offset);
return CProverString.insert(this, offset, d);
return CProverString.insert(this, offset, String.valueOf(d));
}

/**
Expand Down
84 changes: 0 additions & 84 deletions src/main/java/org/cprover/CProverString.java
Original file line number Diff line number Diff line change
Expand Up @@ -172,90 +172,6 @@ public static StringBuilder insert(
return CProver.nondetWithoutNullForNotModelled();
}

/**
* Inserts the string representation of the {@code boolean}
* argument into this sequence.
*
* @param instance the StringBuilder instance
* @param offset the offset.
* @param b a {@code boolean}.
* @return the modified StringBuilder.
*/
public static StringBuilder insert(
StringBuilder instance, int offset, boolean b) {
return CProver.nondetWithoutNullForNotModelled();
}

/**
* Inserts the string representation of the {@code char}
* argument into this sequence.
*
* @param instance the StringBuilder instance
* @param offset the offset.
* @param c a {@code char}.
* @return the modified StringBuilder.
*/
public static StringBuilder insert(
StringBuilder instance, int offset, char c) {
return CProver.nondetWithoutNullForNotModelled();
}

/**
* Inserts the string representation of the {@code int}
* argument into this sequence.
*
* @param instance the StringBuilder instance
* @param offset the offset.
* @param i a {@code int}.
* @return the modified StringBuilder.
*/
public static StringBuilder insert(
StringBuilder instance, int offset, int i) {
return CProver.nondetWithoutNullForNotModelled();
}

/**
* Inserts the string representation of the {@code long}
* argument into this sequence.
*
* @param instance the StringBuilder instance
* @param offset the offset.
* @param l a {@code long}.
* @return the modified StringBuilder.
*/
public static StringBuilder insert(
StringBuilder instance, int offset, long l) {
return CProver.nondetWithoutNullForNotModelled();
}

/**
* Inserts the string representation of the {@code float}
* argument into this sequence.
*
* @param instance the StringBuilder instance
* @param offset the offset.
* @param f a {@code float}.
* @return the modified StringBuilder.
*/
public static StringBuilder insert(
StringBuilder instance, int offset, float f) {
return CProver.nondetWithoutNullForNotModelled();
}

/**
* Inserts the string representation of the {@code double}
* argument into this sequence.
*
* @param instance the StringBuilder instance
* @param offset the offset.
* @param d a {@code double}.
* @return the modified StringBuilder.
*/
public static StringBuilder insert(
StringBuilder instance, int offset, double d) {
return CProver.nondetWithoutNullForNotModelled();
}

/**
* Sets the length of the character sequence.
*
Expand Down