X-Git-Url: http://secure.phpeclipse.com
diff --git a/net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpeclipse/ui/editor/I18NDocumentProvider.java b/net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpeclipse/ui/editor/I18NDocumentProvider.java
index 7aaf2ed..6c4c71a 100644
--- a/net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpeclipse/ui/editor/I18NDocumentProvider.java
+++ b/net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpeclipse/ui/editor/I18NDocumentProvider.java
@@ -8,7 +8,7 @@
* Contributors:
* Igor Malinin - initial contribution
*
- * $Id: I18NDocumentProvider.java,v 1.1 2004-09-02 18:26:30 jsurfer Exp $
+ * $Id: I18NDocumentProvider.java,v 1.2 2006-10-21 23:13:54 pombredanne Exp $
*/
package net.sourceforge.phpeclipse.ui.editor;
@@ -81,10 +81,11 @@ public class I18NDocumentProvider extends FileDocumentProvider {
throw new CoreException(s);
} finally {
- if (in != null) try {
- in.close();
- } catch (IOException x) {
- }
+ if (in != null)
+ try {
+ in.close();
+ } catch (IOException x) {
+ }
}
}
@@ -240,16 +241,16 @@ public class I18NDocumentProvider extends FileDocumentProvider {
}
/**
- * Tries to determine encoding from contents of the stream. Returns null
- * if encoding is unknown.
+ * Tries to determine encoding from contents of the stream. Returns
+ * null
if encoding is unknown.
*/
public String getDeclaredEncoding(InputStream in) throws IOException {
return getBOMEncoding(in);
}
/**
- * Tries to determine encoding from the byte order mark. Returns null
- * if encoding is unknown.
+ * Tries to determine encoding from the byte order mark. Returns
+ * null
if encoding is unknown.
*/
private String getBOMEncoding(InputStream in) throws IOException {
int first = in.read();