Tabs -> spaces
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4742 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -35,24 +35,24 @@ public class Log
|
||||
/** Convenience function. */
|
||||
public static void debug (String message)
|
||||
{
|
||||
log.fine(message);
|
||||
log.fine(message);
|
||||
}
|
||||
|
||||
/** Convenience function. */
|
||||
public static void info (String message)
|
||||
{
|
||||
log.info(message);
|
||||
log.info(message);
|
||||
}
|
||||
|
||||
/** Convenience function. */
|
||||
public static void warning (String message)
|
||||
{
|
||||
log.warning(message);
|
||||
log.warning(message);
|
||||
}
|
||||
|
||||
/** Convenience function. */
|
||||
public static void logStackTrace (Throwable t)
|
||||
{
|
||||
log.log(Level.WARNING, t.getMessage(), t);
|
||||
log.log(Level.WARNING, t.getMessage(), t);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -830,20 +830,20 @@ public class DObject
|
||||
*/
|
||||
protected final Field getField (String name)
|
||||
{
|
||||
int low = 0, high = _fields.length-1;
|
||||
while (low <= high) {
|
||||
int mid = (low + high) >> 1;
|
||||
Field midVal = _fields[mid];
|
||||
int cmp = midVal.getName().compareTo(name);
|
||||
if (cmp < 0) {
|
||||
low = mid + 1;
|
||||
} else if (cmp > 0) {
|
||||
high = mid - 1;
|
||||
} else {
|
||||
return midVal; // key found
|
||||
int low = 0, high = _fields.length-1;
|
||||
while (low <= high) {
|
||||
int mid = (low + high) >> 1;
|
||||
Field midVal = _fields[mid];
|
||||
int cmp = midVal.getName().compareTo(name);
|
||||
if (cmp < 0) {
|
||||
low = mid + 1;
|
||||
} else if (cmp > 0) {
|
||||
high = mid - 1;
|
||||
} else {
|
||||
return midVal; // key found
|
||||
}
|
||||
}
|
||||
return null; // key not found.
|
||||
}
|
||||
return null; // key not found.
|
||||
}
|
||||
|
||||
/** Our object id. */
|
||||
|
||||
@@ -117,7 +117,7 @@ public class NodeRepository extends JORARepository
|
||||
@Override // documentation inherited
|
||||
protected void createTables ()
|
||||
{
|
||||
_ntable = new Table<NodeRecord>(NodeRecord.class, "NODES", "NODE_NAME", true);
|
||||
_ntable = new Table<NodeRecord>(NodeRecord.class, "NODES", "NODE_NAME", true);
|
||||
}
|
||||
|
||||
protected Table<NodeRecord> _ntable;
|
||||
|
||||
@@ -546,7 +546,7 @@ public class ConnectionManager extends LoopingThread
|
||||
int ncapacity = Math.max(_outbuf.capacity() << 1, data.length);
|
||||
log.info("Expanding output buffer size [nsize=" + ncapacity + "].");
|
||||
_outbuf = ByteBuffer.allocateDirect(ncapacity);
|
||||
}
|
||||
}
|
||||
|
||||
boolean fully = true;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user