Skip to content

Instantly share code, notes, and snippets.

@wytten
Created May 7, 2014 15:47
Show Gist options
  • Save wytten/22f4e533d6ff8dbc16d1 to your computer and use it in GitHub Desktop.
Save wytten/22f4e533d6ff8dbc16d1 to your computer and use it in GitHub Desktop.
This is the method invoked by java.lang.Class.getResourceAsStream()...See the comment, I don't think it is intuitive behavior
/**
* Add a package name prefix if the name is not absolute Remove leading "/"
* if name is absolute
*/
private String resolveName(String name) {
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment