mirror of https://github.com/apache/cassandra
Switched to Guava 16.0 for CASSANDRA-6639
This commit is contained in:
parent
5fe0600744
commit
88bef0cbf3
|
|
@ -340,7 +340,7 @@
|
|||
<dependency groupId="org.xerial.snappy" artifactId="snappy-java" version="1.0.5"/>
|
||||
<dependency groupId="net.jpountz.lz4" artifactId="lz4" version="1.2.0"/>
|
||||
<dependency groupId="com.ning" artifactId="compress-lzf" version="0.8.4"/>
|
||||
<dependency groupId="com.google.guava" artifactId="guava" version="15.0"/>
|
||||
<dependency groupId="com.google.guava" artifactId="guava" version="16.0"/>
|
||||
<dependency groupId="commons-cli" artifactId="commons-cli" version="1.1"/>
|
||||
<dependency groupId="commons-codec" artifactId="commons-codec" version="1.2"/>
|
||||
<dependency groupId="org.apache.commons" artifactId="commons-lang3" version="3.1"/>
|
||||
|
|
@ -418,7 +418,6 @@
|
|||
<dependency groupId="org.apache.hadoop" artifactId="hadoop-minicluster"/>
|
||||
<dependency groupId="org.apache.pig" artifactId="pig"/>
|
||||
<dependency groupId="com.google.code.findbugs" artifactId="jsr305"/>
|
||||
<dependency groupId="io.airlift" artifactId="airline"/>
|
||||
</artifact:pom>
|
||||
|
||||
<artifact:pom id="coverage-deps-pom"
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -55,13 +55,12 @@ public class TraceState
|
|||
this.coordinator = coordinator;
|
||||
this.sessionId = sessionId;
|
||||
sessionIdBytes = ByteBufferUtil.bytes(sessionId);
|
||||
watch = new Stopwatch();
|
||||
watch.start();
|
||||
watch = Stopwatch.createStarted();
|
||||
}
|
||||
|
||||
public int elapsed()
|
||||
{
|
||||
long elapsed = watch.elapsedTime(TimeUnit.MICROSECONDS);
|
||||
long elapsed = watch.elapsed(TimeUnit.MICROSECONDS);
|
||||
return elapsed < Integer.MAX_VALUE ? (int) elapsed : Integer.MAX_VALUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue