]> source.dussan.org Git - gitblit.git/commitdiff
[findbugs] Clarify class used for resource loading
authorJames Moger <james.moger@gitblit.com>
Fri, 18 Apr 2014 02:15:47 +0000 (22:15 -0400)
committerJames Moger <james.moger@gitblit.com>
Fri, 18 Apr 2014 03:08:07 +0000 (23:08 -0400)
src/main/java/com/gitblit/manager/GitblitManager.java

index 61a09491038d5ec7211d53ff287298cb12e7de49..790445a7e22b5bcd24b6eece6a26bc70979cda4b 100644 (file)
@@ -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();