src/share/classes/java/lang/AbstractStringBuilder.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 687,697 ****
*
* @param f a {@code float}.
* @return a reference to this object.
*/
public AbstractStringBuilder append(float f) {
! new FloatingDecimal(f).appendTo(this);
return this;
}
/**
* Appends the string representation of the {@code double}
--- 687,697 ----
*
* @param f a {@code float}.
* @return a reference to this object.
*/
public AbstractStringBuilder append(float f) {
! FloatingDecimal.appendTo(f,this);
return this;
}
/**
* Appends the string representation of the {@code double}
*** 704,714 ****
*
* @param d a {@code double}.
* @return a reference to this object.
*/
public AbstractStringBuilder append(double d) {
! new FloatingDecimal(d).appendTo(this);
return this;
}
/**
* Removes the characters in a substring of this sequence.
--- 704,714 ----
*
* @param d a {@code double}.
* @return a reference to this object.
*/
public AbstractStringBuilder append(double d) {
! FloatingDecimal.appendTo(d,this);
return this;
}
/**
* Removes the characters in a substring of this sequence.