File tree Expand file tree Collapse file tree 2 files changed +1
-28
lines changed
common/scala/src/main/scala/org/apache/openwhisk/core/connector
core/controller/src/main/scala/org/apache/openwhisk/core/controller Expand file tree Collapse file tree 2 files changed +1
-28
lines changed Original file line number Diff line number Diff line change @@ -440,34 +440,6 @@ case class InvokerResourceMessage(status: String,
440
440
* Serializes message to string. Must be idempotent.
441
441
*/
442
442
override def serialize : String = InvokerResourceMessage .serdes.write(this ).compactPrint
443
-
444
- def canEqual (a : Any ) = a.isInstanceOf [InvokerResourceMessage ]
445
-
446
- override def equals (that : Any ): Boolean =
447
- that match {
448
- case that : InvokerResourceMessage => {
449
- that.canEqual(this ) &&
450
- this .status == that.status &&
451
- this .freeMemory == that.freeMemory &&
452
- this .busyMemory == that.busyMemory &&
453
- this .inProgressMemory == that.inProgressMemory &&
454
- this .tags.toSet == that.tags.toSet
455
- this .dedicatedNamespaces.toSet == that.dedicatedNamespaces.toSet
456
- }
457
- case _ => false
458
- }
459
-
460
- override def hashCode : Int = {
461
- var result = 1 ;
462
- val prime = 31
463
- result = prime * result + status.hashCode()
464
- result = prime * result + freeMemory.hashCode()
465
- result = prime * result + busyMemory.hashCode()
466
- result = prime * result + inProgressMemory.hashCode()
467
- result = prime * result + tags.hashCode()
468
- result = prime * result + dedicatedNamespaces.hashCode()
469
- result
470
- }
471
443
}
472
444
473
445
object InvokerResourceMessage extends DefaultJsonProtocol {
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ import org.apache.openwhisk.spi.SpiLoader
42
42
import pureconfig ._
43
43
import spray .json .DefaultJsonProtocol ._
44
44
import spray .json ._
45
+ import pureconfig .generic .auto ._
45
46
46
47
import scala .concurrent .Await
47
48
import scala .concurrent .ExecutionContext .Implicits
You can’t perform that action at this time.
0 commit comments