Re: Remove redundant calls of toString()

2014-04-30 Thread Joe Darcy
inspector/Utils.java Sun Apr 27 14:33:45 2014 -0300 @@ -378,7 +378,7 @@ if (userInput instanceof XObject) { result[i] = ((XObject) userInput).getObject(); } else { -result[i] = createObjectFromString(params[i].toString(), +

Re: Remove redundant calls of toString()

2014-04-30 Thread Claes Redestad
On 2014-04-30 13:08, Remi Forax wrote: On 04/29/2014 11:20 AM, Claes Redestad wrote: On 2014-04-29 09:31, Remi Forax wrote: On 04/28/2014 05:43 PM, Claes Redestad wrote: On 04/28/2014 08:57 AM, David Holmes wrote: On 28/04/2014 1:05 PM, Otávio Gonçalves de Santana wrote: In my opinion not,

Re: Remove redundant calls of toString()

2014-04-30 Thread Remi Forax
On 04/29/2014 11:20 AM, Claes Redestad wrote: On 2014-04-29 09:31, Remi Forax wrote: On 04/28/2014 05:43 PM, Claes Redestad wrote: On 04/28/2014 08:57 AM, David Holmes wrote: On 28/04/2014 1:05 PM, Otávio Gonçalves de Santana wrote: In my opinion not, because Objects.requireNonNull is more re

Re: Remove redundant calls of toString()

2014-04-29 Thread Andrew Haley
On 04/29/2014 10:58 AM, David Holmes wrote: > On 29/04/2014 7:40 PM, Andrew Haley wrote: >> On 04/28/2014 07:57 AM, David Holmes wrote: >>> On 28/04/2014 1:05 PM, Otávio Gonçalves de Santana wrote: In my opinion not, because Objects.requireNonNull is more readable than just string.toStrin

Re: Remove redundant calls of toString()

2014-04-29 Thread David Holmes
On 29/04/2014 7:40 PM, Andrew Haley wrote: On 04/28/2014 07:57 AM, David Holmes wrote: On 28/04/2014 1:05 PM, Otávio Gonçalves de Santana wrote: In my opinion not, because Objects.requireNonNull is more readable than just string.toString. This way is more understandable which field is required

Re: Remove redundant calls of toString()

2014-04-29 Thread Andrew Haley
On 04/28/2014 07:57 AM, David Holmes wrote: > On 28/04/2014 1:05 PM, Otávio Gonçalves de Santana wrote: >> In my opinion not, because Objects.requireNonNull is more readable than >> just string.toString. This way is more understandable which field is >> required and doesn't impact on performance. >

Re: Remove redundant calls of toString()

2014-04-29 Thread Claes Redestad
On 2014-04-29 09:31, Remi Forax wrote: On 04/28/2014 05:43 PM, Claes Redestad wrote: On 04/28/2014 08:57 AM, David Holmes wrote: On 28/04/2014 1:05 PM, Otávio Gonçalves de Santana wrote: In my opinion not, because Objects.requireNonNull is more readable than just string.toString. This way is

Re: Remove redundant calls of toString()

2014-04-29 Thread Remi Forax
hat there aren't any issues arising from changing this? n 4/27/2014 6:15 AM, Otávio Gonçalves de Santana wrote: There is an issue that was opened to remove redundant calls of toString() on String objects. [1] I went deep on all JVM sources and I found all, 32 changes. [1]https://bu

Re: Remove redundant calls of toString()

2014-04-29 Thread Remi Forax
On 04/28/2014 05:43 PM, Claes Redestad wrote: On 04/28/2014 08:57 AM, David Holmes wrote: On 28/04/2014 1:05 PM, Otávio Gonçalves de Santana wrote: In my opinion not, because Objects.requireNonNull is more readable than just string.toString. This way is more understandable which field is requir

Re: Remove redundant calls of toString()

2014-04-28 Thread Jim Graham
to avoid having the string be a compile-time constant that can be inlined into other files. Has anyone checked that there aren't any issues arising from changing this? n 4/27/2014 6:15 AM, Otávio Gonçalves de Santana wrote: There is an issue that was opened to remove redundant calls of

Re: Remove redundant calls of toString()

2014-04-28 Thread Phil Race
constant that can be inlined into other files. Has anyone checked that there aren't any issues arising from changing this? n 4/27/2014 6:15 AM, Otávio Gonçalves de Santana wrote: There is an issue that was opened to remove redundant calls of toString() on String objects. [1] I went deep

Re: Remove redundant calls of toString()

2014-04-28 Thread Claes Redestad
On 04/28/2014 08:57 AM, David Holmes wrote: On 28/04/2014 1:05 PM, Otávio Gonçalves de Santana wrote: In my opinion not, because Objects.requireNonNull is more readable than just string.toString. This way is more understandable which field is required and doesn't impact on performance. An invo

Re: Remove redundant calls of toString()

2014-04-28 Thread Paul Benedict
On Apr 27, 2014, at 3:15 PM, Otávio Gonçalves de Santana < > > otaviopolianasant...@gmail.com> wrote: > > > > > There is an issue that was opened to remove redundant calls of > toString() > > > on String objects. [1] > > > I went deep on all JVM source

Re: Remove redundant calls of toString()

2014-04-28 Thread Otávio Gonçalves de Santana
ed services is > fairly easy to use, and therefore will make it easier to accept such > patches. > > Paul. > > On Apr 27, 2014, at 3:15 PM, Otávio Gonçalves de Santana < > otaviopolianasant...@gmail.com> wrote: > > > There is an issue that was opened to remove red

Re: Remove redundant calls of toString()

2014-04-28 Thread Otávio Gonçalves de Santana
/__java2d/loops/TransformBlit.__java >> Wed Apr 23 >> 11:35:40 2014 -0700 >> +++ b/src/share/classes/sun/__java2d/loops/TransformBlit.__java >> Sun Apr 27 >> 14:33:45 2014 -0300 >> @@ -47,7

Re: Remove redundant calls of toString()

2014-04-28 Thread David Holmes
+++ b/src/share/classes/sun/tools/__jconsole/inspector/Utils.java Sun Apr 27 14:33:45 2014 -0300 @@ -378,7 +378,7 @@ if (userInput instanceof XObject) { result[i] = ((XObject) userInput).getObject();

Re: Remove redundant calls of toString()

2014-04-28 Thread Paul Sandoz
was opened to remove redundant calls of toString() > on String objects. [1] > I went deep on all JVM sources and I found all, 32 changes.

Re: Remove redundant calls of toString()

2014-04-27 Thread Otávio Gonçalves de Santana
;ScaledBlit(...)".toString(); >> +public static final String methodSignature = "ScaledBlit(...)"; >> >> public static final int primTypeID = makePrimTypeID(); >> >> diff -r e323c74edabd src/share/classes/sun/java2d/ >> loops/TransformBl

Re: Remove redundant calls of toString()

2014-04-27 Thread David Holmes
share/classes/sun/tools/jconsole/inspector/Utils.java --- a/src/share/classes/sun/tools/jconsole/inspector/Utils.java Wed Apr 23 11:35:40 2014 -0700 +++ b/src/share/classes/sun/tools/jconsole/inspector/Utils.java Sun Apr 27 14:33:45 2014 -0300 @@ -378,7 +378,7 @@ if (userInput instanceof XObject) {

Re: Remove redundant calls of toString()

2014-04-27 Thread Otávio Gonçalves de Santana
rc/share/classes/sun/tools/jconsole/inspector/Utils.java --- a/src/share/classes/sun/tools/jconsole/inspector/Utils.java Wed Apr 23 11:35:40 2014 -0700 +++ b/src/share/classes/sun/tools/jconsole/inspector/Utils.java Sun Apr 27 14:33:45 2014 -0300 @@ -378,7 +378,7 @@ if (userInput ins

Remove redundant calls of toString()

2014-04-27 Thread Otávio Gonçalves de Santana
There is an issue that was opened to remove redundant calls of toString() on String objects. [1] I went deep on all JVM sources and I found all, 32 changes. [1]https://bugs.openjdk.java.net/browse/JDK-8015470 diff -r e323c74edabd src/share/classes/com/sun/tools/example/debug/tty/Commands.java

Re: Remove redundant calls of toString()

2014-04-27 Thread Remi Forax
On 04/27/2014 03:15 PM, Otávio Gonçalves de Santana wrote: There is an issue that was opened to remove redundant calls of toString() on String objects. [1] I went deep on all JVM sources and I found all, 32 changes. [1]https://bugs.openjdk.java.net/browse/JDK-8015470 Otavio, calling toString

Remove redundant calls of toString()

2014-04-27 Thread Otávio Gonçalves de Santana
There is an issue that was opened to remove redundant calls of toString() on String objects. [1] I went deep on all JVM sources and I found all, 32 changes. [1]https://bugs.openjdk.java.net/browse/JDK-8015470 diff -r e323c74edabd src/share/classes/com/sun/tools/example/debug/tty/Commands.java

hg: jdk8/tl/jdk: 8015470: Remove redundant calls of toString() on String objects

2013-06-06 Thread david . holmes
Changeset: 571e5f452640 Author:dholmes Date: 2013-06-06 05:32 -0400 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/571e5f452640 8015470: Remove redundant calls of toString() on String objects Reviewed-by: dholmes, alanb Contributed-by: Otavio Goncalves ! src/share/classes/com