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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/DuplicatedInterfaceException.java

Issue 10627017: Removes compile-time error from implementing the same interface more than once (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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: compiler/java/com/google/dart/compiler/resolver/DuplicatedInterfaceException.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/DuplicatedInterfaceException.java b/compiler/java/com/google/dart/compiler/resolver/DuplicatedInterfaceException.java
deleted file mode 100644
index a7ee5b07f75f63a990afd6d158d00302396a0bae..0000000000000000000000000000000000000000
--- a/compiler/java/com/google/dart/compiler/resolver/DuplicatedInterfaceException.java
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-package com.google.dart.compiler.resolver;
-
-import com.google.dart.compiler.type.InterfaceType;
-
-/**
- * Exception thrown if a duplicated interface is detected in the supertype graph of a class or
- * interface.
- */
-public class DuplicatedInterfaceException extends Exception {
- private final InterfaceType first;
- private final InterfaceType second;
-
- public DuplicatedInterfaceException(InterfaceType first, InterfaceType second) {
- super(first + " & " + second);
- this.first = first;
- this.second = second;
- }
-
- public InterfaceType getFirst() {
- return first;
- }
-
- public InterfaceType getSecond() {
- return second;
- }
-}

Powered by Google App Engine
This is Rietveld 408576698