[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-patch-tracker] [patch #9067] java sources part 1
From: |
Mike Miller |
Subject: |
[Octave-patch-tracker] [patch #9067] java sources part 1 |
Date: |
Sat, 13 Aug 2016 03:58:45 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0 |
Follow-up Comment #12, patch #9067 (project octave):
As Ernst explained to me in another bug report, the Java class static methods
java.lang.Byte.valueOf(byte)
java.lang.Double.valueOf(double)
java.lang.Float.valueOf(float)
java.lang.Integer.valueOf(int)
java.lang.Long.valueOf(long)
java.lang.Short.valueOf(short)
should be preferred to the normal constructor or auto-constructing a class
wrapper from the primitive value. These static methods maintain a cache of
frequently used values.
See
https://docs.oracle.com/javase/7/docs/api/java/lang/Long.html#valueOf(long)
for the official description, which says that this method should be preferred
to calling the default constructor.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?9067>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-patch-tracker] [patch #9067] java sources part 1, (continued)
- [Octave-patch-tracker] [patch #9067] java sources part 1, Ernst Reissner, 2016/08/10
- [Octave-patch-tracker] [patch #9067] java sources part 1, Ernst Reissner, 2016/08/10
- [Octave-patch-tracker] [patch #9067] java sources part 1, Ernst Reissner, 2016/08/11
- [Octave-patch-tracker] [patch #9067] java sources part 1, Mike Miller, 2016/08/11
- [Octave-patch-tracker] [patch #9067] java sources part 1, Mike Miller, 2016/08/11
- [Octave-patch-tracker] [patch #9067] java sources part 1, Ernst Reissner, 2016/08/11
- [Octave-patch-tracker] [patch #9067] java sources part 1, Ernst Reissner, 2016/08/11
- [Octave-patch-tracker] [patch #9067] java sources part 1, Ernst Reissner, 2016/08/11
- [Octave-patch-tracker] [patch #9067] java sources part 1, Ernst Reissner, 2016/08/11
- [Octave-patch-tracker] [patch #9067] java sources part 1, John W. Eaton, 2016/08/12
- [Octave-patch-tracker] [patch #9067] java sources part 1,
Mike Miller <=