aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/com/att/nsa/mr/client/MRClientBuilders.java2
-rw-r--r--src/main/java/com/att/nsa/mr/client/MRClientFactory.java3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/com/att/nsa/mr/client/MRClientBuilders.java b/src/main/java/com/att/nsa/mr/client/MRClientBuilders.java
index 177fd30..c7707f1 100644
--- a/src/main/java/com/att/nsa/mr/client/MRClientBuilders.java
+++ b/src/main/java/com/att/nsa/mr/client/MRClientBuilders.java
@@ -235,7 +235,7 @@ public class MRClientBuilders
*/
public MRBatchingPublisher build ()
{
- if ( fHosts == null || fHosts.size() == 0 || fTopic == null )
+ if ( fHosts == null || fHosts.isEmpty() || fTopic == null )
{
throw new IllegalArgumentException ( "You must provide at least one host and a topic name." );
}
diff --git a/src/main/java/com/att/nsa/mr/client/MRClientFactory.java b/src/main/java/com/att/nsa/mr/client/MRClientFactory.java
index b654282..1c7e511 100644
--- a/src/main/java/com/att/nsa/mr/client/MRClientFactory.java
+++ b/src/main/java/com/att/nsa/mr/client/MRClientFactory.java
@@ -66,7 +66,7 @@ public class MRClientFactory {
public static FileWriter routeWriter = null;
public static Properties prop = null;
- // routeReader= new FileReader(new File (routeFilePath));
+
// props= new Properties();
/**
* Create a consumer instance with the default timeout and no limit on
@@ -657,7 +657,6 @@ public class MRClientFactory {
sub.setProps(props);
sub.setHost(props.getProperty("host"));
sub.setProtocolFlag(props.getProperty("TransportType"));
- // sub.setConsumerFilePath(consumerFilePath);
sub.setfFilter(props.getProperty("filter"));
routeFilePath = props.getProperty("DME2preferredRouterFilePath");
routeReader = new FileReader(new File(routeFilePath));