Skip to content

Commit

Permalink
[#74] Use .equals() when comparing strings
Browse files Browse the repository at this point in the history
  • Loading branch information
iperdomo committed Apr 18, 2024
1 parent 7af7801 commit c20f91a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

public class GenerateLicenseFactory {
public LicenseConfiguration getConfiguration(Class<? extends LicenseConfiguration> clazz) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidAlgorithmParameterException, PGPException, IOException {
if(clazz.getName() == BouncyConfiguration.class.getName()) {
if(clazz.getName().equals(BouncyConfiguration.class.getName()) ) {
Hub hub = Authentication.INSTANCE.getAuthenticatedIdentity(Hub.class);
BouncyConfiguration config = new NewBouncyConfiguration(hub).get();
return config;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class NodeProperties implements IProperties {
public static final int CERT_FILE_TTL_DAYS = 365/2;

public NodeProperties(MongoNode node, LicenseConfiguration config) {
if(config.getClass().getName() == BouncyConfiguration.class.getName()) {
if(config.getClass().getName().equals(BouncyConfiguration.class.getName())) {
BouncyNodeProperties(node, (BouncyConfiguration) config);
}
}
Expand Down

0 comments on commit c20f91a

Please sign in to comment.