@@ -40,12 +40,12 @@ public class Restrictions {
40
40
41
41
private static final String REP_GLOB_PROPERTY = "rep:glob" ;
42
42
43
- private static final String REP_NTNAMES_PROPERTY = "rep:ntNames" ;
43
+ private static final String REP_NT_NAMES_PROPERTY = "rep:ntNames" ;
44
44
45
- private static final String REP_ITEMNAMES_PROPERTY = "rep:itemNames" ;
45
+ private static final String REP_ITEM_NAMES_PROPERTY = "rep:itemNames" ;
46
46
47
- private static final Set <String > MULTIVALUE_REP_PROPERTIES = ImmutableSet .of (
48
- REP_NTNAMES_PROPERTY , REP_ITEMNAMES_PROPERTY , "rep:prefixes" , "rep:current" , "rep:globs" ,
47
+ private static final Set <String > MULTI_VALUE_REP_PROPERTIES = ImmutableSet .of (
48
+ REP_NT_NAMES_PROPERTY , REP_ITEM_NAMES_PROPERTY , "rep:prefixes" , "rep:current" , "rep:globs" ,
49
49
"rep:subtrees" , "sling:resourceTypes" , "sling:resourceTypesWithDescendants"
50
50
);
51
51
@@ -76,7 +76,7 @@ public Map<String, Value> getSingleValueRestrictions(ValueFactory valueFactory)
76
76
Map <String , Value > result = new HashMap <>();
77
77
addRestriction (valueFactory , result , REP_GLOB_PROPERTY , glob );
78
78
for (Map .Entry <String , Object > entry : customRestrictions .entrySet ()) {
79
- if (!isMultivalue (entry )) {
79
+ if (!isMultiValue (entry )) {
80
80
String value ;
81
81
if (entry .getValue () instanceof String ) {
82
82
value = (String ) entry .getValue ();
@@ -108,10 +108,10 @@ private Value normalizeGlob(ValueFactory valueFactory) {
108
108
109
109
public Map <String , Value []> getMultiValueRestrictions (ValueFactory valueFactory ) throws ValueFormatException {
110
110
Map <String , Value []> result = new HashMap <>();
111
- addRestrictions (valueFactory , result , REP_NTNAMES_PROPERTY , ntNames );
112
- addRestrictions (valueFactory , result , REP_ITEMNAMES_PROPERTY , itemNames );
111
+ addRestrictions (valueFactory , result , REP_NT_NAMES_PROPERTY , ntNames );
112
+ addRestrictions (valueFactory , result , REP_ITEM_NAMES_PROPERTY , itemNames );
113
113
for (Map .Entry <String , Object > entry : customRestrictions .entrySet ()) {
114
- if (isMultivalue (entry )) {
114
+ if (isMultiValue (entry )) {
115
115
List <String > values ;
116
116
if (entry .getValue () instanceof String ) {
117
117
values = Collections .singletonList ((String ) entry .getValue ());
@@ -146,11 +146,11 @@ private int determinePropertyType(String key) {
146
146
}
147
147
}
148
148
149
- private boolean isMultivalue (Map .Entry <String , Object > entry ) {
149
+ private boolean isMultiValue (Map .Entry <String , Object > entry ) {
150
150
boolean result ;
151
151
if (REP_GLOB_PROPERTY .equals (entry .getKey ())) {
152
152
result = false ;
153
- } else if (MULTIVALUE_REP_PROPERTIES .contains (entry .getKey ())) {
153
+ } else if (MULTI_VALUE_REP_PROPERTIES .contains (entry .getKey ())) {
154
154
result = true ;
155
155
} else {
156
156
result = entry .getValue () instanceof List ;
0 commit comments