Fix warnings 2 (#1130)

* FIX: warnings (add generics, overrides, fix imports) - should be no effecive code change

* replaced deprecated methods by default methods

* FIX: more compiler warnings

* FIX more warnings - no code changes

* FIX: deprecated call to JsonParseException

* Remove unused code, check unused variables
This commit is contained in:
Roland Praml
2017-09-14 00:32:48 +12:00
committed by Rob Bygrave
parent ac6708e0d0
commit b66f18bfd6
17 changed files with 30 additions and 79 deletions
@@ -12,6 +12,8 @@ import org.tests.model.basic.Order;
import org.tests.model.basic.ResetBasicData;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
import java.util.List;
public class TestAutofetchTuneWithJoin extends BaseTestCase {
@@ -51,7 +53,7 @@ public class TestAutofetchTuneWithJoin extends BaseTestCase {
SpiQuery<?> sq = (SpiQuery<?>) q;
ObjectGraphNode parentNode = sq.getParentNode();
ObjectGraphOrigin origin = parentNode.getOriginQueryPoint();
assertThat(origin).isNotNull();
// MetaAutoFetchStatistic metaAutoFetchStatistic =
// ((DefaultOrmQuery<?>)q).getMetaAutoFetchStatistic();
// if (metaAutoFetchStatistic != null) {