Procházet zdrojové kódy

minor: fixed some typos, indentation and compiler warnings

TMTron před 8 roky
rodič
revize
0514a3c8a2

+ 1
- 1
src/main/java/se/citerus/dddsample/application/impl/HandlingEventServiceImpl.java Zobrazit soubor

@@ -39,7 +39,7 @@ public class HandlingEventServiceImpl implements HandlingEventService {
39 39
                                     final HandlingEvent.Type type) throws CannotCreateHandlingEventException {
40 40
     final Date registrationTime = new Date();
41 41
     /* Using a factory to create a HandlingEvent (aggregate). This is where
42
-       it is determined wether the incoming data, the attempt, actually is capable
42
+       it is determined whether the incoming data, the attempt, actually is capable
43 43
        of representing a real handling event. */
44 44
     final HandlingEvent event = handlingEventFactory.createHandlingEvent(
45 45
       registrationTime, completionTime, trackingId, voyageNumber, unLocode, type

+ 2
- 2
src/main/java/se/citerus/dddsample/domain/model/cargo/Cargo.java Zobrazit soubor

@@ -31,13 +31,13 @@ import se.citerus.dddsample.domain.shared.Entity;
31 31
  * of the cargo is contained in the Delivery value object, which is replaced whenever a cargo
32 32
  * is handled by an asynchronous event triggered by the registration of the handling event.
33 33
  *
34
- * The delivery can also be affected by routing changes, i.e. when a the route specification
34
+ * The delivery can also be affected by routing changes, i.e. when the route specification
35 35
  * changes, or the cargo is assigned to a new route. In that case, the delivery update is performed
36 36
  * synchronously within the cargo aggregate.
37 37
  *
38 38
  * The life cycle of a cargo ends when the cargo is claimed by the customer.
39 39
  *
40
- * The cargo aggregate, and the entre domain model, is built to solve the problem
40
+ * The cargo aggregate, and the entire domain model, is built to solve the problem
41 41
  * of booking and tracking cargo. All important business rules for determining whether
42 42
  * or not a cargo is misdirected, what the current status of the cargo is (on board carrier,
43 43
  * in port etc), are captured in this aggregate.

+ 1
- 1
src/main/java/se/citerus/dddsample/domain/model/cargo/RouteSpecification.java Zobrazit soubor

@@ -10,7 +10,7 @@ import se.citerus.dddsample.domain.shared.ValueObject;
10 10
 import java.util.Date;
11 11
 
12 12
 /**
13
- * Route specification. Describes where a cargo orign and destination is,
13
+ * Route specification. Describes where a cargo origin and destination is,
14 14
  * and the arrival deadline.
15 15
  * 
16 16
  */

+ 2
- 2
src/main/java/se/citerus/dddsample/domain/model/handling/HandlingEvent.java Zobrazit soubor

@@ -14,10 +14,10 @@ import java.util.Date;
14 14
 
15 15
 /**
16 16
  * A HandlingEvent is used to register the event when, for instance,
17
- * a cargo is unloaded from a carrier at a some loacation at a given time.
17
+ * a cargo is unloaded from a carrier at some location at a given time.
18 18
  * <p/>
19 19
  * The HandlingEvent's are sent from different Incident Logging Applications
20
- * some time after the event occured and contain information about the
20
+ * some time after the event occurred and contain information about the
21 21
  * {@link se.citerus.dddsample.domain.model.cargo.TrackingId}, {@link se.citerus.dddsample.domain.model.location.Location}, timestamp of the completion of the event,
22 22
  * and possibly, if applicable a {@link se.citerus.dddsample.domain.model.voyage.Voyage}.
23 23
  * <p/>

+ 1
- 1
src/main/java/se/citerus/dddsample/domain/shared/experimental/ValueObjectSupport.java Zobrazit soubor

@@ -9,7 +9,7 @@ import se.citerus.dddsample.domain.shared.ValueObject;
9 9
  *
10 10
  * @param <T>
11 11
  */
12
-public abstract class ValueObjectSupport<T extends ValueObject> implements ValueObject<T> {
12
+public abstract class ValueObjectSupport<T extends ValueObject<T>> implements ValueObject<T> {
13 13
 
14 14
   private transient int cachedHashCode = 0;
15 15
 

+ 1
- 1
src/main/java/se/citerus/dddsample/infrastructure/routing/ExternalRoutingService.java Zobrazit soubor

@@ -43,7 +43,7 @@ public class ExternalRoutingService implements RoutingService {
43 43
     limitations.setProperty("DEADLINE", routeSpecification.arrivalDeadline().toString());
44 44
 
45 45
     final List<TransitPath> transitPaths;
46
-      transitPaths = graphTraversalService.findShortestPath(
46
+    transitPaths = graphTraversalService.findShortestPath(
47 47
       origin.unLocode().idString(),
48 48
       destination.unLocode().idString(),
49 49
       limitations

+ 1
- 1
src/main/java/se/citerus/dddsample/interfaces/handling/ws/HandlingReportServiceImpl.java Zobrazit soubor

@@ -23,7 +23,7 @@ import java.util.List;
23 23
 /**
24 24
  * This web service endpoint implementation performs basic validation and parsing
25 25
  * of incoming data, and in case of a valid registration attempt, sends an asynchronous message
26
- * with the informtion to the handling event registration system for proper registration.
26
+ * with the information to the handling event registration system for proper registration.
27 27
  *  
28 28
  */
29 29
 @WebService(endpointInterface = "com.aggregator.HandlingReportService")