-
-
Notifications
You must be signed in to change notification settings - Fork 925
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check accesibility through a class that's in our control
1 parent
96f7273
commit 3eb55f4
Showing
2 changed files
with
18 additions
and
4 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
core/src/main/java/org/jruby/javasupport/DummyForJavaUtil.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.jruby.javasupport; | ||
|
||
/** | ||
* This class exists only for access-checks to set {@linkplain JavaUtil#CAN_SET_ACCESSIBLE} | ||
*/ | ||
public class DummyForJavaUtil { | ||
|
||
private static final Object PRIVATE = new Object[0]; | ||
public static final Object PUBLIC = PRIVATE; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters