From 0e44acbb2fec928a1606dc60f427a148fff405c9 Mon Sep 17 00:00:00 2001
From: Mohamed Ragab <moragab@gmail.com>
Date: Wed, 02 May 2012 11:15:01 -0400
Subject: [PATCH] Added a script to facilitate setting the proxy host and port and no proxy hosts, and then it concatenates all the java system properties for setting the java proxy configurations and puts the resulting string in an environment variable JAVA_PROXY_CONFIG, modified the scirpts gitblit,  gitblit-ubuntu, and gitblit-centos to source the java-proxy-config.sh script and then include the resulting java proxy configuration in the java command

---
 src/com/gitblit/models/TicketModel.java |   51 ++++++++++++++++++++++++++++++++-------------------
 1 files changed, 32 insertions(+), 19 deletions(-)

diff --git a/src/com/gitblit/models/TicketModel.java b/src/com/gitblit/models/TicketModel.java
index d86a073..b8043c6 100644
--- a/src/com/gitblit/models/TicketModel.java
+++ b/src/com/gitblit/models/TicketModel.java
@@ -21,6 +21,12 @@
 import java.util.Date;
 import java.util.List;
 
+/**
+ * TicketModel is a serializable model class that represents a Ticgit ticket.
+ * 
+ * @author James Moger
+ * 
+ */
 public class TicketModel implements Serializable, Comparable<TicketModel> {
 
 	private static final long serialVersionUID = 1L;
@@ -50,6 +56,32 @@
 		}
 	}
 
+	@Override
+	public int hashCode() {
+		return id.hashCode();
+	}
+
+	@Override
+	public boolean equals(Object o) {
+		if (o instanceof TicketModel) {
+			TicketModel other = (TicketModel) o;
+			return id.equals(other.id);
+		}
+		return super.equals(o);
+	}
+
+	@Override
+	public int compareTo(TicketModel o) {
+		return date.compareTo(o.date);
+	}
+
+	/**
+	 * Comment is a serializable model class that represents a Ticgit ticket
+	 * comment.
+	 * 
+	 * @author James Moger
+	 * 
+	 */
 	public static class Comment implements Serializable, Comparable<Comment> {
 
 		private static final long serialVersionUID = 1L;
@@ -83,24 +115,5 @@
 		public int compareTo(Comment o) {
 			return date.compareTo(o.date);
 		}
-	}
-
-	@Override
-	public int hashCode() {
-		return id.hashCode();
-	}
-
-	@Override
-	public boolean equals(Object o) {
-		if (o instanceof TicketModel) {
-			TicketModel other = (TicketModel) o;
-			return id.equals(other.id);
-		}
-		return super.equals(o);
-	}
-
-	@Override
-	public int compareTo(TicketModel o) {
-		return date.compareTo(o.date);
 	}
 }

--
Gitblit v1.9.1