From e3952516c835351e4e357c5ef3ee913ec78353d3 Mon Sep 17 00:00:00 2001
From: Simon Harrer <simon.harrer@gmail.com>
Date: Thu, 24 Oct 2013 05:50:04 -0400
Subject: [PATCH] Use equals to compare strings instead of ==

---
 src/main/java/com/gitblit/utils/ObjectCache.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/gitblit/utils/ObjectCache.java b/src/main/java/com/gitblit/utils/ObjectCache.java
index 38f2e59..48a9668 100644
--- a/src/main/java/com/gitblit/utils/ObjectCache.java
+++ b/src/main/java/com/gitblit/utils/ObjectCache.java
@@ -25,9 +25,9 @@
  * milliseconds and in fast, concurrent systems this cache is too simplistic.
  * However, for the cases where its being used in Gitblit this cache technique
  * is just fine.
- * 
+ *
  * @author James Moger
- * 
+ *
  */
 public class ObjectCache<X> implements Serializable {
 
@@ -85,13 +85,13 @@
 		obj.object = object;
 	}
 
-	public Object remove(String name) {
+	public X remove(String name) {
 		if (cache.containsKey(name)) {
 			return cache.remove(name).object;
 		}
 		return null;
 	}
-	
+
 	public int size() {
 		return cache.size();
 	}

--
Gitblit v1.9.1