From 2bd1d328e96a4f6b2c43b3eae2f6e19043bb3bd2 Mon Sep 17 00:00:00 2001 From: anhefti Date: Mon, 6 Jan 2020 12:43:01 +0100 Subject: [PATCH] fix for Java 8 (generic type declaration) --- .../java/ch/ethz/seb/sebserver/gbl/Constants.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/main/java/ch/ethz/seb/sebserver/gbl/Constants.java b/src/main/java/ch/ethz/seb/sebserver/gbl/Constants.java index 74ae8d43..f0c9c690 100644 --- a/src/main/java/ch/ethz/seb/sebserver/gbl/Constants.java +++ b/src/main/java/ch/ethz/seb/sebserver/gbl/Constants.java @@ -115,11 +115,15 @@ public final class Constants { public static final RGB WHITE_RGB = new RGB(255, 255, 255); public static final RGB BLACK_RGB = new RGB(0, 0, 0); - public static final TypeReference> TYPE_REFERENCE_API_MESSAGE = new TypeReference<>() { - }; - + public static final TypeReference> TYPE_REFERENCE_API_MESSAGE = + new TypeReferenceAPIMessage(); public static final ParameterizedTypeReference> TYPE_REFERENCE_PRIVILEGES = - new ParameterizedTypeReference<>() { - }; + new TypeReferencePrivileges(); + + public static final class TypeReferenceAPIMessage extends TypeReference> { + } + + public static final class TypeReferencePrivileges extends ParameterizedTypeReference> { + } }