Skip to content

Commit 3fd53d6

Browse files
Replace "Throwables.propagate(e); unreachableExitingStatement;" with equivalent "throw Throwables.propagate(e)."
CL automatically created by: replace_string --pcre (?m)^(\s*)(Throwables[.]propagate[(][^};]*[)];)\s*\b(?:throw|return)\b[^};]*;(?: *//[^\n]*)? $1throw $2 I could make some additional improvements by removing the requirement that the next statement be a throw or return, but that would make changes that aren't necessarily safe, and indeed some are breakages. Review by: [email protected] git-svn-id: http://google-web-toolkit.googlecode.com/svn/trunk@11523 8db76d5a-ed1c-0410-87a9-c151d255dfc7
1 parent d99d1d0 commit 3fd53d6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dev/core/src/com/google/gwt/dev/js/ClosureJsRunner.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,7 @@ protected List<JSSourceFile> getDefaultExternsList() {
208208
defaultExterns = getDefaultExterns();
209209
return defaultExterns;
210210
} catch (IOException e) {
211-
Throwables.propagate(e);
212-
return null;
211+
throw Throwables.propagate(e);
213212
}
214213
}
215214

0 commit comments

Comments
 (0)