Skip to content

Commit

Permalink
use utility containsAnyOf
Browse files Browse the repository at this point in the history
  • Loading branch information
j-roskopf committed Apr 18, 2024
1 parent 613415d commit 77d9465
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ internal class CodeWriter constructor(
return false
}

if (implicitModifiers.contains(KModifier.INTERNAL) || implicitModifiers.contains(KModifier.PRIVATE) || implicitModifiers.contains(KModifier.PROTECTED)) {
if (implicitModifiers.containsAnyOf(KModifier.INTERNAL, KModifier.PRIVATE, KModifier.PROTECTED)) {
// omit more permissive modifiers on more restrictive visibility modifiers
return false
}
Expand Down

0 comments on commit 77d9465

Please sign in to comment.