From 9f33d8dd0c97d06a5e2fcb555b73fd83281c1494 Mon Sep 17 00:00:00 2001 From: Francisco Guerrero Date: Mon, 13 Aug 2018 14:43:06 -0700 Subject: [PATCH] HAWQ-1650. Fix compilation issue in Java 7 --- .../org/apache/hawq/pxf/service/utilities/SecuredHDFSTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pxf/pxf-service/src/test/java/org/apache/hawq/pxf/service/utilities/SecuredHDFSTest.java b/pxf/pxf-service/src/test/java/org/apache/hawq/pxf/service/utilities/SecuredHDFSTest.java index a39a0df66e..daf684bfaa 100644 --- a/pxf/pxf-service/src/test/java/org/apache/hawq/pxf/service/utilities/SecuredHDFSTest.java +++ b/pxf/pxf-service/src/test/java/org/apache/hawq/pxf/service/utilities/SecuredHDFSTest.java @@ -44,6 +44,7 @@ public class SecuredHDFSTest { ServletContext mockContext; @Test + @SuppressWarnings("unchecked") public void nullToken() throws IOException { when(UserGroupInformation.isSecurityEnabled()).thenReturn(true); UserGroupInformation ugi = mock(UserGroupInformation.class); @@ -52,7 +53,7 @@ public void nullToken() throws IOException { SecuredHDFS.verifyToken(null, mockContext); verify(ugi).reloginFromKeytab(); - verify(ugi, never()).addToken(any()); + verify(ugi, never()).addToken(any(Token.class)); } @Test