File: AnnotationTest.scala

package info (click to toggle)
scala 2.11.12-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 62,924 kB
  • sloc: javascript: 28,808; java: 13,415; xml: 3,135; sh: 1,620; python: 756; makefile: 38; awk: 36; ansic: 6
file content (33 lines) | stat: -rw-r--r-- 1,098 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
trait AnnotationTest {
  @BooleanAnnotation(Constants.BooleanTrue)
  @ByteAnnotation(Constants.Byte)
  @CharAnnotation(Constants.Char)
  @ShortAnnotation(Constants.Short)
  @IntAnnotation(Constants.Int)
  @LongAnnotation(Constants.Long)
  @FloatAnnotation(Constants.Float)
  @DoubleAnnotation(Constants.Double)
  @StringAnnotation(Constants.String)
  def test1: Unit

  @BooleanAnnotation(Constants.InvertedBoolean)
  @ByteAnnotation(Constants.NegativeByte)
  @ShortAnnotation(Constants.NegativeShort)
  @IntAnnotation(Constants.NegativeInt)
  @LongAnnotation(Constants.NegativeLong)
  @FloatAnnotation(Constants.NegativeFloat)
  @DoubleAnnotation(Constants.NegativeDouble)
  @StringAnnotation(Constants.NegativeString)
  def test2: Unit

  @BooleanAnnotation(Constants.BooleanFalse)
  @ByteAnnotation(Constants.LiteralCharAsByte)
  @CharAnnotation(Constants.LiteralChar)
  @ShortAnnotation(Constants.LiteralCharAsShort)
  @IntAnnotation(Constants.LiteralCharAsInt)
  @LongAnnotation(Constants.LiteralCharAsLong)
  def test3: Unit

  @LongAnnotation(Constants.LiteralIntAsLong)
  def test4: Unit
}