提交 591d4428 authored 作者: Noel Grandin's avatar Noel Grandin

fix unlikely-type-argument warning

上级 5eb47fa3
...@@ -447,7 +447,6 @@ public class TestMVTableEngine extends TestBase { ...@@ -447,7 +447,6 @@ public class TestMVTableEngine extends TestBase {
stat.execute("insert into test select x, repeat('0', 10000) " + stat.execute("insert into test select x, repeat('0', 10000) " +
"from system_range(1, 10)"); "from system_range(1, 10)");
stat.execute("drop table test"); stat.execute("drop table test");
stat.equals("call @temp := cast(repeat('0', 10000) as blob)");
stat.execute("create table test2(id int, data blob)"); stat.execute("create table test2(id int, data blob)");
PreparedStatement prep = conn.prepareStatement( PreparedStatement prep = conn.prepareStatement(
"insert into test2 values(?, ?)"); "insert into test2 values(?, ?)");
......
...@@ -339,7 +339,7 @@ public class TestStreamStore extends TestBase { ...@@ -339,7 +339,7 @@ public class TestStreamStore extends TestBase {
assertEquals(10, map.size()); assertEquals(10, map.size());
assertEquals(10, tests.get()); assertEquals(10, tests.get());
for (int i = 0; i < 10; i++) { for (int i = 0; i < 10; i++) {
map.containsKey(i); map.containsKey((long)i);
} }
assertEquals(20, tests.get()); assertEquals(20, tests.get());
store = new StreamStore(map); store = new StreamStore(map);
...@@ -354,7 +354,7 @@ public class TestStreamStore extends TestBase { ...@@ -354,7 +354,7 @@ public class TestStreamStore extends TestBase {
assertEquals(15, store.getNextKey()); assertEquals(15, store.getNextKey());
assertEquals(15, map.size()); assertEquals(15, map.size());
for (int i = 0; i < 15; i++) { for (int i = 0; i < 15; i++) {
map.containsKey(i); map.containsKey((long)i);
} }
} }
......
...@@ -191,6 +191,7 @@ public class TestDate extends TestBase { ...@@ -191,6 +191,7 @@ public class TestDate extends TestBase {
} }
} }
@SuppressWarnings("unlikely-arg-type")
private void testValueTimestamp() { private void testValueTimestamp() {
assertEquals( assertEquals(
"2001-02-03 04:05:06.0", ValueTimestamp.get( "2001-02-03 04:05:06.0", ValueTimestamp.get(
......
...@@ -235,6 +235,7 @@ public class ClassReader { ...@@ -235,6 +235,7 @@ public class ClassReader {
readAttributes(); readAttributes();
} }
@SuppressWarnings("unlikely-arg-type")
private Token getResult() { private Token getResult() {
while (true) { while (true) {
readByteCode(); readByteCode();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论