Michael Keppler
2fc00af44e
refactor: simplify collection.toArray()
On recent VMs, collection.toArray(new T[0]) is faster than collection.toArray(new T[collection.size()]). Since it is also more readable, it should now be the preferred way of collection to array conversion. https://shipilev.net/blog/2016/arrays-wisdom-ancients/ Change-Id: I80388532fb4b2b0663ee1fe8baa94f5df55c8442 Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de> |
преди 5 години | |
---|---|---|
.. | ||
AccessEvent.java | Remove further unnecessary 'final' keywords | преди 6 години |
AppServer.java | refactor: simplify collection.toArray() | преди 5 години |
HttpTestCase.java | Fix remaining javadoc errors raised by doclint | преди 6 години |
MockServletConfig.java | Fix javadoc in org.eclipse.jgit.junit.http | преди 6 години |
RecordingLogger.java | Remove 'final' in parameter lists | преди 6 години |
SimpleHttpServer.java | Remove 'final' in parameter lists | преди 6 години |
TestRequestLog.java | Configure Semaphore used in TestRequestLog to be fair | преди 6 години |