You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2019/09/27 12:07:10 UTC
[camel] 06/16: CAMEL-13998 - fix sonar issue
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 28298f65008c21482eaab9934bbbc8082bb87463
Author: marius cornescu <ma...@yahoo.com>
AuthorDate: Sat Sep 21 13:21:56 2019 +0200
CAMEL-13998 - fix sonar issue
---
.../component/hdfs/kerberos/HdfsKerberosConfigurationFactory.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/kerberos/HdfsKerberosConfigurationFactory.java b/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/kerberos/HdfsKerberosConfigurationFactory.java
index 2ae92f1..def212b 100644
--- a/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/kerberos/HdfsKerberosConfigurationFactory.java
+++ b/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/kerberos/HdfsKerberosConfigurationFactory.java
@@ -8,12 +8,16 @@ import java.io.FileNotFoundException;
import static java.lang.String.format;
-public class HdfsKerberosConfigurationFactory {
+public final class HdfsKerberosConfigurationFactory {
private static final Logger LOGGER = LoggerFactory.getLogger(HdfsKerberosConfigurationFactory.class);
private static final String KERBEROS_5_SYS_ENV = "java.security.krb5.conf";
+ private HdfsKerberosConfigurationFactory() {
+ // factory class
+ }
+
public static void setKerberosConfigFile(String kerberosConfigFileLocation) throws FileNotFoundException {
if (!new File(kerberosConfigFileLocation).exists()) {
throw new FileNotFoundException(format("KeyTab file [%s] could not be found.", kerberosConfigFileLocation));