File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
hibernate-reactive-core/src/test/java/org/hibernate/reactive/types Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -52,9 +52,7 @@ protected Collection<Class<?>> annotatedEntities() {
52
52
@ Test
53
53
public void testStringLobType (VertxTestContext context ) {
54
54
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 );
58
56
59
57
Basic basic = new Basic ();
60
58
basic .book = book ;
@@ -65,9 +63,7 @@ public void testStringLobType(VertxTestContext context) {
65
63
@ Test
66
64
public void testBytesLobType (VertxTestContext context ) {
67
65
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 ();
71
67
72
68
Basic basic = new Basic ();
73
69
basic .pic = pic ;
You can’t perform that action at this time.
0 commit comments