package com.puppycrawl.tools.checkstyle.checks.annotation.annotationusestyle;
@Deprecated
@SomeArrays(pooches={DOGS.LEO})
@SuppressWarnings({""})
public class InputAnnotationUseStyleDifferentStyles
{
}
@SomeArrays(pooches={DOGS.LEO}, um={}, duh={"bleh"})
@SuppressWarnings("") //compact_no_array
@Deprecated()
class Dep {
}
@Deprecated
@SomeArrays(pooches={DOGS.LEO})
@SuppressWarnings({""})
enum SON {
@Deprecated
@SomeArrays(pooches={DOGS.LEO}, um={""}, duh={"bleh"})
@APooch(dog=DOGS.HERBIE)
@Another("") //compact_no_array
ETHAN
}
@InputAnnotationUseStyleCustomAnnotation()
enum DOGS {
@Deprecated()
LEO,
HERBIE
}
@interface SomeArrays {
@Another("") //compact
String[] um() default {};
@Another({""}) //compact
String[] duh() default {};
@Another(value={""}) //expanded
DOGS[] pooches();
}
@Another(value={""}) //expanded
enum E {
}
@interface APooch {
DOGS dog();
}
@interface Another {
String[] value();
@Another({"foo", "bar"}) //compact style
String value1() default "";
}
@SomeArrays(pooches = {})
@Another({})
class Closing {
}