@@ -82,7 +82,7 @@ protected BoundedContext getBoundedContext() {
8282 * @param <S> the type of the part state
8383 * @return the state of the part or a default state if the state was not found
8484 */
85- protected <S extends Message , A extends AggregatePart <I , S , ?>> S getPart (Class <S > partStateClass ) {
85+ protected <S extends Message , A extends AggregatePart <I , S , ?>> S getPartState (Class <S > partStateClass ) {
8686 final AggregatePartRepository <I , A > repo = getRepository (partStateClass );
8787 final AggregatePart <I , S , ?> aggregatePart = repo .loadOrCreate (getId ());
8888 final S partState = aggregatePart .getState ();
@@ -92,8 +92,9 @@ protected BoundedContext getBoundedContext() {
9292 /**
9393 * Obtains a repository for the passed state class.
9494 *
95- * @throws IllegalStateException if a repository was not found
96- * or the repository does not match expectations of this {@code AggregateRoot}
95+ * @throws IllegalStateException
96+ * if a repository was not found,
97+ * or the repository does not match expectations of this {@code AggregateRoot}
9798 */
9899 private <S extends Message , A extends AggregatePart <I , S , ?>>
99100 AggregatePartRepository <I , A > getRepository (Class <S > stateClass ) {
0 commit comments