Skip to content
Snippets Groups Projects
Commit 49c92f4c authored by Nelson Tavares de Sousa's avatar Nelson Tavares de Sousa
Browse files

removed javadoc.skip from run-config

solved 3 findbugs issues
parent c583f815
No related branches found
No related tags found
No related merge requests found
...@@ -24,6 +24,6 @@ ...@@ -24,6 +24,6 @@
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry including="**/*.java" kind="src" path="src/main/resources"/> <classpathentry including="**/*.java" kind="src" path="src/main/resources"/>
<classpathentry kind="src" path="src/test/resources"/> <classpathentry including="**/*.java" kind="src" path="src/test/resources"/>
<classpathentry kind="output" path="target/classes"/> <classpathentry kind="output" path="target/classes"/>
</classpath> </classpath>
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.m2e.Maven2LaunchConfigurationType"> <launchConfiguration type="org.eclipse.m2e.Maven2LaunchConfigurationType">
<booleanAttribute key="M2_DEBUG_OUTPUT" value="false"/> <booleanAttribute key="M2_DEBUG_OUTPUT" value="false"/>
<stringAttribute key="M2_GOALS" value="-Psigning -Dmaven.javadoc.skip=true clean deploy"/> <stringAttribute key="M2_GOALS" value="-Psigning clean deploy"/>
<booleanAttribute key="M2_NON_RECURSIVE" value="false"/> <booleanAttribute key="M2_NON_RECURSIVE" value="false"/>
<booleanAttribute key="M2_OFFLINE" value="false"/> <booleanAttribute key="M2_OFFLINE" value="false"/>
<stringAttribute key="M2_PROFILES" value=""/> <stringAttribute key="M2_PROFILES" value=""/>
......
...@@ -25,7 +25,7 @@ public final class PipeFactoryLoader { ...@@ -25,7 +25,7 @@ public final class PipeFactoryLoader {
public static List<IPipeFactory> loadFromStream(final InputStream stream) throws IOException { public static List<IPipeFactory> loadFromStream(final InputStream stream) throws IOException {
List<IPipeFactory> pipeFactories = new LinkedList<IPipeFactory>(); List<IPipeFactory> pipeFactories = new LinkedList<IPipeFactory>();
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(stream)); BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(stream, "UTF-8"));
try { try {
String line; String line;
while (null != (line = bufferedReader.readLine())) { while (null != (line = bufferedReader.readLine())) {
......
...@@ -45,7 +45,7 @@ public final class PipeFactoryRegistry { ...@@ -45,7 +45,7 @@ public final class PipeFactoryRegistry {
/** /**
* The singleton instance of PipeFactoryRegistry * The singleton instance of PipeFactoryRegistry
*/ */
public static PipeFactoryRegistry INSTANCE = new PipeFactoryRegistry("pipe-factories.conf"); public static final PipeFactoryRegistry INSTANCE = new PipeFactoryRegistry("pipe-factories.conf");
private PipeFactoryRegistry(final String configFileName) { private PipeFactoryRegistry(final String configFileName) {
List<IPipeFactory> pipeFactories = PipeFactoryLoader.loadPipeFactoriesFromClasspath(configFileName); List<IPipeFactory> pipeFactories = PipeFactoryLoader.loadPipeFactoriesFromClasspath(configFileName);
......
package teetime.stage; package teetime.stage;
import java.nio.charset.Charset;
import teetime.framework.ConsumerStage; import teetime.framework.ConsumerStage;
import teetime.framework.OutputPort; import teetime.framework.OutputPort;
...@@ -9,7 +11,7 @@ public class ByteArray2String extends ConsumerStage<byte[]> { ...@@ -9,7 +11,7 @@ public class ByteArray2String extends ConsumerStage<byte[]> {
@Override @Override
protected void execute(final byte[] element) { protected void execute(final byte[] element) {
this.send(this.outputPort, new String(element)); this.send(this.outputPort, new String(element, Charset.forName("UTF-8")));
} }
public OutputPort<? extends String> getOutputPort() { public OutputPort<? extends String> getOutputPort() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment