Skip to content

Commit f0a7f6e

Browse files
committed
[ci] Use 'L' instead of 'l' for long
1 parent 5fb0ea6 commit f0a7f6e

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/test/java/org/apache/ibatis/type/BlobTypeHandlerTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void shouldSetParameter() throws Exception {
4545
@Test
4646
public void shouldGetResultFromResultSetByName() throws Exception {
4747
when(rs.getBlob("column")).thenReturn(blob);
48-
when(blob.length()).thenReturn(3l);
48+
when(blob.length()).thenReturn(3L);
4949
when(blob.getBytes(1, 3)).thenReturn(new byte[] { 1, 2, 3 });
5050
assertArrayEquals(new byte[] { 1, 2, 3 }, TYPE_HANDLER.getResult(rs, "column"));
5151
}
@@ -61,7 +61,7 @@ public void shouldGetResultNullFromResultSetByName() throws Exception {
6161
@Test
6262
public void shouldGetResultFromResultSetByPosition() throws Exception {
6363
when(rs.getBlob(1)).thenReturn(blob);
64-
when(blob.length()).thenReturn(3l);
64+
when(blob.length()).thenReturn(3L);
6565
when(blob.getBytes(1, 3)).thenReturn(new byte[] { 1, 2, 3 });
6666
assertArrayEquals(new byte[] { 1, 2, 3 }, TYPE_HANDLER.getResult(rs, 1));
6767
}
@@ -77,7 +77,7 @@ public void shouldGetResultNullFromResultSetByPosition() throws Exception {
7777
@Test
7878
public void shouldGetResultFromCallableStatement() throws Exception {
7979
when(cs.getBlob(1)).thenReturn(blob);
80-
when(blob.length()).thenReturn(3l);
80+
when(blob.length()).thenReturn(3L);
8181
when(blob.getBytes(1, 3)).thenReturn(new byte[] { 1, 2, 3 });
8282
assertArrayEquals(new byte[] { 1, 2, 3 }, TYPE_HANDLER.getResult(cs, 1));
8383
}

src/test/java/org/apache/ibatis/type/ClobTypeHandlerTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void shouldSetParameter() throws Exception {
4545
@Test
4646
public void shouldGetResultFromResultSetByName() throws Exception {
4747
when(rs.getClob("column")).thenReturn(clob);
48-
when(clob.length()).thenReturn(3l);
48+
when(clob.length()).thenReturn(3L);
4949
when(clob.getSubString(1, 3)).thenReturn("Hello");
5050
assertEquals("Hello", TYPE_HANDLER.getResult(rs, "column"));
5151
}
@@ -61,7 +61,7 @@ public void shouldGetResultNullFromResultSetByName() throws Exception {
6161
@Test
6262
public void shouldGetResultFromResultSetByPosition() throws Exception {
6363
when(rs.getClob(1)).thenReturn(clob);
64-
when(clob.length()).thenReturn(3l);
64+
when(clob.length()).thenReturn(3L);
6565
when(clob.getSubString(1, 3)).thenReturn("Hello");
6666
assertEquals("Hello", TYPE_HANDLER.getResult(rs, 1));
6767
}
@@ -77,7 +77,7 @@ public void shouldGetResultNullFromResultSetByPosition() throws Exception {
7777
@Test
7878
public void shouldGetResultFromCallableStatement() throws Exception {
7979
when(cs.getClob(1)).thenReturn(clob);
80-
when(clob.length()).thenReturn(3l);
80+
when(clob.length()).thenReturn(3L);
8181
when(clob.getSubString(1, 3)).thenReturn("Hello");
8282
assertEquals("Hello", TYPE_HANDLER.getResult(cs, 1));
8383
}

src/test/java/org/apache/ibatis/type/NClobTypeHandlerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void shouldSetParameter() throws Exception {
4545
@Test
4646
public void shouldGetResultFromResultSetByName() throws Exception {
4747
when(rs.getClob("column")).thenReturn(clob);
48-
when(clob.length()).thenReturn(3l);
48+
when(clob.length()).thenReturn(3L);
4949
when(clob.getSubString(1, 3)).thenReturn("Hello");
5050
assertEquals("Hello", TYPE_HANDLER.getResult(rs, "column"));
5151
}

0 commit comments

Comments
 (0)