Commit Graph

51 Commits

Author SHA1 Message Date
Ben Liblit e316471d88 Fix nearly all Eclipse warnings about using raw types
Along the way, I also converted many "for (;;)" loops into modern
"for (:)" loops.  I didn't systematically look for all opportunities
to do this, though.  I merely made this change where I was already
converting raw Iterator uses into modern Iterator<...> uses.

Better use of generics also allowed many casts to become statically
redundant.  I have removed all such redundant casts.

Only three raw-types warnings remain after this batch of fixes.  All
three involve raw uses of CallGraphBuilder.  I've tried to fix these
too, but it quickly snowballs into a cascade of changes that may or
may not eventually reach a statically-type-save fixed point.  I may
give these last few problem areas another go in the future.  For now,
though, the hundreds of other fixes seem worth keeping even if there
are a few stragglers.

This commit may change some public APIs, but only by making weaker
type signatures stronger by replacing raw types with generic types.
For example, we may change something like "Set" into "Set<String>",
but we're not adding new arguments, changing any
underlying (post-generics-erasure) types, etc.
2017-07-12 10:39:06 -07:00
Manu Sridharan fbf4ff731d speed up some CG tests by disabling reflection handling
We should add some proper unit tests if we really care about how
reflection is handled for these tests; they take way too long to run
2017-06-26 10:57:31 -07:00
Ben Liblit 24fb1f6d10 Suppress unused-local-variable warnings in test inputs
Test code can do many things we'd consider bad style in real
application code, including defining local variables that are never
subsequently used.
2017-05-26 14:25:03 -07:00
Julian Dolby d24519e974 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
Julian Dolby c9b1006305 changes for allowing seq. and conc. CHAs 2017-01-12 16:34:54 -05:00
Julian Dolby 58b7c7324c test for reading java 8 2015-06-04 13:53:25 -04:00
Julian Dolby b34fe4d21f Merge branch 'master' of https://github.com/wala/WALA
Conflicts:
	com.ibm.wala.ide.jsdt.tests/META-INF/MANIFEST.MF
