From 64cc0e21c489faa2fa03187674c80a006481ea1e Mon Sep 17 00:00:00 2001 From: Xavier Ducrohet Date: Tue, 11 Jan 2011 13:12:23 -0800 Subject: 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 --- .../src/com/android/ide/common/rendering/api/LayoutLog.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'layoutlib_api/src/com') 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) { - - } } -- cgit v1.1