Skip to content

Commit 046a2bb

Browse files
committed
Removed code that use airlift.slice, which cannot be used with JDK6
1 parent 0a62c73 commit 046a2bb

File tree

3 files changed

+0
-39
lines changed

3 files changed

+0
-39
lines changed

msgpack-core/src/test/scala/io/airlift/slice/SliceFactory.scala

Lines changed: 0 additions & 13 deletions
This file was deleted.

msgpack-core/src/test/scala/org/msgpack/core/buffer/MessageBufferTest.scala

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package org.msgpack.core.buffer
33
import java.nio.ByteBuffer
44
import scala.util.Random
55
import org.msgpack.core.MessagePackSpec
6-
import io.airlift.slice.{SliceFactory, Slice}
76

87
/**
98
* Created on 2014/05/01.
@@ -113,30 +112,6 @@ class MessageBufferTest extends MessagePackSpec {
113112

114113
}
115114

116-
"create io.airlift.slice.Slice" taggedAs("slice") in {
117-
118-
def fill(b:MessageBuffer) {
119-
for(i <- 0 until b.size()) {
120-
b.putByte(i, i.toByte)
121-
}
122-
}
123-
124-
val b = MessageBuffer.newBuffer(1024)
125-
fill(b)
126-
127-
val slice = SliceFactory.newSlice(b)
128-
b.toByteBuffer.compareTo(slice.toByteBuffer) shouldBe 0
129-
130-
val d = MessageBuffer.newDirectBuffer(1024)
131-
fill(d)
132-
133-
val slice2 = SliceFactory.newSlice(d)
134-
d.toByteBuffer.compareTo(slice2.toByteBuffer) shouldBe 0
135-
136-
137-
}
138-
139-
140115
}
141116

142117
}

project/Build.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ object Build extends Build {
135135
"org.scalacheck" % "scalacheck_2.11" % "1.11.4" % "test",
136136
"org.xerial" % "xerial-core" % "3.3.0" % "test",
137137
"org.msgpack" % "msgpack" % "0.6.9" % "test",
138-
"io.airlift" % "slice" % "0.6" % "test",
139138
"com.novocode" % "junit-interface" % "0.10" % "test"
140139
)
141140
}

0 commit comments

Comments
 (0)