Comment out debug. Fix TimeDiffUtil unit error message.

This commit is contained in:
Olof Larsson 2015-12-04 16:05:36 +01:00
parent 91a268e67e
commit fac00c00f4
3 changed files with 3 additions and 5 deletions

View File

@ -149,7 +149,7 @@ public abstract class Property<O, V> implements Named
public String getInheritedVisual(O object, O source, V value, CommandSender sender)
{
String string = this.getValueType().getVisual(value, sender);
if (string == null)
/*if (string == null)
{
System.out.println("value type " + this.getValueType());
System.out.println("value type name" + this.getValueType().getTypeName());
@ -157,7 +157,7 @@ public abstract class Property<O, V> implements Named
System.out.println("source " + source);
System.out.println("value " + value);
System.out.println("sender " + sender);
}
}*/
String suffix = null;
if (source != null && ! source.equals(object))

View File

@ -49,6 +49,4 @@ public class TypeMillisDiff extends TypeAbstractException<Long>
return Collections.emptySet();
}
}

View File

@ -94,7 +94,7 @@ public class TimeDiffUtil
TimeUnit unit = TimeUnit.get(unitString);
if (unit == null)
{
throw new Exception("\""+unit+"\" is not a valid time unit.");
throw new Exception("\""+unitString+"\" is not a valid time unit.");
}
// Add to the return map