diff --git a/plugins/android/src/org/jetbrains/android/AndroidDocumentationProvider.java b/plugins/android/src/org/jetbrains/android/AndroidDocumentationProvider.java
index 75744a8fff07..52680edaa34e 100644
--- a/plugins/android/src/org/jetbrains/android/AndroidDocumentationProvider.java
+++ b/plugins/android/src/org/jetbrains/android/AndroidDocumentationProvider.java
@@ -133,44 +133,48 @@ public class AndroidDocumentationProvider implements DocumentationProvider, Exte
return;
}
final BufferedReader buf = new BufferedReader(input);
+ try {
+ @NonNls String startSection = "";
+ @NonNls String endHeader = "";
- @NonNls String startSection = "";
- @NonNls String endHeader = "";
+ data.append(HTML);
- data.append(HTML);
+ String read;
- String read;
-
- do {
- read = buf.readLine();
- }
- while (read != null && read.toUpperCase().indexOf(startSection) == -1);
-
- if (read == null) {
- data.delete(0, data.length());
- return;
- }
-
- data.append(read).append("\n");
-
- boolean skip = false;
- while (((read = buf.readLine()) != null) && read.toLowerCase().indexOf("class overview") < 0) {
- if (!skip && read.length() > 0) {
- data.append(read).append("\n");
+ do {
+ read = buf.readLine();
}
- if (read.toUpperCase().indexOf(endHeader) != -1) {
- skip = true;
- }
- }
+ while (read != null && read.toUpperCase().indexOf(startSection) == -1);
- if (read != null) {
- data.append("