From dfd6f5d75aebd7a0a41305831ec6d194ae092f5d Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Thu, 17 Apr 2014 23:08:07 -0400
Subject: [PATCH] [findbugs] Fix potential NPE in DiffStat generation
---
src/main/java/com/gitblit/manager/IRuntimeManager.java | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/src/main/java/com/gitblit/manager/IRuntimeManager.java b/src/main/java/com/gitblit/manager/IRuntimeManager.java
index 178b93c..acd3a57 100644
--- a/src/main/java/com/gitblit/manager/IRuntimeManager.java
+++ b/src/main/java/com/gitblit/manager/IRuntimeManager.java
@@ -24,7 +24,7 @@
import com.gitblit.models.ServerSettings;
import com.gitblit.models.ServerStatus;
-public interface IRuntimeManager {
+public interface IRuntimeManager extends IManager {
void setBaseFolder(File folder);
@@ -34,6 +34,7 @@
* Returns the preferred timezone for the Gitblit instance.
*
* @return a timezone
+ * @since 1.4.0
*/
TimeZone getTimezone();
@@ -42,6 +43,7 @@
* or if it is merely a repository viewer.
*
* @return true if Gitblit is serving repositories
+ * @since 1.4.0
*/
boolean isServingRepositories();
@@ -49,6 +51,7 @@
* Determine if this Gitblit instance is running in debug mode
*
* @return true if Gitblit is running in debug mode
+ * @since 1.4.0
*/
boolean isDebugMode();
@@ -56,15 +59,23 @@
* Returns the boot date of the Gitblit server.
*
* @return the boot date of Gitblit
+ * @since 1.4.0
*/
Date getBootDate();
+ /**
+ * Returns the server status.
+ *
+ * @return the server status
+ * @since 1.4.0
+ */
ServerStatus getStatus();
/**
* Returns the descriptions/comments of the Gitblit config settings.
*
* @return SettingsModel
+ * @since 1.4.0
*/
ServerSettings getSettingsModel();
@@ -72,6 +83,7 @@
* Returns the file object for the specified configuration key.
*
* @return the file
+ * @since 1.4.0
*/
File getFileOrFolder(String key, String defaultFileOrFolder);
@@ -83,6 +95,7 @@
* access based on environment or some other indicator.
*
* @return the file
+ * @since 1.4.0
*/
File getFileOrFolder(String fileOrFolder);
@@ -90,6 +103,7 @@
* Returns the runtime settings.
*
* @return settings
+ * @since 1.4.0
*/
IStoredSettings getSettings();
@@ -98,6 +112,7 @@
*
* @param settings
* @return true if the update succeeded
+ * @since 1.4.0
*/
boolean updateSettings(Map<String, String> updatedSettings);
}
\ No newline at end of file
--
Gitblit v1.9.1