Skip to content

Commit 42878ba

Browse files
committed
Fixed 'method redefined' warning in Map.
1 parent 1f3a7f2 commit 42878ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/concurrent/thread_safe/util/striped64.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class Cell < Concurrent::AtomicReference
8383

8484
# TODO: this only adds padding after the :value slot, need to find a way to add padding before the slot
8585
# @!visibility private
86-
attr_reader *(Array.new(12).map {|i| :"padding_#{i}"})
86+
attr_reader *(12.times.collect{ |i| "padding_#{i}".to_sym })
8787

8888
alias_method :cas, :compare_and_set
8989

0 commit comments

Comments
 (0)