Commit Graph

5411 Commits

Author SHA1 Message Date
Julian Dolby ce0411d8a4 disable check that breaks TeaVM 2017-09-28 20:15:24 +00:00
Julian Dolby 2c5d6ed15f hack for TeaVM 2017-09-28 19:34:54 +00:00
Julian Dolby 5dc7ed76f5 Merge branch 'master' of https://github.com/wala/WALA 2017-09-28 19:03:46 +00:00
Manu Sridharan d5936b2f7e Enable ErrorProne on wala.util project (#248)
* remove import
2017-09-19 05:52:53 -07:00
Ben Liblit 1fcdfbe2a3 Add localization properties file with some bundle string definitions
This fixes two Eclipse Plug-in Development warnings of the form "Key
'...' is not found in localization properties file:
OSGI-INF/l10n/bundle.properties".
2017-09-17 14:25:40 -07:00
Ben Liblit d70e52e323 Set required build property for project-specific compiler settings
This fixes two Eclipse Plug-in Development warnings of the form "The
'javacProjectSettings' build entry should be set when there are
project specific compiler settings".
2017-09-17 14:25:40 -07:00
Ben Liblit 182073ff4f Silently allow plug-ins to not export all of their packages
This removes three Eclipse Plug-in Development warnings of the form
"This plug-in does not export all of its packages"

I assume that omitting some exports is OK, because apparently nothing
else fails to build against these.  If an omitted export were needed
elsewhere, something would fail to build.
2017-09-17 14:25:40 -07:00
Julian Dolby 3ee1f2d368 Merge branch 'master' of https://github.com/wala/WALA 2017-09-16 18:25:35 +00:00
Julian Dolby 36ab38c659 expanded Monitor2 2017-09-16 14:24:47 -04:00
Julian Dolby 3c898224ff Revert changes to native code for now
This reverts commit a39da55d97.
2017-09-16 14:23:00 -04:00
Julian Dolby e399d7b9f3 Merge branch 'master' of https://github.com/wala/WALA 2017-09-16 18:19:07 +00:00
Julian Dolby 5a04c422e3 merge 2017-09-16 18:19:04 +00:00
Julian Dolby a39da55d97 need shrike
update monitor test
2017-09-16 14:06:28 -04:00
Julian Dolby 385b135bf2 Merge branch 'master' of https://github.com/wala/WALA 2017-09-12 07:13:45 +09:00
Julian Dolby 3083e6c06d new test 2017-09-12 07:13:35 +09:00
Ben Liblit 65672f98ba Suppress Eclipse warnings that arise in JLex, which we don't control 2017-08-30 17:03:35 -07:00
Ben Liblit 01ea35ccb7 Rename "...-feature" to "..._feature" in subdirs and features
This change affects both top-level subdirectory names as well as
Eclipse plug-in feature names.  Perhaps it would have been possible to
change only the latter, but I don't like the idea of the two being
different.

These name changes fix three Eclipse plug-in warnings of the form:

	Illegal value '...-feature' for attribute 'id'.
	Legal token characters are "a-z", "A-Z", "0-9", "_".  Tokens
	must be separated by "."

I'll be the first to admit that I know nearly nothing about Eclipse
plug-in development.  If changing these plug-in feature IDs has
broader implications that the automated regression tests won't detect,
then I probably overlooked them too.  I would greatly appreciate
skeptical review of this change by someone who knows Eclipse plug-in
development well.

Note that personal Eclipse workspaces may need some manual adjustment
after this change.  The three "...-feature" Eclipse projects should be
removed from the workspace, and the three corresponding "..._feature"
Eclipse projects should be added.  If you do your git pull using
Eclipse's team features, perhaps it is smart enough to do this for
you?  I don't know, but it wouldn't surprise me if fixing things
manually were still needed even in that case.
2017-08-30 16:32:33 -05:00
Ben Liblit 15a30c1436 Tell M2Eclipse to run a few Maven plugins with no special handling
Specifically, this will run the "javadoc" goal of the
"maven-javadoc-plugin" and the "plugin-source" goal of the
"tycho-source-plugin" whenever Eclipse does a full build.  It will not
run these on incremental builds, though.  Maven plugins in general are
usually not designed with incremental execution in mind, so rerunning
them on every incremental build turns out to be too sluggish in
practice.

Previously, M2Eclipse would occasionally notice these two plugins,
realize it didn't know what to do with them, and produce Eclipse error
diagnostics that were difficult to resolve.  With this change we are
telling Eclipse's Maven builder to just run the plugins in the natural
way even though M2Eclipse has no special handling built-in for them.

Fixes #198, much to my relief.
2017-08-30 13:39:25 -07:00
Ben Liblit 95507651d2 Trivial indentation fix
I would not bother to fix indentation by itself, but it makes sense to
fix this indentation now in advance of some larger changes coming to
this file soon.
2017-08-30 13:39:25 -07:00
Manu Sridharan 4aedf7124e Update README.md
Add Travis graphic
2017-08-30 13:38:59 -07:00
Ben Liblit 5b6e6aefa0 Remove some unnecessary warning suppression annotations 2017-08-28 11:55:56 -07:00
Ben Liblit 559c577093 Treat diagnostics about unchecked type operations as errors 2017-08-28 11:55:56 -07:00
Ben Liblit f8e3172653 Be explicit about the type parameter in generic static method calls
In modern Java, we would not need to do this.  Java 1.8 can infer the
generic type, which would allow us to write simply
"Collections.emptySet()" instead of
"Collections.<TypeReference>"emptySet()".  Unfortunately, Android is
behind the times, so this specific project targets Java 1.5.  That
older Java definition does not do the inference we would want here, so
we have to be explicit instead.
2017-08-28 11:55:56 -07:00
Ben Liblit 1603ec314f Use Collections.emptySet() instead of Collections.EMPTY_SET
The former returns Set<T> for any T, whereas the latter merely returns
a raw Set.  Using the former instead of the latter fixes four Eclipse
warnings about using raw generics.
2017-08-28 11:55:56 -07:00
Julian Dolby 5b23010116 Merge branch 'master' of https://github.com/wala/WALA 2017-08-28 08:11:31 -04:00
Manu Sridharan b54eadf461 disable Maven nature for NodeJS project 2017-08-27 20:50:38 -07:00
Ben Liblit ecd1ff72fe Remove a default encoding setting that Eclipse considers unnecessary
Julian added this in a recent commit, but has told me that he does not
think it is necessary, and that I am free to remove it if it is
causing trouble.  Removing this does indeed fix one Eclipse error
diagnostic: "Default encoding (UTF-8) for library '.' should be
removed as the workspace does not specify an explicit encoding."
2017-08-27 20:15:54 -07:00
Manu Sridharan 14ec60add8 remove unneeded .classpath entry 2017-08-27 15:32:24 -07:00
Julian Dolby 5f370bcfd8 remove jcommander 2017-08-27 17:22:59 -04:00
Raffi Khatchadourian a49bcf5aa1 Add missing void type. 2017-08-27 11:07:22 -07:00
Ben Liblit 2d641251fb Enforce Eclipse resource leak diagnostics more strongly
In Eclipse projects that currently have no definite or potential
resource leaks, treat any such diagnostics as errors in the future.

In `com.ibm.wala.core`, enable warnings about definite or potential
resource leaks.  Previously these diagnostics were turned off entirely
in this project.  So we actually end up with more warnings now than we
had before, but they are all warnings we should eventually look into.
2017-08-27 11:03:14 -07:00
Ben Liblit eaf1c0af85 Plug a `JarFile` resource leak 2017-08-27 11:03:14 -07:00
Ben Liblit e63de76139 Plug a `JarFile` resource leak 2017-08-27 11:03:14 -07:00
Ben Liblit 3825c03b16 Plug a `JarInputStream` resource leak 2017-08-27 11:03:14 -07:00
Ben Liblit 4cb4273ff9 Plug a `JarInputStream` resource leak 2017-08-27 11:03:14 -07:00
Ben Liblit 6ebbb834b9 Plug an `InputStream` resource leak 2017-08-27 11:03:14 -07:00
Ben Liblit 9c79c7ef9b Plug an `InputStream` resource leak 2017-08-27 11:03:14 -07:00
Ben Liblit 4378fbbc12 Plug an `InputStream` resource leak 2017-08-27 11:03:14 -07:00
Ben Liblit 5751c949e8 Plug an `InputStream` resource leak 2017-08-27 11:03:14 -07:00
Ben Liblit dae5bc58bd Plug an `InputStream` resource leak 2017-08-27 11:03:14 -07:00
Ben Liblit e1010439d1 Plug an `InputStream` resource leak 2017-08-27 11:03:14 -07:00
Ben Liblit 8541d67a14 Plug a `BufferedInputStream` resource leak 2017-08-27 11:03:14 -07:00
Julian Dolby ee8e4b4c83 type hack 2017-08-25 12:06:09 -04:00
Julian Dolby b5b67f3d7c issues with mvncentral.xml 2017-08-25 12:00:39 -04:00
Julian Dolby 44348b80d7 add neglected file 2017-08-25 11:13:40 -04:00
Julian Dolby bd8bf7cb99 fixes for paths on travis 2017-08-25 11:08:54 -04:00
Julian Dolby 701cd1ac7d fix for paths on travis 2017-08-25 11:04:43 -04:00
Julian Dolby b6af5267f1 java 8 changes
minor fixes, such as making CheckForFrontEndErrors more accessible
minor hacks to make stuff compile with TeaVM
2017-08-25 10:58:00 -04:00
Julian Dolby 2d829a339e Merge branch 'master' of https://github.com/wala/WALA 2017-08-22 18:05:59 -04:00
Raffi Khatchadourian 68f30f949d Minor performance improvements to methods in TypeInference class (#230)
* Only get the variable once.

* Only get symbol table if it is needed.
2017-08-21 09:59:15 -07:00