Commit Graph

14 Commits

Author SHA1 Message Date
Ben Liblit 5336a08af2 Avoid using deprecated boxing constructors
Boxing a primitive using the constructor ("new Integer(4)") always
creates a distinct new boxed instance.  That's rarely what you need,
and in fact all of those constructors have been deprecated in Java 9.
Using the static "valueOf" method instead ("Integer.valueOf(4)") can
give better performance by reusing existing instances.  You no longer
get a unique boxed object, but generally that's OK.
2018-06-05 14:44:59 -05:00
Julian Dolby 080325b5f6 merge 2013-06-25 11:57:37 -04: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-oss bf4c0dbb99 change to how default values for value numbers are recorded for SSA conversion by CAst
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3914 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2010-09-09 13:59:21 +00:00
sjfink abcdc0c608 comments
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3514 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-04-22 17:33:51 +00:00
sjfink 7b8dd408d5 generalize handling of constants
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2926 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2008-06-27 20:49:41 +00:00
loginov ef5642a632 Added guards to boolean constant tests to avoid NPE for null constant.
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2698 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2008-03-12 19:34:57 +00:00
sjfink 8e52444761 make many fields final
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1232 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-06-01 21:38:35 +00:00
sjfink ea3caa1e8a mostly clean up old comments.
also rename InferGraphRootsImpl to InferGraphRoots

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1200 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-05-30 19:05:23 +00:00
sjfink fdb7a17af3 add @Overrides annotations and nuke unnecessary casts
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1197 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-05-30 15:16:05 +00:00
sjfink b0598a95f4 more argument checking
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1133 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-05-15 19:35:57 +00:00
sjfink 4acf542744 validate some arguments; throw IllegalArgumentExceptions
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1119 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-05-15 03:15:05 +00:00
dolby-oss 10ccb7410e support for boolean-typed constants and customizable default values for uninitialized values; both of these are used to support scripting language features
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@919 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-04-04 13:00:04 +00:00
sjfink df97f42b7e attempt to introduce tags and trunk
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@490 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2006-11-22 17:38:46 +00:00