Author: jawi
Date: Tue Jan 19 13:32:19 2016
New Revision: 1725514
URL: http://svn.apache.org/viewvc?rev=1725514&view=rev
Log:
Some cleanups / typos fixed.
Modified:
felix/trunk/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/CommandSessionImpl.java
Modified:
felix/trunk/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/CommandSessionImpl.java
URL:
http://svn.apache.org/viewvc/felix/trunk/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/CommandSessionImpl.java?rev=1725514&r1=1725513&r2=1725514&view=diff
==============================================================================
---
felix/trunk/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/CommandSessionImpl.java
(original)
+++
felix/trunk/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/CommandSessionImpl.java
Tue Jan 19 13:32:19 2016
@@ -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 @@ public class CommandSessionImpl implemen
}
catch (Exception e)
{
- return "<can not format " + result + ":" + e;
+ return "<can not format " + result + ">:" + e;
}
}
@@ -403,20 +401,4 @@ public class CommandSessionImpl implemen
{
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;
- }
}