File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
hibernate-core/src/test/java/org/hibernate/orm/test/annotations/lob Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 88import org .hibernate .dialect .SybaseDialect ;
99import org .hibernate .testing .orm .junit .DomainModel ;
1010import org .hibernate .testing .orm .junit .RequiresDialect ;
11+ import org .hibernate .testing .orm .junit .SessionFactory ;
1112import org .hibernate .testing .orm .junit .SessionFactoryScope ;
1213import org .junit .jupiter .api .Test ;
1314
2728 LongStringHolder .class
2829 }
2930)
31+ @ SessionFactory
3032public class TextTest {
3133
3234 private static final int LONG_STRING_SIZE = 10000 ;
@@ -113,7 +115,7 @@ private Character[] wrapPrimitive(char[] bytes) {
113115 int length = bytes .length ;
114116 Character [] result = new Character [length ];
115117 for ( int index = 0 ; index < length ; index ++ ) {
116- result [index ] = Character . valueOf ( bytes [index ] ) ;
118+ result [index ] = bytes [index ];
117119 }
118120 return result ;
119121 }
@@ -122,7 +124,7 @@ private char[] unwrapNonPrimitive(Character[] bytes) {
122124 int length = bytes .length ;
123125 char [] result = new char [length ];
124126 for ( int i = 0 ; i < length ; i ++ ) {
125- result [i ] = bytes [i ]. charValue () ;
127+ result [i ] = bytes [i ];
126128 }
127129 return result ;
128130 }
You can’t perform that action at this time.
0 commit comments