Skip to content

Commit ad520f3

Browse files
committed
Use ||, not |
1 parent 48a7d11 commit ad520f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/transform/BeanProperties.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class BeanProperties(thisPhase: DenotTransformer):
3535
coord = annot.tree.span
3636
).enteredAfter(thisPhase).asTerm
3737
val annots = valDef.symbol.annotations.filter { a =>
38-
a.hasOneOfMetaAnnotation(defn.BeanGetterMetaAnnot) | !a.hasOneOfMetaAnnotation(defn.BeanSetterMetaAnnot)
38+
a.hasOneOfMetaAnnotation(defn.BeanGetterMetaAnnot) || !a.hasOneOfMetaAnnotation(defn.BeanSetterMetaAnnot)
3939
}
4040
meth.addAnnotations(annots)
4141
val body: Tree = ref(valDef.symbol)
@@ -52,7 +52,7 @@ class BeanProperties(thisPhase: DenotTransformer):
5252
coord = annot.tree.span
5353
).enteredAfter(thisPhase).asTerm
5454
val annots = valDef.symbol.annotations.filter { a =>
55-
a.hasOneOfMetaAnnotation(defn.BeanSetterMetaAnnot) | !a.hasOneOfMetaAnnotation(defn.BeanGetterMetaAnnot)
55+
a.hasOneOfMetaAnnotation(defn.BeanSetterMetaAnnot) || !a.hasOneOfMetaAnnotation(defn.BeanGetterMetaAnnot)
5656
}
5757
meth.addAnnotations(annots)
5858
DefDef(meth, (params: List[List[Tree]]) => Assign(ref(valDef.symbol), params.head.head)).withSpan(meth.span)

0 commit comments

Comments
 (0)