Spelling and naming.

pull/566/head
Brett Wooldridge 9 years ago
parent 852bbff2ad
commit 6f49960d13

@ -256,16 +256,16 @@ public interface ClockSource
@Override
public String elapsedDisplayString(long startTime, long endTime)
{
long elapsedMs = elapsedNanos(startTime, endTime);
long elapsedNanos = elapsedNanos(startTime, endTime);
StringBuilder sb = new StringBuilder(elapsedMs < 0 ? "-" : "");
elapsedMs = Math.abs(elapsedMs);
StringBuilder sb = new StringBuilder(elapsedNanos < 0 ? "-" : "");
elapsedNanos = Math.abs(elapsedNanos);
for (TimeUnit unit : TIMEUNITS_DESCENDING) {
long converted = unit.convert(elapsedMs, NANOSECONDS);
long converted = unit.convert(elapsedNanos, NANOSECONDS);
if (converted > 0) {
sb.append(converted).append(TIMEUNIT_DISPLAY_VALUES[unit.ordinal()]);
elapsedMs -= NANOSECONDS.convert(converted, unit);
elapsedNanos -= NANOSECONDS.convert(converted, unit);
}
}

@ -465,7 +465,7 @@ public class StubConnection extends StubBaseConnection implements Connection
/** {@inheritDoc} */
public void abort(Executor executor) throws SQLException
{
throw new SQLException("Intentianal exception during abort");
throw new SQLException("Intentional exception during abort");
}
/** {@inheritDoc} */

Loading…
Cancel
Save