Commit ac544243 authored by Matt Tucker's avatar Matt Tucker Committed by matt

Code cleanup.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@7695 b35dd754-fafc-0310-a699-88a17e54d16e
parent 78b43528
...@@ -93,13 +93,12 @@ public class HistoryStrategy { ...@@ -93,13 +93,12 @@ public class HistoryStrategy {
/** /**
* Set the maximum number of messages for strategies using message number limitations. * Set the maximum number of messages for strategies using message number limitations.
* *
* @param max The maximum number of messages to store in applicable strategies. * @param max the maximum number of messages to store in applicable strategies.
*/ */
public void setMaxNumber(int max) { public void setMaxNumber(int max) {
this.maxNumber = max; this.maxNumber = max;
if (contextPrefix != null){ if (contextPrefix != null){
JiveGlobals.setProperty(contextPrefix + ".maxNumber", JiveGlobals.setProperty(contextPrefix + ".maxNumber", Integer.toString(maxNumber));
Integer.toString(maxNumber));
} }
} }
...@@ -215,7 +214,7 @@ public class HistoryStrategy { ...@@ -215,7 +214,7 @@ public class HistoryStrategy {
* Strategy type. * Strategy type.
*/ */
public enum Type { public enum Type {
defaulType, none, all, number; defaulType, none, all, number
} }
/** /**
...@@ -252,9 +251,9 @@ public class HistoryStrategy { ...@@ -252,9 +251,9 @@ public class HistoryStrategy {
if (maxNumberString != null && maxNumberString.trim().length() > 0){ if (maxNumberString != null && maxNumberString.trim().length() > 0){
try { try {
setMaxNumber(Integer.parseInt(maxNumberString)); setMaxNumber(Integer.parseInt(maxNumberString));
}catch (Exception e){ }
Log.info("Jive property " catch (Exception e){
+ prefix + ".maxNumber not a valid number."); Log.info("Jive property " + prefix + ".maxNumber not a valid number.");
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment