diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/ans/AnsLmsAPITemplate.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/ans/AnsLmsAPITemplate.java index d167f16f..c8e9fa16 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/ans/AnsLmsAPITemplate.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/ans/AnsLmsAPITemplate.java @@ -206,7 +206,9 @@ public class AnsLmsAPITemplate extends AbstractCachedCourseAccess implements Lms @Override protected Supplier> allQuizzesSupplier(final FilterMap filterMap) { + @SuppressWarnings("unused") final String quizName = filterMap.getString(QuizData.FILTER_ATTR_QUIZ_NAME); + @SuppressWarnings("unused") final DateTime quizFromTime = (filterMap != null) ? filterMap.getQuizFromTime() : null; return () -> { @@ -264,7 +266,7 @@ public class AnsLmsAPITemplate extends AbstractCachedCourseAccess implements Lms @Override public Result getSEBClientRestriction(final Exam exam) { - + @SuppressWarnings("unused") final String quizId = exam.externalId; return Result.tryCatch(() -> { @@ -295,7 +297,7 @@ public class AnsLmsAPITemplate extends AbstractCachedCourseAccess implements Lms @Override public Result releaseSEBClientRestriction(final Exam exam) { - + @SuppressWarnings("unused") final String quizId = exam.externalId; return Result.tryCatch(() -> { @@ -312,6 +314,7 @@ public class AnsLmsAPITemplate extends AbstractCachedCourseAccess implements Lms // The example deals with a Http based API that is secured by an OAuth2 client-credential flow. // You might need some different template, then you have to adapt this code // To your needs. + @SuppressWarnings("unused") private OAuth2RestTemplate createRestTemplate(final String accessTokenRequestPath) { final LmsSetup lmsSetup = this.apiTemplateDataSupplier.getLmsSetup();