Skip to content

Commit

Permalink
fix pre-1.8 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
n1hility committed Jul 16, 2020
1 parent a57bb59 commit f1e4a0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/jboss/jandex/AnnotationValue.java
Expand Up @@ -1039,7 +1039,7 @@ public boolean asBoolean() {
@Override
public int hashCode() {
int result = super.hashCode();
result = 31 * result + Boolean.hashCode(value);
result = 31 * result + (value ? 1231 : 1237);
return result;
}

Expand Down
3 changes: 1 addition & 2 deletions src/main/java/org/jboss/jandex/Index.java
Expand Up @@ -18,7 +18,6 @@

package org.jboss.jandex;

import java.lang.annotation.Repeatable;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.Collection;
Expand Down Expand Up @@ -48,7 +47,7 @@ public final class Index implements IndexView {
private static final List<AnnotationInstance> EMPTY_ANNOTATION_LIST = Collections.emptyList();
private static final List<ClassInfo> EMPTY_CLASSINFO_LIST = Collections.emptyList();

static final DotName REPEATABLE = DotName.createSimple(Repeatable.class.getName());
static final DotName REPEATABLE = DotName.createSimple("java.lang.annotation.Repeatable");

final Map<DotName, List<AnnotationInstance>> annotations;
final Map<DotName, List<ClassInfo>> subclasses;
Expand Down

0 comments on commit f1e4a0b

Please sign in to comment.