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

Unified Diff: compiler/java/com/google/dart/compiler/ast/LibraryImport.java

Issue 11226010: Issue 6073. Fixes for 'export'. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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: compiler/java/com/google/dart/compiler/ast/LibraryImport.java
diff --git a/compiler/java/com/google/dart/compiler/ast/LibraryImport.java b/compiler/java/com/google/dart/compiler/ast/LibraryImport.java
index 986fb3c2f19c73c8ef4704996825c1a54dc50eff..300093d138a331862875d407a32905b08b0f0e55 100644
--- a/compiler/java/com/google/dart/compiler/ast/LibraryImport.java
+++ b/compiler/java/com/google/dart/compiler/ast/LibraryImport.java
@@ -4,7 +4,6 @@
package com.google.dart.compiler.ast;
-import com.google.common.base.Objects;
import com.google.common.collect.Sets;
import java.util.List;
@@ -26,21 +25,6 @@ public class LibraryImport {
this.hideNames = createCombinatorsSet(combinators, false);
}
- @Override
- public int hashCode() {
- return Objects.hashCode(prefix, library);
- }
-
- @Override
- public boolean equals(Object obj) {
- if (obj instanceof LibraryImport) {
- LibraryImport other = (LibraryImport) obj;
- return Objects.equal(library, other.library) && Objects.equal(prefix, other.prefix)
- && Objects.equal(showNames, other.showNames) && Objects.equal(hideNames, other.hideNames);
- }
- return false;
- }
-
public LibraryUnit getLibrary() {
return library;
}
@@ -48,7 +32,7 @@ public class LibraryImport {
public String getPrefix() {
return prefix;
}
-
+
public boolean isVisible(String name) {
if (hideNames.contains(name)) {
return false;

Powered by Google App Engine
This is Rietveld 408576698