Skip to content

Commit d44a551

Browse files
Various cleanups
1 parent 75beb6b commit d44a551

File tree

6 files changed

+12
-14
lines changed

6 files changed

+12
-14
lines changed

src/main/java/java/lang/Double.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ public static int hashCode(double value) {
816816
* @diffblue.fullSupport
817817
*
818818
* Until the native method doubleToRawLongBits(D) is implemented in
819-
* CBMC, this model will allow test generation for checking equality
819+
* CBMC, this model will allow JBMC for checking equality
820820
* between two Doubles.
821821
*/
822822
public boolean equals(Object obj) {

src/main/java/java/lang/Float.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ public static int hashCode(float value) {
716716
* @diffblue.fullSupport
717717
*
718718
* Until the native method floatToRawIntBits(F) is implemented in
719-
* CBMC, this model will allow test generation for checking equality
719+
* CBMC, this model will allow JBMC for checking equality
720720
* between two Floats.
721721
*/
722722
public boolean equals(Object obj) {

src/main/java/java/lang/Math.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,12 +364,10 @@ public static double log10(double a) {
364364
* result of sqrt is equal to the original number, which is not always
365365
* true. As a result, the solver will return UNSAT in many cases.
366366
* For instance, {@code Math.sqrt(2.0)} will cause the solver to be UNSAT.
367-
* Reported in: TG-5598
368367
*
369368
* Also, there are precision issues on very small numbers. For instance,
370369
* for values between 0 and {@code 0x0.0000000000001p-900}, the sqrt method
371370
* is likely to not be equal to the result of the real Math.sqrt method.
372-
* Reported in: TG-5602
373371
*/
374372
public static double sqrt(double a) {
375373
// return StrictMath.sqrt(a); // default impl. delegates to StrictMath

src/main/java/java/lang/StringBuffer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ public synchronized void setCharAt(int index, char ch) {
333333

334334
/**
335335
* @diffblue.limitedSupport
336-
* This method can be slow to generate tests due to TG-2866 and is
336+
* This method can be slow to generate tests due to an issue and is
337337
* also limited by which {@code toString()} methods have been modelled.
338338
*/
339339
@Override

src/main/java/java/lang/StringBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public StringBuilder(CharSequence seq) {
156156

157157
/**
158158
* @diffblue.limitedSupport
159-
* This method can be slow to generate tests due to TG-2866 and is
159+
* This method can be slow to generate tests due to an issue and is
160160
* also limited by which {@code toString()} methods have been modelled.
161161
*/
162162
@Override

src/main/java/java/util/Random.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public Random(long seed) {
188188
*
189189
* @diffblue.mock
190190
* @diffblue.limitedSupport
191-
* We currently ignore seeds and make test-generator pick return values
191+
* We currently ignore seeds and make JBMC pick return values
192192
* for the methods in this class nondeterministically rather than
193193
* calculating them according to a probability distribution. So this
194194
* method is simply modelled as a no-op.
@@ -374,7 +374,7 @@ public void nextBytes(byte[] bytes) {
374374
*
375375
* @diffblue.fullSupport
376376
* This method returns a nondeterministic {@code int} value.
377-
* The nondeterminism is introduced by test-generator itself, and
377+
* The nondeterminism is introduced by JBMC itself, and
378378
* probability distributions are ignored.
379379
*
380380
* @diffblue.mock
@@ -441,9 +441,9 @@ public int nextInt() {
441441
* @diffblue.limitedSupport
442442
* This method returns a nondeterministic {@code int} value between 0
443443
* (inclusive) and {@code bound} (exclusive).
444-
* The nondeterminism is introduced by test-generator itself, and
444+
* The nondeterminism is introduced by JBMC itself, and
445445
* probability distributions are ignored.
446-
* Exceptions for mocked methods are currently not supported, see TG-1387.
446+
* Exceptions for mocked methods are currently not supported.
447447
*
448448
* @diffblue.mock
449449
*/
@@ -522,7 +522,7 @@ public long nextLong() {
522522
*
523523
* @diffblue.fullSupport
524524
* This method returns a nondeterministic {@code boolean} value.
525-
* The nondeterminism is introduced by test-generator itself, and
525+
* The nondeterminism is introduced by JBMC itself, and
526526
* probability distributions are ignored.
527527
*
528528
* @diffblue.mock
@@ -572,7 +572,7 @@ public boolean nextBoolean() {
572572
* @diffblue.fullSupport
573573
* This method returns a nondeterministic {@code float} value between 0.0
574574
* (inclusive) and 1.0 (exclusive).
575-
* The nondeterminism is introduced by test-generator itself, and
575+
* The nondeterminism is introduced by JBMC itself, and
576576
* probability distributions are ignored.
577577
*
578578
* @diffblue.mock
@@ -626,7 +626,7 @@ public float nextFloat() {
626626
* @diffblue.fullSupport
627627
* This method returns a nondeterministic {@code double} value between 0.0
628628
* (inclusive) and 1.0 (exclusive).
629-
* The nondeterminism is introduced by test-generator itself, and
629+
* The nondeterminism is introduced by JBMC itself, and
630630
* probability distributions are ignored.
631631
*
632632
* @diffblue.mock
@@ -688,7 +688,7 @@ public double nextDouble() {
688688
*
689689
* @diffblue.fullSupport
690690
* This method returns a nondeterministic {@code double} value.
691-
* The nondeterminism is introduced by test-generator itself, and
691+
* The nondeterminism is introduced by JBMC itself, and
692692
* probability distributions are ignored.
693693
*
694694
* @diffblue.mock

0 commit comments

Comments
 (0)