NIFI-175 extremely trivial removal of extraneous pom entries and quieted needless logging

This commit is contained in:
joewitt 2014-12-16 16:41:41 -05:00
parent 575cc42c72
commit 9c2c399198
4 changed files with 13 additions and 5 deletions

View File

@ -135,7 +135,6 @@
<groupId>net.sf.saxon</groupId>
<artifactId>Saxon-HE</artifactId>
</dependency>
<dependency>
<groupId>org.apache.nifi</groupId>
<artifactId>nifi-mock</artifactId>
@ -152,6 +151,7 @@
<dependency>
<groupId>org.apache.nifi</groupId>
<artifactId>distributed-cache-client-service</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>joda-time</groupId>

View File

@ -248,13 +248,16 @@ public class DistributedMapCacheClientService extends AbstractControllerService
} catch (final IOException e) {
}
}
logger.info("Closed {}", new Object[] { getIdentifier() });
if (logger.isDebugEnabled() && getIdentifier() != null) {
logger.debug("Closed {}", new Object[]{getIdentifier()});
}
}
@Override
protected void finalize() throws Throwable {
if (!closed)
if (!closed) {
close();
}
logger.debug("Finalize called");
}
@ -295,6 +298,7 @@ public class DistributedMapCacheClientService extends AbstractControllerService
}
private static interface CommsAction<T> {
T execute(CommsSession commsSession) throws IOException;
}

View File

@ -161,13 +161,16 @@ public class DistributedSetCacheClientService extends AbstractControllerService
} catch (final IOException e) {
}
}
logger.info("Closed {}", new Object[] { getIdentifier() });
if (logger.isDebugEnabled() && getIdentifier() != null) {
logger.debug("Closed {}", new Object[]{getIdentifier()});
}
}
@Override
protected void finalize() throws Throwable {
if (!closed)
if (!closed) {
close();
}
logger.debug("Finalize called");
}

View File

@ -73,6 +73,7 @@
<dependency>
<groupId>org.apache.nifi</groupId>
<artifactId>ssl-context-service</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>