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

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: clean 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..cfa1124a8550c8b8e0ce5cbc72917d6c1ed3a7d4 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 one, T two) {
+ if (one == null) {
+ return two == null;
+ } else {
+ return one.equals(two);
apavlov 2011/06/14 14:54:36 this line is more than suspicious. The usual param
Peter Rybin 2011/06/16 08:50:24 Done.
+ }
+ }
+
+ 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