Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(943)

Unified Diff: plugins/org.chromium.debug.core/src/org/chromium/debug/core/util/ChromiumDebugPluginUtil.java

Issue 7089017: Change source look-up design (Closed) Base URL: https://chromedevtools.googlecode.com/svn/trunk
Patch Set: fcr Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: plugins/org.chromium.debug.core/src/org/chromium/debug/core/util/ChromiumDebugPluginUtil.java
diff --git a/plugins/org.chromium.debug.core/src/org/chromium/debug/core/util/ChromiumDebugPluginUtil.java b/plugins/org.chromium.debug.core/src/org/chromium/debug/core/util/ChromiumDebugPluginUtil.java
index 1a49b91b958cb625fc0fa00d4f796df4553c1e91..a14ee4e7d01d8385f1ce6c7d1b123fd15bd1a9f1 100644
--- a/plugins/org.chromium.debug.core/src/org/chromium/debug/core/util/ChromiumDebugPluginUtil.java
+++ b/plugins/org.chromium.debug.core/src/org/chromium/debug/core/util/ChromiumDebugPluginUtil.java
@@ -366,6 +366,22 @@ public class ChromiumDebugPluginUtil {
return collection.remove(value);
}
+ public static <T> boolean eq(T left, T right) {
+ if (left == null) {
+ return right == null;
+ } else {
+ return left.equals(right);
+ }
+ }
+
+ public static int hashCode(Object obj) {
+ if (obj == null) {
+ return 0;
+ } else {
+ return obj.hashCode();
+ }
+ }
+
public static String getStacktraceString(Exception exception) {
StringWriter stringWriter = new StringWriter();
PrintWriter printWriter = new PrintWriter(stringWriter);

Powered by Google App Engine
This is Rietveld 408576698