From 82c74714b249641f2a0c054f86aa09bb5339669d Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 31 Jan 2020 15:05:49 +0300 Subject: Cleanup IDEA warnings --- src/test/java/com/juick/server/tests/ServerTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/test/java/com/juick/server') diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java index 5b3d87eb..a16d920b 100644 --- a/src/test/java/com/juick/server/tests/ServerTests.java +++ b/src/test/java/com/juick/server/tests/ServerTests.java @@ -2374,12 +2374,12 @@ public class ServerTests { ECPublicKeySpec pubSpec = new ECPublicKeySpec(point, ecSpec); ECPublicKey publicKeyGenerated = (ECPublicKey) keyFactory.generatePublic(pubSpec); - Jws jwt = Jwts.parser() + Jws jwt = Jwts.parser() .setSigningKey(publicKeyGenerated) .parseClaimsJws(secret); Assert.assertThat(jwt.getHeader().get("kid"), is("keyid")); Assert.assertThat(jwt.getHeader().get("alg"), is("ES256")); - Claims claims = (Claims)jwt.getBody(); + Claims claims = jwt.getBody(); Assert.assertThat(claims.get("iss"), is("teamid")); Assert.assertThat(claims.get("sub"), is("com.example.app")); Assert.assertThat(claims.get("aud"), is("https://appleid.apple.com")); -- cgit v1.2.3