@@ -26,7 +26,7 @@ public abstract class ProviderAdapter<G extends GlobalState<O, ? extends Abstrac
2626 int currentSelectCounts ;
2727 int currentMutationOperator = -1 ;
2828
29- public ProviderAdapter (Class <G > globalClass , Class <O > optionClass ) {
29+ protected ProviderAdapter (Class <G > globalClass , Class <O > optionClass ) {
3030 this .globalClass = globalClass ;
3131 this .optionClass = optionClass ;
3232 }
@@ -85,7 +85,7 @@ protected TestOracle<G> getTestOracle(G globalState) throws Exception {
8585 List <? extends OracleFactory <G >> testOracleFactory = globalState .getDbmsSpecificOptions ()
8686 .getTestOracleFactory ();
8787 boolean testOracleRequiresMoreThanZeroRows = testOracleFactory .stream ()
88- .anyMatch (p -> p . requiresAllTablesToContainRows () );
88+ .anyMatch (OracleFactory :: requiresAllTablesToContainRows );
8989 boolean userRequiresMoreThanZeroRows = globalState .getOptions ().testOnlyWithMoreThanZeroRows ();
9090 boolean checkZeroRows = testOracleRequiresMoreThanZeroRows || userRequiresMoreThanZeroRows ;
9191 if (checkZeroRows && globalState .getSchema ().containsTableWithZeroRows (globalState )) {
@@ -98,7 +98,7 @@ protected TestOracle<G> getTestOracle(G globalState) throws Exception {
9898 if (testOracleFactory .size () == 1 ) {
9999 return testOracleFactory .get (0 ).create (globalState );
100100 } else {
101- return new CompositeTestOracle <G >(testOracleFactory .stream ().map (o -> {
101+ return new CompositeTestOracle <>(testOracleFactory .stream ().map (o -> {
102102 try {
103103 return o .create (globalState );
104104 } catch (Exception e1 ) {
@@ -170,7 +170,7 @@ private synchronized boolean mutateTables(G globalState) throws Exception {
170170 if (Randomly .getPercentage () < globalState .getOptions ().getQPGProbability ()) {
171171 selectedActionIndex = globalState .getRandomly ().getInteger (0 , weightedAverageReward .length );
172172 } else {
173- selectedActionIndex = DBMSCommon .getMaxIndexInDoubleArrary (weightedAverageReward );
173+ selectedActionIndex = DBMSCommon .getMaxIndexInDoubleArray (weightedAverageReward );
174174 }
175175 int reward = 0 ;
176176
0 commit comments