Skip to content

Commit 0181005

Browse files
committed
spike: Experimenting with privacy.
1 parent de789ad commit 0181005

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ext/com/concurrent_ruby/ext/SynchronizationLibrary.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public IRubyObject initialize(ThreadContext context, IRubyObject[] args, Block b
5555
}
5656
}
5757

58-
@JRubyMethod(name = "synchronize", visibility = Visibility.PROTECTED)
58+
@JRubyMethod(name = "synchronize", visibility = Visibility.PRIVATE)
5959
public IRubyObject rubySynchronize(ThreadContext context, Block block) {
6060
synchronized (this) {
6161
return block.yield(context, null);

lib/concurrent/delay.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ def initialize(opts = {}, &block)
7272
super(opts, &block)
7373
end
7474

75+
protected :synchronize
76+
7577
# Return the value this object represents after applying the options
7678
# specified by the `#set_deref_options` method. If the delayed operation
7779
# raised an exception this method will return nil. The execption object

0 commit comments

Comments
 (0)