Skip to content

Commit c1a6d62

Browse files
committed
sq fixes
1 parent cdc520d commit c1a6d62

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/main/java/com/github/_1c_syntax/bsl/parser/description/SimpleTypeDescription.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424
import lombok.AccessLevel;
2525
import lombok.AllArgsConstructor;
26-
import lombok.Getter;
2726
import lombok.Value;
2827
import lombok.experimental.Accessors;
2928

@@ -49,7 +48,7 @@ public class SimpleTypeDescription implements TypeDescription {
4948
public static final SimpleTypeDescription EMPTY = new SimpleTypeDescription("", "", Collections.emptyList());
5049

5150
public static TypeDescription create(String name, String description, List<ParameterDescription> fieldList) {
52-
if(name.isEmpty() && description.isEmpty()) {
51+
if (name.isBlank() && description.isBlank()) {
5352
return EMPTY;
5453
}
5554
return new SimpleTypeDescription(

src/main/java/com/github/_1c_syntax/bsl/parser/description/support/Hyperlink.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323

2424
import edu.umd.cs.findbugs.annotations.Nullable;
2525

26+
import java.util.Objects;
27+
2628
/**
2729
* Описывает гиперссылку в комментария-описаниях (см. ссылка(параметры_ссылки))
2830
*
@@ -89,4 +91,9 @@ public boolean equals(@Nullable Object other) {
8991
public String toString() {
9092
return link + (params.isEmpty() ? "" : "(" + params + ")");
9193
}
94+
95+
@Override
96+
public int hashCode() {
97+
return Objects.hash(link, params);
98+
}
9299
}

0 commit comments

Comments
 (0)