Skip to content

Instantly share code, notes, and snippets.

@shellac
Created March 9, 2010 13:51
Show Gist options
  • Save shellac/326585 to your computer and use it in GitHub Desktop.
Save shellac/326585 to your computer and use it in GitHub Desktop.
public class FieldTest {
public String f = "hi";
public static void main(String[] args) throws Exception {
boolean a = FieldTest.class.getDeclaredField("f").isAccessible();
System.out.println("Got: " + a);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment