Skip to content

Commit

Permalink
Merge pull request #165 from aws/FindBugs
Browse files Browse the repository at this point in the history
Address findbugs issue
  • Loading branch information
bretambrose authored Mar 30, 2021
2 parents 425f507 + 1f23816 commit 8fe0480
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 9 additions & 0 deletions aws-iot-device-sdk-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,13 @@
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>3.0.5</version>
</plugin>
</plugins>
</reporting>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -359,10 +359,6 @@ private byte[] getSigningKey(Credentials credentials, String dateStamp) throws A
throw new AWSIotException("Error in initializing signing secret MAC");
}

if (signingSecretMac == null) {
throw new AWSIotException("Failure to initialize signing Mac");
}

// AWS4 uses a series of derived keys, formed by hashing different
// pieces of data
byte[] signingDate = sign(dateStamp, signingSecretMac);
Expand Down

0 comments on commit 8fe0480

Please sign in to comment.