History log of /sdk/lint/libs/lint_checks/src/com/android/tools/lint/checks/ToastDetector.java
Revision Date Author Comments
addbd7110d87e9f48d854e5ba6a729359110ada8 22-Aug-2012 Tor Norbye <tnorbye@google.com> Use simple markup for bold and monospace in lint issues

The explanation text for issues can now contain some simple
markup such as * around sentences for bold and ` for monospace.
In the HTML report this is converted to HTML markup using <b>
and <code> spans, as well as <a> for http:// links.

Change-Id: I875a55a0ab9a61c2e8bb493ad94d5e4d51dd1072
d30c53e1e0a3652ec8b3a9846e5e38defa8ab433 27-Jul-2012 Tor Norbye <tnorbye@google.com> 35588: @SuppressLint does not work on constructors in Java files

The AST-based check for whether an issue is suppressed did not take
constructors into account. This was because the AST node for
constructors (ConstructorDeclaration) does not extend the AST node for
method declarations (MethodDeclaration). This mistake was made in a
couple of other detectors as well.

(Also renamed test class which did not have the correct name (detector
class + "Test") so jump to test did not work.)

Change-Id: I0ecf99ab7d0357a03e300b7197ae84079f0ddbd1
9bb348ad65f7ee5db6319c3244c8ded0bc71640a 13-Jun-2012 Tor Norbye <tnorbye@google.com> Fix license headers.

Change-Id: I95c209535f39c1ef1384f75e19b9ab54f099a58c
7e4b8e9d595e45baa9d87cdb8282f02759e73abc 30-May-2012 Tor Norbye <tnorbye@google.com> Fix nullness annotations

Eclipse 4.2 includes analysis support for @Nullable and @NonNull
annotations. However, it requires these annotations to be *repeated*
on every single method implementing or overriding a superclass or
interface method (!).

This changeset basically applies the quickfixes to inline these
annotations. It also changes the retention of our nullness
annotations from source to class, since without this Eclipse believes
that a @NonNull annotation downstream is a redefinition of a @Nullable
annotation.

Finally, the null analysis revealed a dozen or so places where the
nullness annotation was either wrong, or some null checking on
parameters or return values needed to be done.

Change-Id: I43b4e56e2d025a8a4c92a8873f55c13cdbc4c1cb
46561649fa8dddd4ee5461366a0c6ced99a5b6fe 28-Apr-2012 Tor Norbye <tnorbye@google.com> Add lint check to make sure SharedPreference editors are committed

Change-Id: Ifacc8df1ef9169c57725652ae9d921ed2b3129bd
a3620f75848d18bf34a984c626dcf0fe523842b6 26-Mar-2012 Tor Norbye <tnorbye@google.com> Add lint detector for Toast.makeText() without show()

This changeset looks for Toast.makeText() calls where there is no
corresponding show() afterwards on the Toast object, which is a common
mistake.

It also looks for attempts to pass a custom duration value, which is
wrong: only Toast.LENGTH_SHORT or Toast.LENGTH_LONG are valid.

Change-Id: I3a68e8934ddac76d1277f0fd292c329f30b192ee