You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@esme.apache.org by vd...@apache.org on 2011/05/14 05:43:32 UTC
svn commit: r1102946 -
/esme/trunk/server/src/main/scala/org/apache/esme/model/Action.scala
Author: vdichev
Date: Sat May 14 03:43:32 2011
New Revision: 1102946
URL: http://svn.apache.org/viewvc?rev=1102946&view=rev
Log:
ESME-321 Removed superfluous methods from FetchFeed
Modified:
esme/trunk/server/src/main/scala/org/apache/esme/model/Action.scala
Modified: esme/trunk/server/src/main/scala/org/apache/esme/model/Action.scala
URL: http://svn.apache.org/viewvc/esme/trunk/server/src/main/scala/org/apache/esme/model/Action.scala?rev=1102946&r1=1102945&r2=1102946&view=diff
==============================================================================
--- esme/trunk/server/src/main/scala/org/apache/esme/model/Action.scala (original)
+++ esme/trunk/server/src/main/scala/org/apache/esme/model/Action.scala Sat May 14 03:43:32 2011
@@ -574,19 +574,9 @@ case object PerformResend extends Perfor
case object PerformFilter extends Performances
case object ScalaInterpret extends Performances
-object FetchFeed extends ((UrlStore, List[String]) => FetchFeed) {
- def unapply(f: FetchFeed): Option[(UrlStore, List[String])] = {
- Some(f.url, f.tags)
- }
- def apply(url: UrlStore, tags: List[String]) = new FetchFeed(url, tags)
+object FetchFeed {
+ def unapply(f: FetchFeed): Option[(UrlStore, List[String])] =
+ Some((f.url, f.tags))
}
-class FetchFeed(val url: UrlStore, val tags: List[String]) extends Performances {
- override def hashCode = 41 * (41 + url.hashCode) + tags.hashCode
- override def equals(other: Any) = other match {
- case that: FetchFeed => (that canEqual this) && super.equals(that) && this.url == that.url && this.tags == that.tags
- case _ => false
- }
- def canEqual(other: Any) = other.isInstanceOf[FetchFeed]
- def copy(url1: UrlStore = url, tags1: List[String] = tags) = new FetchFeed(url1, tags1)
-}
\ No newline at end of file
+abstract class FetchFeed(val url: UrlStore, val tags: List[String]) extends Performances
\ No newline at end of file