Skip to content

Commit b533975

Browse files
committed
typo
1 parent 0ce89a4 commit b533975

File tree

1 file changed

+10
-10
lines changed
  • app/aem/actions.main/src/main/java/com/cognifide/apm/main/permissions

1 file changed

+10
-10
lines changed

app/aem/actions.main/src/main/java/com/cognifide/apm/main/permissions/Restrictions.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ public class Restrictions {
4040

4141
private static final String REP_GLOB_PROPERTY = "rep:glob";
4242

43-
private static final String REP_NTNAMES_PROPERTY = "rep:ntNames";
43+
private static final String REP_NT_NAMES_PROPERTY = "rep:ntNames";
4444

45-
private static final String REP_ITEMNAMES_PROPERTY = "rep:itemNames";
45+
private static final String REP_ITEM_NAMES_PROPERTY = "rep:itemNames";
4646

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",
4949
"rep:subtrees", "sling:resourceTypes", "sling:resourceTypesWithDescendants"
5050
);
5151

@@ -76,7 +76,7 @@ public Map<String, Value> getSingleValueRestrictions(ValueFactory valueFactory)
7676
Map<String, Value> result = new HashMap<>();
7777
addRestriction(valueFactory, result, REP_GLOB_PROPERTY, glob);
7878
for (Map.Entry<String, Object> entry : customRestrictions.entrySet()) {
79-
if (!isMultivalue(entry)) {
79+
if (!isMultiValue(entry)) {
8080
String value;
8181
if (entry.getValue() instanceof String) {
8282
value = (String) entry.getValue();
@@ -108,10 +108,10 @@ private Value normalizeGlob(ValueFactory valueFactory) {
108108

109109
public Map<String, Value[]> getMultiValueRestrictions(ValueFactory valueFactory) throws ValueFormatException {
110110
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);
113113
for (Map.Entry<String, Object> entry : customRestrictions.entrySet()) {
114-
if (isMultivalue(entry)) {
114+
if (isMultiValue(entry)) {
115115
List<String> values;
116116
if (entry.getValue() instanceof String) {
117117
values = Collections.singletonList((String) entry.getValue());
@@ -146,11 +146,11 @@ private int determinePropertyType(String key) {
146146
}
147147
}
148148

149-
private boolean isMultivalue(Map.Entry<String, Object> entry) {
149+
private boolean isMultiValue(Map.Entry<String, Object> entry) {
150150
boolean result;
151151
if (REP_GLOB_PROPERTY.equals(entry.getKey())) {
152152
result = false;
153-
} else if (MULTIVALUE_REP_PROPERTIES.contains(entry.getKey())) {
153+
} else if (MULTI_VALUE_REP_PROPERTIES.contains(entry.getKey())) {
154154
result = true;
155155
} else {
156156
result = entry.getValue() instanceof List;

0 commit comments

Comments
 (0)