Skip to content

Commit c1d51e6

Browse files
committed
[#1500] Remove warnings, and clean up
* No need to use a StringBuilder * Remove empty line
1 parent d2678e0 commit c1d51e6

File tree

1 file changed

+2
-6
lines changed
  • hibernate-reactive-core/src/test/java/org/hibernate/reactive/types

1 file changed

+2
-6
lines changed

hibernate-reactive-core/src/test/java/org/hibernate/reactive/types/LobTypeTest.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ protected Collection<Class<?>> annotatedEntities() {
5252
@Test
5353
public void testStringLobType(VertxTestContext context) {
5454
String text = "hello world once upon a time it was the best of times it was the worst of times goodbye";
55-
StringBuilder longText = new StringBuilder();
56-
longText.append( text.repeat( 1000 ) );
57-
String book = longText.toString();
55+
String book = text.repeat( 1000 );
5856

5957
Basic basic = new Basic();
6058
basic.book = book;
@@ -65,9 +63,7 @@ public void testStringLobType(VertxTestContext context) {
6563
@Test
6664
public void testBytesLobType(VertxTestContext context) {
6765
String text = "hello world once upon a time it was the best of times it was the worst of times goodbye";
68-
StringBuilder longText = new StringBuilder();
69-
longText.append( text.repeat( 1000 ) );
70-
byte[] pic = longText.toString().getBytes();
66+
byte[] pic = text.repeat( 1000 ).getBytes();
7167

7268
Basic basic = new Basic();
7369
basic.pic = pic;

0 commit comments

Comments
 (0)