Created
March 18, 2013 14:27
-
-
Save tehbeard/5187521 to your computer and use it in GitHub Desktop.
Getting package at runtime, (even if shaded to another package hopefully)
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
package foo.bar; | |
public class TestClass { | |
public static void main(String[] args){ | |
//Get package at runtime | |
System.out.println(TestClass.class.getPackage().getName()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment