Skip to content

Commit ca4b784

Browse files
committed
Clean up Itinerary
1 parent 12dac41 commit ca4b784

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/main/scala/se/citerus/dddsample/domain/model/cargo/Itinerary.scala

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ import scala.collection.JavaConverters._
1111
/**
1212
* Created by dan on 2016-09-23.
1313
*/
14-
15-
1614
case class Itinerary(legs: java.util.List[Leg]) {
17-
private val END_OF_DAYS: Date = new Date(Long.MaxValue)
1815

1916
require(legs != null, "Legs cannot be null")
2017
require(!legs.contains(null), "Legs cannot have null elements")
@@ -57,6 +54,4 @@ case class Itinerary(legs: java.util.List[Leg]) {
5754
new Date(legs.asScala.last.unloadTime.getTime)
5855
}
5956
}
60-
61-
private val id: Long = 0L
6257
}

0 commit comments

Comments
 (0)