File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
presto-tests/src/main/java/io/prestosql/tests/sql Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1818import static java .lang .Character .MAX_RADIX ;
1919import static java .lang .Math .abs ;
2020import static java .lang .Math .min ;
21+ import static java .util .Objects .requireNonNull ;
2122
2223public class TestTable
2324 implements AutoCloseable
@@ -30,7 +31,9 @@ public class TestTable
3031
3132 public TestTable (SqlExecutor sqlExecutor , String namePrefix , String createDdlTemplate )
3233 {
33- this .sqlExecutor = sqlExecutor ;
34+ this .sqlExecutor = requireNonNull (sqlExecutor , "sqlExecutor is null" );
35+ requireNonNull (namePrefix , "namePrefix is null" );
36+ requireNonNull (createDdlTemplate , "createDdlTemplate is null" );
3437 this .name = namePrefix + "_" + randomTableSuffix ();
3538 sqlExecutor .execute (createDdlTemplate .replace ("{TABLE_NAME}" , this .name ));
3639 }
You can’t perform that action at this time.
0 commit comments