diff options
author | James Moger <james.moger@gitblit.com> | 2014-04-17 22:15:47 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-04-17 23:08:07 -0400 |
commit | 1d78b8b372f15d89f10fd32cb0227a6a7966de3c (patch) | |
tree | 38e750bedcd57c26a1edb73d4c46b5be68090fd8 | |
parent | 7c95e9cf122b933823d7743c9b7e91f065bd59be (diff) | |
download | gitblit-1d78b8b372f15d89f10fd32cb0227a6a7966de3c.tar.gz gitblit-1d78b8b372f15d89f10fd32cb0227a6a7966de3c.zip |
[findbugs] Clarify class used for resource loading
-rw-r--r-- | src/main/java/com/gitblit/manager/GitblitManager.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/gitblit/manager/GitblitManager.java b/src/main/java/com/gitblit/manager/GitblitManager.java index 61a09491..790445a7 100644 --- a/src/main/java/com/gitblit/manager/GitblitManager.java +++ b/src/main/java/com/gitblit/manager/GitblitManager.java @@ -441,7 +441,7 @@ public class GitblitManager implements IGitblit { // no user definitions, use system definitions if (!clientApplications.hasCurrent("system", new Date(0))) { try { - InputStream is = getClass().getResourceAsStream("/clientapps.json"); + InputStream is = GitblitManager.class.getResourceAsStream("/clientapps.json"); Collection<GitClientApplication> clients = readClientApplications(is); is.close(); if (clients != null) { @@ -483,7 +483,7 @@ public class GitblitManager implements IGitblit { // Read bundled Gitblit properties to extract setting descriptions. // This copy is pristine and only used for populating the setting // models map. - InputStream is = getClass().getResourceAsStream("/reference.properties"); + InputStream is = GitblitManager.class.getResourceAsStream("/reference.properties"); BufferedReader propertiesReader = new BufferedReader(new InputStreamReader(is)); StringBuilder description = new StringBuilder(); SettingModel setting = new SettingModel(); |