Skip to content

Commit

Permalink
Changed parameter type of Modifier#getAccessSpecifier(...) from EnumS…
Browse files Browse the repository at this point in the history
…et to Set (more generic for wider compatibility).
  • Loading branch information
Johann Beleites committed Oct 18, 2018
1 parent cc31e22 commit a8e82bf
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -22,6 +22,7 @@
package com.github.javaparser.ast;

import java.util.EnumSet;
import java.util.Set;

/**
* One of the modifiers known in Java.
Expand Down Expand Up @@ -58,7 +59,7 @@ public EnumSet<Modifier> toEnumSet() {
return EnumSet.of(this);
}

public static AccessSpecifier getAccessSpecifier(EnumSet<Modifier> modifiers) {
public static AccessSpecifier getAccessSpecifier(Set<Modifier> modifiers) {
if (modifiers.contains(Modifier.PUBLIC)) {
return AccessSpecifier.PUBLIC;
} else if (modifiers.contains(Modifier.PROTECTED)) {
Expand Down

0 comments on commit a8e82bf

Please sign in to comment.