Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2013-07-27 07:51:37 -0400
committerEike Stepper2013-07-27 07:51:37 -0400
commit91844ac25fcb13c17b1ea6c7346bc4b60f10fde2 (patch)
tree71c7d6bc80afd81a5ff40fd161ea6817a0594556 /plugins/org.eclipse.net4j.tests/src/org
parent1e497dc2257ceadc584a82c03f713b218f7c95fd (diff)
downloadcdo-91844ac25fcb13c17b1ea6c7346bc4b60f10fde2.tar.gz
cdo-91844ac25fcb13c17b1ea6c7346bc4b60f10fde2.tar.xz
cdo-91844ac25fcb13c17b1ea6c7346bc4b60f10fde2.zip
Fix resource leak warnings
Diffstat (limited to 'plugins/org.eclipse.net4j.tests/src/org')
-rw-r--r--plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/util/tests/ExpectedIOTest.java2
-rw-r--r--plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/util/tests/ExtendedIOTest.java1
-rw-r--r--plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/util/tests/StreamWrapperTest.java1
3 files changed, 4 insertions, 0 deletions
diff --git a/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/util/tests/ExpectedIOTest.java b/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/util/tests/ExpectedIOTest.java
index 7b649d61f0..1395655f59 100644
--- a/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/util/tests/ExpectedIOTest.java
+++ b/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/util/tests/ExpectedIOTest.java
@@ -238,6 +238,7 @@ public class ExpectedIOTest extends AbstractOMTest
Thread consumer = new Thread("CONSUMER")
{
+ @SuppressWarnings("resource")
@Override
public void run()
{
@@ -334,6 +335,7 @@ public class ExpectedIOTest extends AbstractOMTest
Thread consumer = new Thread("CONSUMER")
{
+ @SuppressWarnings("resource")
@Override
public void run()
{
diff --git a/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/util/tests/ExtendedIOTest.java b/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/util/tests/ExtendedIOTest.java
index 4294c8e2fc..03a23d4da6 100644
--- a/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/util/tests/ExtendedIOTest.java
+++ b/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/util/tests/ExtendedIOTest.java
@@ -22,6 +22,7 @@ import java.util.HashMap;
/**
* @author Eike Stepper
*/
+@SuppressWarnings("resource")
public class ExtendedIOTest extends AbstractOMTest
{
@SuppressWarnings("unchecked")
diff --git a/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/util/tests/StreamWrapperTest.java b/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/util/tests/StreamWrapperTest.java
index 5b31d65838..387d3fa4b0 100644
--- a/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/util/tests/StreamWrapperTest.java
+++ b/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/util/tests/StreamWrapperTest.java
@@ -24,6 +24,7 @@ import java.io.PrintStream;
*/
public class StreamWrapperTest extends AbstractOMTest
{
+ @SuppressWarnings("resource")
public void testXORStreams() throws Exception
{
int[] key = { 1, 2, 3, 4 };

Back to the top