File tree 1 file changed +4
-4
lines changed
test/micro/org/openjdk/bench/java/util
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
56
56
@ Fork (3 )
57
57
@ State (Scope .Thread )
58
58
public class TreeMapUpdate {
59
- @ Param ({"TreeMap" , "descendingMap" , "tailMap " })
59
+ @ Param ({"TreeMap" , "descendingMap" , "subMap " })
60
60
public String mode ;
61
61
62
62
@ Param ({"10" , "1000" , "100000" })
@@ -86,8 +86,8 @@ public void setUp() {
86
86
case "descendingMap" :
87
87
transformer = map -> map .descendingMap ();
88
88
break ;
89
- case "tailMap " :
90
- transformer = map -> map .tailMap (0 , true );
89
+ case "subMap " :
90
+ transformer = comparator ? map -> map . headMap ( 0 , true ) : map -> map .tailMap (0 , true );
91
91
break ;
92
92
default :
93
93
throw new IllegalStateException (mode );
You can’t perform that action at this time.
0 commit comments