diff --git a/pom.xml b/pom.xml index edcb2e4..216dc9b 100644 --- a/pom.xml +++ b/pom.xml @@ -8,6 +8,18 @@ autoresponder 1.8-RELEASE jar + + Abstract Autoresponder + Abstract implementation for processing text requests. + https://github.com/uPagge/autoresponder + + + BSD License + https://github.com/uPagge/autoresponder/blob/master/LICENSE + repo + + + @@ -22,9 +34,17 @@ + + + ossrh + https://oss.sonatype.org/content/repositories/snapshots + + + 1.7.26 4.12 + 1.18.6 @@ -43,10 +63,88 @@ org.projectlombok lombok - 1.18.6 + ${lombok.ver} + + scm:git:https://github.com/uPagge/autoresponder.git + https://github.com/uPagge/autoresponder + scm:git:https://github.com/uPagge/autoresponder.git + + + + + release + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.7 + true + + ossrh + https://oss.sonatype.org/ + true + + + + org.apache.maven.plugins + maven-source-plugin + 2.2.1 + + + attach-sources + + jar-no-fork + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.9.1 + + + attach-javadocs + + jar + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.5 + + + sign-artifacts + verify + + sign + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.7 + true + + ossrh + https://oss.sonatype.org/ + true + + + + + + + uPagge diff --git a/src/main/java/org/sadtech/autoresponder/entity/Unit.java b/src/main/java/org/sadtech/autoresponder/entity/Unit.java index cf8900e..fffbb84 100644 --- a/src/main/java/org/sadtech/autoresponder/entity/Unit.java +++ b/src/main/java/org/sadtech/autoresponder/entity/Unit.java @@ -52,4 +52,5 @@ public abstract class Unit { this.priority = Optional.ofNullable(priority).orElse(10); this.nextUnits = nextUnits; } + } diff --git a/src/main/java/org/sadtech/autoresponder/repository/UnitPointerRepository.java b/src/main/java/org/sadtech/autoresponder/repository/UnitPointerRepository.java index 477ef62..68a31d4 100644 --- a/src/main/java/org/sadtech/autoresponder/repository/UnitPointerRepository.java +++ b/src/main/java/org/sadtech/autoresponder/repository/UnitPointerRepository.java @@ -1,6 +1,7 @@ package org.sadtech.autoresponder.repository; import lombok.NonNull; +import org.sadtech.autoresponder.entity.Unit; import org.sadtech.autoresponder.entity.UnitPointer; import java.util.Collection; @@ -23,7 +24,7 @@ public interface UnitPointerRepository { /** * @param entityId Идентификатор пользователя - * @return Объект с последним обработанным {@link org.sadtech.autoresponder.entity.Unit} для пользователя + * @return Объект с последним обработанным {@link Unit} для пользователя */ Optional findByEntityId(@NonNull Long entityId); diff --git a/src/main/java/org/sadtech/autoresponder/repository/UnitPointerRepositoryMap.java b/src/main/java/org/sadtech/autoresponder/repository/UnitPointerRepositoryMap.java index 6a97bd1..1d61a81 100644 --- a/src/main/java/org/sadtech/autoresponder/repository/UnitPointerRepositoryMap.java +++ b/src/main/java/org/sadtech/autoresponder/repository/UnitPointerRepositoryMap.java @@ -42,4 +42,5 @@ public class UnitPointerRepositoryMap implements UnitPointerRepository { public Optional findByEntityId(@NonNull Long entityId) { return Optional.ofNullable(unitPointerMap.get(entityId)); } + } diff --git a/src/main/java/org/sadtech/autoresponder/service/UnitPointerService.java b/src/main/java/org/sadtech/autoresponder/service/UnitPointerService.java index 8cb1bbd..a5f0fe2 100644 --- a/src/main/java/org/sadtech/autoresponder/service/UnitPointerService.java +++ b/src/main/java/org/sadtech/autoresponder/service/UnitPointerService.java @@ -27,5 +27,4 @@ public interface UnitPointerService { void edit(@NonNull Long entityId, Unit unit); - } diff --git a/src/main/java/org/sadtech/autoresponder/service/UnitPointerServiceImpl.java b/src/main/java/org/sadtech/autoresponder/service/UnitPointerServiceImpl.java index 996d28b..30f7fad 100644 --- a/src/main/java/org/sadtech/autoresponder/service/UnitPointerServiceImpl.java +++ b/src/main/java/org/sadtech/autoresponder/service/UnitPointerServiceImpl.java @@ -37,4 +37,5 @@ public class UnitPointerServiceImpl implements UnitPointerService { public boolean check(@NonNull Long entityId) { return unitPointerRepository.findByEntityId(entityId).isPresent(); } + } diff --git a/src/main/java/org/sadtech/autoresponder/util/Description.java b/src/main/java/org/sadtech/autoresponder/util/Description.java index b5c7642..d374876 100644 --- a/src/main/java/org/sadtech/autoresponder/util/Description.java +++ b/src/main/java/org/sadtech/autoresponder/util/Description.java @@ -13,5 +13,7 @@ import java.lang.annotation.Target; @Target(ElementType.FIELD) @Retention(RetentionPolicy.SOURCE) public @interface Description { + String value() default ""; + } diff --git a/src/main/java/org/sadtech/autoresponder/util/Message.java b/src/main/java/org/sadtech/autoresponder/util/Message.java index 68954b0..28e764b 100644 --- a/src/main/java/org/sadtech/autoresponder/util/Message.java +++ b/src/main/java/org/sadtech/autoresponder/util/Message.java @@ -12,4 +12,5 @@ final class Message { private Message() { throw new IllegalStateException(UTILITY_CLASS); } + }