Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2020-02-07 08:52:01 +0000
committerLars Vogel2020-02-11 07:52:07 +0000
commit5ed004a04bbeed73c9e96764acbd9bc55b012d2d (patch)
tree278aec702b4ab2bf441b330be3e81f94812b88b5 /bundles/org.eclipse.team.cvs.ui
parent67c004a6dfd488bb8322bdb724cf2d3baa3ad9fb (diff)
downloadeclipse.platform.team-5ed004a04bbeed73c9e96764acbd9bc55b012d2d.tar.gz
eclipse.platform.team-5ed004a04bbeed73c9e96764acbd9bc55b012d2d.tar.xz
eclipse.platform.team-5ed004a04bbeed73c9e96764acbd9bc55b012d2d.zip
Use map method directly if possible
JDT provides a new cleanup which allows to transform code to call methods directly on map instead of accessing the values or the keys before calling the same method. Saves code which we have to read and might be slightly faster. Change-Id: If957522bcf8ad88721ac35e989695e17080b59a9 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'bundles/org.eclipse.team.cvs.ui')
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/RemoteLogOperation.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/RemoteLogOperation.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/RemoteLogOperation.java
index 521acc8b0..2e5f4979b 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/RemoteLogOperation.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/RemoteLogOperation.java
@@ -66,7 +66,7 @@ public class RemoteLogOperation extends RepositoryLocationOperation {
*/
public ILogEntry[] getLogEntries(String path) {
Map<String, ILogEntry> map = internalGetLogEntries(path);
- return map.values().toArray(new ILogEntry[map.values().size()]);
+ return map.values().toArray(new ILogEntry[map.size()]);
}
private ILogEntry internalGetLogEntry(String path, String revision) {

Back to the top