WALA/com.ibm.wala.cast.js/source/com/ibm/wala/cast/js/html
Ben Liblit 191904d607 Remove "throws XYZ" declarations where XYZ cannot be thrown
Unnecessary "throws" declarations tend to cascade.  If foo() calls
bar() and bar() falsely declares that it might throw IOException, that
often leads a programmer to declare that foo() might throw IOException
as well.  Fixing the bar() throws declaration then reveals that we can
fix the foo() throws declaration too.  By the time we reach a fixed
point with cleaning these up, we have removed roughly 320 unnecessary
throws declarations.

In a few cases, this cleanup even lets us remove entire "try
... catch" statements where the only thing being caught was an
exception that we now statically know cannot be thrown.  Nice!

In Eclipse project configurations, upgrade any future such shenanigans
from warnings to errors.  Now that we've fixed this, we don't want it
coming back again.

There is a potential drawback to this change.  Conceivably some public
WALA API entry point might have declared that it could throw some
exception merely to reserve the *option* of throwing that exception in
third-party code that subclasses and overrides the API entry point in
question.  I have no idea whether this is a significant concern in
practice, though.
2017-07-28 10:20:28 -07:00
..
jericho cross-cutting changes to make more of WALA runnable with TeaVM. The biggest change is refactoring to AnalysisCache and friends; since TeaVM does not support SoftReference, I needed to add a layer of interfaces so that I can use a more simpleminded caching implementation for TeaVM. There are other changes to Module and friends to break connections with File and URL, which also cause TeaVM grief. I also organized imports in many places to remove unused types that caused trouble. 2017-02-02 20:33:27 -05:00
CompositeFileMapping.java Remove redundant generic type parameters where possible 2017-03-11 21:20:51 -06:00
DefaultSourceExtractor.java Declare private methods static wherever possible 2017-06-07 08:29:23 -07:00
DomLessSourceExtractor.java Remove "throws XYZ" declarations where XYZ cannot be thrown 2017-07-28 10:20:28 -07:00
EmptyFileMapping.java merge 2013-06-25 11:57:37 -04:00
FileMapping.java cross-cutting changes to make more of WALA runnable with TeaVM. The biggest change is refactoring to AnalysisCache and friends; since TeaVM does not support SoftReference, I needed to add a layer of interfaces so that I can use a more simpleminded caching implementation for TeaVM. There are other changes to Module and friends to break connections with File and URL, which also cause TeaVM grief. I also organized imports in many places to remove unused types that caused trouble. 2017-02-02 20:33:27 -05:00
IHtmlCallback.java Convert all Java source files to use Unix line endings; no semantic change 2012-09-04 15:56:05 -07:00
IHtmlParser.java move to Reader API to help with annoying /r/n issues is source mapping 2014-04-29 11:21:01 -04:00
IHtmlParserFactory.java added neglected copyright headers 2011-04-04 17:27:16 +00:00
ITag.java add missing copyright headers 2013-05-22 15:39:19 -07:00
IUrlResolver.java Convert all Java source files to use Unix line endings; no semantic change 2012-09-04 15:56:05 -07:00
IdentityUrlResolver.java merge 2013-06-25 11:57:37 -04:00
IncludedPosition.java merge 2013-06-25 11:57:37 -04:00
JSSourceExtractor.java Expose temporary file created by source extractor. Fixes #19 2013-04-10 12:22:57 -07:00
MappedSourceFileModule.java added container access to ModuleEntry 2013-06-25 11:53:58 -04:00
MappedSourceModule.java added neglected copyright headers 2011-04-04 17:27:16 +00:00
NestedRangeMapping.java move to Reader API to help with annoying /r/n issues is source mapping 2014-04-29 11:21:01 -04:00
RangeFileMapping.java Fix all Eclipse warnings about unnecessary semicolons 2017-07-14 22:39:01 -07:00
SourceRegion.java move to Reader API to help with annoying /r/n issues is source mapping 2014-04-29 11:21:01 -04:00
UrlManipulator.java Convert all Java source files to use Unix line endings; no semantic change 2012-09-04 15:56:05 -07:00
WebPageLoaderFactory.java Fix nearly all Eclipse warnings about using raw types 2017-07-12 10:39:06 -07:00
WebUtil.java enable specialization of source extractor for Web pages 2015-11-30 21:28:40 -05:00