Some cleanups / typos fixed.
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1725514 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/CommandSessionImpl.java b/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/CommandSessionImpl.java
index 133b54c..c6b6eb3 100644
--- a/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/CommandSessionImpl.java
+++ b/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/CommandSessionImpl.java
@@ -21,8 +21,6 @@
// DWB10: add SCOPE support: https://www.osgi.org/bugzilla/show_bug.cgi?id=51
package org.apache.felix.gogo.runtime;
-import java.io.Closeable;
-import java.io.IOException;
import java.io.InputStream;
import java.io.PrintStream;
import java.lang.reflect.Method;
@@ -395,7 +393,7 @@
}
catch (Exception e)
{
- return "<can not format " + result + ":" + e;
+ return "<can not format " + result + ">:" + e;
}
}
@@ -403,20 +401,4 @@
{
return processor.expr(this, expr);
}
-
- private static <T extends Closeable> T closeSilently(T resource)
- {
- if (resource != null)
- {
- try
- {
- resource.close();
- }
- catch (IOException e)
- {
- // Ignore, nothing we can do here...
- }
- }
- return resource;
- }
}