From 45a558ae7f340a300926f2f82e44484d4842cfe4 Mon Sep 17 00:00:00 2001 From: "cmzmasek@gmail.com" Date: Mon, 25 Apr 2011 21:38:59 +0000 Subject: [PATCH] in progress --- forester/java/src/org/forester/ws/uniprot/EbiDbEntry.java | 6 ++---- forester/java/src/org/forester/ws/uniprot/UniProtEntry.java | 5 +++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/forester/java/src/org/forester/ws/uniprot/EbiDbEntry.java b/forester/java/src/org/forester/ws/uniprot/EbiDbEntry.java index 8adda22..98fe38d 100644 --- a/forester/java/src/org/forester/ws/uniprot/EbiDbEntry.java +++ b/forester/java/src/org/forester/ws/uniprot/EbiDbEntry.java @@ -27,8 +27,6 @@ package org.forester.ws.uniprot; import java.util.List; -import sun.reflect.generics.reflectiveObjects.NotImplementedException; - public final class EbiDbEntry implements SequenceDatabaseEntry { //http://www.ebi.ac.uk/Tools/dbfetch/dbfetch/emb/AAR37336/ @@ -42,8 +40,8 @@ public final class EbiDbEntry implements SequenceDatabaseEntry { } @Override - public Object clone() { - throw new NotImplementedException(); + public Object clone() throws CloneNotSupportedException { + throw new CloneNotSupportedException(); } public static SequenceDatabaseEntry createInstanceFromPlainText( final List lines ) { diff --git a/forester/java/src/org/forester/ws/uniprot/UniProtEntry.java b/forester/java/src/org/forester/ws/uniprot/UniProtEntry.java index 222df5b..5a5568a 100644 --- a/forester/java/src/org/forester/ws/uniprot/UniProtEntry.java +++ b/forester/java/src/org/forester/ws/uniprot/UniProtEntry.java @@ -38,6 +38,11 @@ public final class UniProtEntry implements SequenceDatabaseEntry { private UniProtEntry() { } + @Override + public Object clone() throws CloneNotSupportedException { + throw new CloneNotSupportedException(); + } + public static SequenceDatabaseEntry createInstanceFromPlainText( final List lines ) { final UniProtEntry e = new UniProtEntry(); for( final String line : lines ) { -- 1.7.10.2