Re: [PATCH] Support for UTC Zones with TimeZone.getTimeZone()

2017-12-20 Thread Mohamed Naufal
quot;, so I'd rather fix it in > GregorianCalendar.from() to recognize those "UTC+offset" zones. > > Naoto > > > On 12/16/17 2:27 AM, Mohamed Naufal wrote: > >> Hi, >> >> I noticed that with the following data: >> >> LocalDateTime

[PATCH] Support for UTC Zones with TimeZone.getTimeZone()

2017-12-16 Thread Mohamed Naufal
Hi, I noticed that with the following data: LocalDateTime ldt = LocalDateTime.parse("2017-01-01T00:00:00"); ZonedDateTime dt1 = ZonedDateTime.of(ldt, ZoneId.of("GMT+10")); ZonedDateTime dt2 = ZonedDateTime.of(ldt, ZoneId.of("UTC+10")); dt1.equals(dt2) returns true as expected, but with: Gregori

Re: [PATCH] Implement a noop clear() for Collections#EMPTY_LIST

2016-05-28 Thread Mohamed Naufal
nce > difference? All those calls sound like things easy to JIT. > > On Sat, May 28, 2016, 11:26 AM Mohamed Naufal wrote: > >> Hi, >> >> You're right of course, I should have been clearer, no allocation happens >> for clear() on EmptyMap or EmptySet

Re: [PATCH] Implement a noop clear() for Collections#EMPTY_LIST

2016-05-28 Thread Mohamed Naufal
direct override. Thanks, Naufal On 28 May 2016 at 22:32, Louis Wasserman wrote: > Is it? IIRC EmptyMap and EmptySet will use a singleton unmodifiable empty > Iterator, so they won't incur any allocation, and the clear() will finish > immediately with no work anyway. > > On Sat

Re: [PATCH] Implement a noop clear() for Collections#EMPTY_LIST

2016-05-28 Thread Mohamed Naufal
(no matter how small) you need to become a > contributor, which requires that you agree to the Oracle Contributor > Agreement (OCA), see: > > http://openjdk.java.net/contribute/ > > Thanks, > Paul. > > > On 22 May 2016, at 12:10, Mohamed Naufal wrote: > > > &

Re: [PATCH] Implement a noop clear() for Collections#EMPTY_LIST

2016-05-23 Thread Mohamed Naufal
or, which requires that you agree to the Oracle Contributor > Agreement (OCA), see: > > http://openjdk.java.net/contribute/ > > Thanks, > Paul. > > > On 22 May 2016, at 12:10, Mohamed Naufal wrote: > > > > Hi, > > > > A call to clear() on Collect

[PATCH] Implement a noop clear() for Collections#EMPTY_LIST

2016-05-22 Thread Mohamed Naufal
patch # User Mohamed Naufal # Date 1463909563 -19800 # Sun May 22 15:02:43 2016 +0530 # Node ID df323f5c5f30ae3443063d5a2c40ee780cacce78 # Parent f8a3c1510f9525398d41bce83d79265762288e18 Collections: Implement a noop clear() for EmptyList diff -r f8a3c1510f95 -r df323f5c5f30 src/java.base