WALA/com.ibm.wala.cast.js.rhino..../harness-src/com/ibm/wala/cast/js
Ben Liblit 6087b73cee Fix or suppress all 242 Eclipse warnings about unused parameters
In general, my approach was to try to eliminate each unused parameter
using Eclipse's "Change Method Signature" refactoring.  That did not
always succeed: a parameter may be unused in some base class method,
but then be used in subclass's override of that method.  In cases
where refactoring to eliminate a parameter failed, I instead annotated
the parameter with '@SuppressWarnings("unused")' to silence the
warning.

Note: this group of changes creates a significant risk of
incompatibility for third-party WALA code.  Some removed parameters
change externally-visible APIs.  Furthermore, these changes do not
necessarily lead to Java compilation errors.  For example, suppose
third-party code subclasses a WALA class or interface, overrides a
method, but does not annotate that method as @Override.  Removing a
parameter means that the third-party method no longer overrides.  This
can quietly change code behavior without compile-time errors or
warnings.  This is exactly why one should use @Override wherever
possible, but we cannot guarantee that third-party WALA users have
done that.
2017-07-31 15:29:00 -07:00
..
examples/hybrid Fix or suppress all 242 Eclipse warnings about unused parameters 2017-07-31 15:29:00 -07:00
rhino Remove "throws XYZ" declarations where XYZ cannot be thrown 2017-07-28 10:20:28 -07:00
test Remove "throws XYZ" declarations where XYZ cannot be thrown 2017-07-28 10:20:28 -07:00
vis Access static fields directly via the classes that declare them 2017-06-07 08:29:23 -07:00