-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Filter out static forwarders for Java package private methods
Co-authored-by: Guillaume Martres <[email protected]>
- Loading branch information
Showing
3 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
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
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,2 @@ | ||
public static void MyClassValue.remove(java.lang.Class) | ||
public static java.lang.Object MyClassValue.get(java.lang.Class) |
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,12 @@ | ||
object MyClassValue extends ClassValue[String] { | ||
override protected def computeValue(cls: Class[_]): String = "" | ||
} | ||
|
||
object Test { | ||
def main(args: Array[String]): Unit = { | ||
println( | ||
Class.forName("MyClassValue").getMethods | ||
.filter(m => (m.getModifiers & java.lang.reflect.Modifier.STATIC) != 0) | ||
.mkString("\n")) | ||
} | ||
} |