diff options
author | Xavier Ducrohet <xav@android.com> | 2011-01-11 13:12:23 -0800 |
---|---|---|
committer | Xavier Ducrohet <xav@android.com> | 2011-01-11 13:12:23 -0800 |
commit | 64cc0e21c489faa2fa03187674c80a006481ea1e (patch) | |
tree | f1934b136001bd08c51aea76721ae75877373cf7 /layoutlib_api | |
parent | 9e7b1152a98eb77eeb96cecbfd0ea3e3abe7a58c (diff) | |
download | sdk-64cc0e21c489faa2fa03187674c80a006481ea1e.zip sdk-64cc0e21c489faa2fa03187674c80a006481ea1e.tar.gz sdk-64cc0e21c489faa2fa03187674c80a006481ea1e.tar.bz2 |
Remove error(tag, throwable) from LayoutLog.
We should never only log an exception with no associated
message.
Also, I've found several case in the layoutlib where there
is a message in place of the tag.
This new API makes it more clear that there's both a tag and a message
since both are required for error()
Change-Id: I6d5f45c07b1cb8df96311d930170526bb729fae6
Diffstat (limited to 'layoutlib_api')
-rw-r--r-- | layoutlib_api/src/com/android/ide/common/rendering/api/LayoutLog.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/layoutlib_api/src/com/android/ide/common/rendering/api/LayoutLog.java b/layoutlib_api/src/com/android/ide/common/rendering/api/LayoutLog.java index a735f81..979b873 100644 --- a/layoutlib_api/src/com/android/ide/common/rendering/api/LayoutLog.java +++ b/layoutlib_api/src/com/android/ide/common/rendering/api/LayoutLog.java @@ -18,13 +18,13 @@ package com.android.ide.common.rendering.api; public class LayoutLog { - public void error(String tag, String message) { + public void warning(String tag, String message) { } - public void error(String tag, Throwable t) { + public void fidelityWarning(String tag, String message, Throwable throwable) { } - public void warning(String tag, String message) { + public void error(String tag, String message) { } /** @@ -36,7 +36,4 @@ public class LayoutLog { } - public void fidelityWarning(String tag, String message, Throwable throwable) { - - } } |