2015-06-02 23:00:32 -04:00
Juergen Graf 6f8aee80c6 Merge branch 'wala' into master 2014-07-28 17:09:02 +02:00
Michael Heilmann 0bb5e6998e Remove redundant casts and imports, improve doc comments 2014-06-26 17:51:26 +02:00
Juergen Graf 4772f36d47 add standard type parameter to most pointer analysis references. When it breaks we move back to ? extends InstanceKey. 2014-05-20 22:00:06 +02:00
Juergen Graf ef4513d377 revert PointerAnalysis hack that makes containsAny() and contains() methods in OrdinalSet unusable 2014-05-20 19:52:01 +02:00
Julian Dolby dbd9c60d4f type generalization 2014-05-20 13:10:22 +02:00
Julian Dolby 4c25c40789 type generalization 2014-02-08 22:52:19 -05:00
Julian Dolby 080325b5f6 merge 2013-06-25 11:57:37 -04:00
Manu Sridharan 38d0c3cc12 re-enable test 2013-05-27 11:07:32 -07:00
Manu Sridharan 119fd841af more manifest hacks. Also, temporary disable CG IO test 2013-05-27 10:35:55 -07:00
Manu Sridharan 9bc5bcbb3c Disable certain tests when analyzed classes are in a jar file.
These tests create FileModules for certain class / source files,
and hence assume those files are sitting in the filesystem.  We
should come up with a better fix here.
2013-05-26 14:45:50 -07:00
Manu Sridharan c0e3cb9831 fix for handling of static methods in ContainerContextSelector 2013-05-14 14:17:26 -07:00
Manu Sridharan 256cd06460 Convert all Java source files to use Unix line endings; no semantic change 2012-09-04 15:56:05 -07:00
msridhar1 88eaba4ee7 add models for System.getProperty() methods to fix bug reported by Ravi Chandran on mailing list
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4002 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-11-23 17:39:19 +00:00
dolby-oss e0ef61507c fix for 1.6 on mac
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3818 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-04-28 19:35:14 +00:00
msridhar1 24d28210e8 more caching of class hierarchies
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3750 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-07-28 02:26:03 +00:00
msridhar1 02e7bf2894 switch to jUnit 4
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3739 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-07-27 20:38:48 +00:00
sjfink 4a80ac1984 tweak comments
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3726 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-07-13 18:01:00 +00:00
sjfink a0efbee8ff Major refactoring to introduce com.ibm.wala.ide. Many related changes and patches from Marcelo Paternostro.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3693 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-06-22 15:06:12 +00:00
sjfink 3fb8781d9d comments and deprecate some unused code
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3522 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-04-22 19:11:18 +00:00
msridhar1 91c850058b add option to (unsoundly) ignore possible static initializer calls when building call graph
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3187 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-01-21 18:18:26 +00:00
sjfink 8fe9467be8 remove references to Trace
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2830 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2008-05-22 19:17:23 +00:00
sjfink 413bed8c84 fix bug with phi instructions in synthetic IRs
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2638 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2008-02-29 21:42:21 +00:00
sjfink 5b97508de0 change call graph test checking
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2553 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2008-02-08 02:09:47 +00:00
sjfink 4f0c72599f just refactoring ... introduce 2 new packages in wala.util.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2450 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2008-01-24 22:06:31 +00:00
sjfink bfbe4fdd2f clean up and refactor some APIs surrounding file I/O and exclusions files. Needed in order to allow clients to use some APIs with application-specific exclusions.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2248 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2008-01-02 22:27:45 +00:00
dolby-oss 1d62ddf160 remove EMF
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2162 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-12 20:47:35 +00:00
sjfink f11eb5ec7f 1. delete obsolete benign.xml
2. more accurate model of array copy
3. bug fix in subtype test for class hierarchy
4. bug fix in OTF call graph fix point iteration
5. bug fix for RTA and ClassNotFoundException.
also misc. minor cleanups

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2073 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-11-29 04:01:10 +00:00
sjfink 5c175e7898 more EMF obliteration
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2037 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-11-16 19:41:32 +00:00
sjfink d32ca89d7d delete EMF junk
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2031 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-11-16 18:44:27 +00:00
sjfink 0e041c99f2 add CancelException to interact with Eclipse progress monitors and thread it through some APIs
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2004 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-11-13 16:19:01 +00:00
sjfink e91ffb5cc0 more IPCFG cleanups
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1878 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-10-15 16:01:41 +00:00
sjfink 7826d12a77 more aggressive exclusions in order to run quickly against Java 6.0 libraries
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1859 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-10-11 16:05:17 +00:00
sjfink 7317bfa7aa bug fix for PointerAnalysisImpl.toString and tests for this
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1637 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-08-20 21:34:16 +00:00
sjfink c0aab9e7ed decouple IR caching from AnalysisOptions with a new AnalysisCache object
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1516 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-07-20 15:19:57 +00:00
sjfink a6e4894120 use Hash factories everywhere
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1442 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-07-11 21:08:35 +00:00
sjfink 10492c7298 massive overhaul of Warnings management
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1379 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-07-06 22:07:24 +00:00
sjfink b9cb75f490 misc. housekeeping and some slicer bug fixes
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1372 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-07-06 14:11:06 +00:00
sjfink f3bd02c77b miscellaneous housekeeping
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1369 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-07-06 03:07:44 +00:00
sjfink 4f86c8500d delete Entrypoints interface.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1126 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-05-15 17:44:54 +00:00
sjfink 893418ca3c Graph API change: Graph is now an Iterable of Nodes!
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@869 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-03-21 21:07:42 +00:00
sjfink 7938061118 make ClassHierarchy implement Iterable<IClass>
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@784 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-02-23 17:20:59 +00:00
sjfink 3c7541c782 testIO from Mangala
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@573 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-01-15 15:06:30 +00:00
sjfink 9e9dd4e387 new primordial call graph test
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@568 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-01-12 16:39:20 +00:00