Skip to content

Commit

Permalink
Update Field.kt
Browse files Browse the repository at this point in the history
added the accessible for Method type
  • Loading branch information
pokk authored Apr 18, 2019
1 parent 0064b23 commit e03e405
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kotlinshaver/src/main/java/com/devrapid/kotlinshaver/Field.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.devrapid.kotlinshaver

import java.lang.reflect.Field
import java.lang.reflect.Method

inline fun Field.accessible() = apply { isAccessible = true }

inline fun Method.accessible() = apply { isAccessible = true }

0 comments on commit e03e405

Please sign in to comment.