21 lines
977 B
Plaintext
21 lines
977 B
Plaintext
=== on 15 Oct 2013, 09:28:56 Freddy Mallet wrote:
|
|
Is implemented by \http://jira.codehaus.org/browse/SONARJAVA-360
|
|
|
|
=== on 10 Apr 2017, 00:26:42 ron190 wrote:
|
|
I changed LinkedList to List in my project but after 4 levels of changes that I applied successively to return types and parameter types, I encountered list.getLast() and list.removeLast() but those methods do not exist in interface List.
|
|
|
|
|
|
Is it right to use list.get(list.size()-1) instead of list.getLast() in term of performances and complexity ?
|
|
|
|
|
|
LinkedList keeps references to both head and tail and offers a complexity of O(1), is it the same with list.get(list.size()-1) ?
|
|
|
|
|
|
Posted to Groups (thank you Ann)
|
|
|
|
https://groups.google.com/forum/#!topic/sonarqube/jc0WU-8RE94
|
|
|
|
=== on 10 Apr 2017, 15:53:31 Ann Campbell wrote:
|
|
\[~ron190] this isn't the best place to initiate a discussion. You'll reach a broader audience if you go to the https://groups.google.com/forum/#!forum/sonarqube[SonarQube Google Group]
|
|
|