Commit Graph

51 Commits

Author SHA1 Message Date
Ben Liblit 0286c2b048 Use Iterator2Iterable helper to convert more loops to for-each 2017-12-04 14:04:39 -08:00
Ben Liblit 456b0e45c3 Remove additional unnecessary casts of lambda expressions 2017-11-27 15:00:13 -06:00
Ben Liblit 790d37781b Convert many single-method anonymous classes to lambdas
Eclipse's automated code clean-up tool did most of the heavy lifting
here: it specifically has a clean-up option for converting functional
interfaces to lambdas.  I merely had to revert the automated changes
for a single enumeration class for which it produced invalid results,
and for a few test inputs that apparently aren't set up to be compiled
with Java 8.
2017-11-27 11:31:15 -06:00
Ben Liblit c1572ec3a5 Remove unnecessary warning-suppression annotations
These annotations used to suppress real Eclipse warnings.  However,
we've now turned those warnings off for the entire project.
2017-07-26 20:08:34 -07:00
Ben Liblit 72c754e874 Declare private methods static wherever possible
If a method is private, there's no risk that a subclass elsewhere
might be overriding it and depending on dynamic dispatch to choose the
right implementation.  So all of these private methods can safely be
declared static without risk of regression in either WALA code or
unseen third-party code.
2017-06-07 08:29:23 -07:00
Caius Brindescu 404a17c9cc When converting JDT AST to IR, a do-while loop in a case statement will throw NPE (#186)
* Fixed bug for source analysis

Do while in case statement would throw an NPE. Now it doesn't

* Added test case

The test will fail with an NPE if the fix is not applied.
2017-06-07 08:27:23 -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
Ben Liblit fde65340d2 Fix 132 Eclipse warnings about using raw generic types 2017-03-15 11:08:20 -05:00
Julian Dolby 0265a1c2dc Eclipse Java Compiler as a standalone source code front end 2015-10-14 13:32:34 -04: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 ba9aa51429 print less 2013-12-03 18:07:36 -05:00
Julian Dolby 080325b5f6 merge 2013-06-25 11:57:37 -04:00
Manu Sridharan 5f18830c3f changes to adjust for lack of null instruction at index 0 2013-04-29 20:34:08 -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
dolby 319eacc529 merge changes and changes for atomic sets work 2012-08-29 16:35:34 -04:00
msridhar1 59e46916ce Generalize certain IR data structures to be less Java-specific. Generalize annotations code to allow for reading annotation parameters. Various other fixes
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4290 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-12-28 17:03:27 +00:00
dolby-oss 8069fe81d8 fix issues with junit 3 vs. 4 by adding hacking method to get a name like the one junit 3 gives
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3790 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-01-06 13:57:06 +00:00
msridhar1 8025302fd0 update to JUnit 4
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3743 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-07-27 22:48:04 +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
dolby-oss e66d5ed88a approximate support for multithreaded code
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3532 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-04-23 18:00:20 +00:00
dolby-oss b2bae33bab generalize parsing of Descriptors to also handle languages other than Java
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3366 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-03-26 15:11:45 +00:00
sjfink ed13ddbb17 bug fix 2666538: make ClassLoaderReference immutable, and related API fixes
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3302 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-03-13 14:20:35 +00:00
dolby-oss c904bf1e14 fixes to Java source test failures
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3198 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-02-02 18:40:10 +00:00
dolby-oss 624fb4c5ae refactor polyglot-based java code in its own projects
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3168 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-01-09 14:12:19 +00:00
dolby-oss 7ce05498fd refactor java source test code to ease making plugin tests
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3134 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2008-12-16 14:29:11 +00:00
sjfink a26f7e2035 organize imports
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2853 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2008-05-27 19:43:53 +00:00
dolby-oss 3719bfd410 refactoring to prepare for JDT front end
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2842 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2008-05-23 15:58:02 +00:00
dolby-oss 0345fbd563 fixes for break from arbitrary code block
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2713 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2008-03-18 14:18:26 +00:00
dolby-oss 7daeaf5ac2 commit patches to fix issues with uses of null (Thanks Evan)
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2711 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2008-03-18 13:28:41 +00:00
dolby-oss fe12b77d85 committed patch from Evan Battaglia to support outer.new inner() form. Thanks!
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2592 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2008-02-18 15:18:00 +00:00
sjfink d3b19b68cb just refactoring ... introduce 2 new packages in wala.util.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2444 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2008-01-24 22:04:26 +00:00
sjfink fa5af94335 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@2251 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2008-01-02 22:28:04 +00:00
sjfink 5b2cc7b943 more generics
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2050 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-11-16 21:02:33 +00:00
sjfink 5ed0e82014 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@2002 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-11-13 16:18:44 +00:00
sjfink 851aec7d00 use java 6.0 regression exclusions
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1991 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-11-08 21:52:19 +00:00
sjfink 46ef6ec021 add a generic type
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1860 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-10-11 16:12:34 +00:00
sjfink db2e81fdf5 clean up imports
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1823 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-10-04 15:49:01 +00:00
dolby-oss 8313d24fe8 add test of example of CAst transformation: a sync block duplicator for Nick
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1745 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-09-13 14:33:20 +00:00
sjfink e6e81302c4 misc. cleanups
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1281 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-06-15 14:01:35 +00:00
sjfink 3512d5e0aa promote some basic eclipse functions into wala.core
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1146 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-05-17 14:12:20 +00:00
sjfink 3dec0ac8cb delete Entrypoints interface.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1123 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-05-15 17:44:32 +00:00
sjfink aea9865785 refactor JavaSourceAnalysisEngine
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@982 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-04-18 15:51:08 +00:00
sjfink b82f1cec16 cleanup and refactoring of Eclipse analysis scope management
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@974 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-04-17 16:12:50 +00:00
sjfink 6287fac5ae reorganize eclipse dependencies
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@968 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-04-17 14:04:50 +00:00
dolby-oss 1f6269c3ee tests for fixes to (some of) the most recent crop of bugs
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@856 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-03-14 14:37:24 +00:00
dolby-oss 609f848f1c support tests that take a directory, not a file. Also add some testing of extensions added the WALA CAst Java front end.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@841 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-03-12 02:08:45 +00:00
dolby-oss b89d4b59f3 more testing of enclosing objects for inner classes; make the simple tests assert that all methods are reachable as a basic sanity check
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@704 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-02-09 18:20:17 +00:00
sjfink c9ddadb76f miscellaneous minor cleanups. eclipse build stuff. import statements.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@675 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-02-08 19:06:52 +00:00
dolby-oss 1301b5c428 extend local class test to test invokes on enclosing object; adapt to changes in analysis engines
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@658 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-02-07 18:52:35 +00:00