DERBY-6998: Fix compilation warning when building with JDK 10; commit derby-6998-01-ab-tightenReturnType.diff.