diff options
author | Tor Norbye <tnorbye@google.com> | 2012-09-12 17:58:32 -0700 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2012-09-13 08:16:33 -0700 |
commit | 12d4581faa6438941e65a9dc83213be34c6ca970 (patch) | |
tree | 5a4d000b6fed83f308ab752ad4572249a79d071c /lint/cli | |
parent | 7b1c36cfcc53ef82619f12bddc0e3448d253b0b9 (diff) | |
download | sdk-12d4581faa6438941e65a9dc83213be34c6ca970.zip sdk-12d4581faa6438941e65a9dc83213be34c6ca970.tar.gz sdk-12d4581faa6438941e65a9dc83213be34c6ca970.tar.bz2 |
Constants refactoring.
This changeset moves most constants into the SdkConstants
class, and gets rid of AndroidConstants and LintConstants.
It also migrates all non-ADT specific constants from
AdtConstants into SdkConstants. It furthermore moves various
other constants (such as those in XmlUtils and ValuesDescriptors)
into the constants class. It also fixes the modifier order
to be the canonical modifier order (JLS 8.x).
Finally, it removes redundancy and combines various constant
aliases such that we don't have both NAME_ATTR and ATTR_NAME
pointing to "name", etc.
Change-Id: Ifd1755016f62ce2dd80e5c76130d6de4b0e32161
Diffstat (limited to 'lint/cli')
-rw-r--r-- | lint/cli/src/com/android/tools/lint/HtmlReporter.java | 4 | ||||
-rw-r--r-- | lint/cli/src/com/android/tools/lint/Main.java | 2 | ||||
-rw-r--r-- | lint/cli/src/com/android/tools/lint/Reporter.java | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/lint/cli/src/com/android/tools/lint/HtmlReporter.java b/lint/cli/src/com/android/tools/lint/HtmlReporter.java index 8fddece..19f1028 100644 --- a/lint/cli/src/com/android/tools/lint/HtmlReporter.java +++ b/lint/cli/src/com/android/tools/lint/HtmlReporter.java @@ -16,8 +16,8 @@ package com.android.tools.lint; -import static com.android.tools.lint.detector.api.LintConstants.DOT_JPG; -import static com.android.tools.lint.detector.api.LintConstants.DOT_PNG; +import static com.android.SdkConstants.DOT_JPG; +import static com.android.SdkConstants.DOT_PNG; import static com.android.tools.lint.detector.api.LintUtils.endsWith; import com.android.tools.lint.checks.BuiltinIssueRegistry; diff --git a/lint/cli/src/com/android/tools/lint/Main.java b/lint/cli/src/com/android/tools/lint/Main.java index 541ad4e..a33890d 100644 --- a/lint/cli/src/com/android/tools/lint/Main.java +++ b/lint/cli/src/com/android/tools/lint/Main.java @@ -18,7 +18,7 @@ package com.android.tools.lint; import static com.android.tools.lint.client.api.IssueRegistry.LINT_ERROR; import static com.android.tools.lint.client.api.IssueRegistry.PARSER_ERROR; -import static com.android.tools.lint.detector.api.LintConstants.DOT_XML; +import static com.android.SdkConstants.DOT_XML; import static com.android.tools.lint.detector.api.LintUtils.endsWith; import com.android.annotations.NonNull; diff --git a/lint/cli/src/com/android/tools/lint/Reporter.java b/lint/cli/src/com/android/tools/lint/Reporter.java index 2c86635..fc3aaae 100644 --- a/lint/cli/src/com/android/tools/lint/Reporter.java +++ b/lint/cli/src/com/android/tools/lint/Reporter.java @@ -16,8 +16,8 @@ package com.android.tools.lint; -import static com.android.tools.lint.detector.api.LintConstants.DOT_9PNG; -import static com.android.tools.lint.detector.api.LintConstants.DOT_PNG; +import static com.android.SdkConstants.DOT_9PNG; +import static com.android.SdkConstants.DOT_PNG; import static com.android.tools.lint.detector.api.LintUtils.endsWith; import com.google.common.annotations.Beta; @@ -256,4 +256,4 @@ public abstract class Reporter { } return null; } -}
\ No newline at end of file +} |