Skip to content

Commit

Permalink
Fixed spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
benfortuna committed Mar 3, 2023
1 parent 6c715bf commit 087c549
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions src/main/java/net/fortuna/ical4j/data/ContentHandlerContext.java
Expand Up @@ -21,15 +21,15 @@ public class ContentHandlerContext {

private List<String> ignoredPropertyNames = Collections.emptyList();

private boolean supressInvalidProperties;
private boolean suppressInvalidProperties;

public ContentHandlerContext withParameterFactorySupplier(Supplier<List<ParameterFactory<?>>> parameterFactorySupplier) {
ContentHandlerContext context = new ContentHandlerContext();
context.parameterFactorySupplier = parameterFactorySupplier;
context.propertyFactorySupplier = this.propertyFactorySupplier;
context.componentFactorySupplier = this.componentFactorySupplier;
context.ignoredPropertyNames = this.ignoredPropertyNames;
context.supressInvalidProperties = this.supressInvalidProperties;
context.suppressInvalidProperties = this.suppressInvalidProperties;
return context;
}

Expand All @@ -39,7 +39,7 @@ public ContentHandlerContext withPropertyFactorySupplier(Supplier<List<PropertyF
context.propertyFactorySupplier = propertyFactorySupplier;
context.componentFactorySupplier = this.componentFactorySupplier;
context.ignoredPropertyNames = this.ignoredPropertyNames;
context.supressInvalidProperties = this.supressInvalidProperties;
context.suppressInvalidProperties = this.suppressInvalidProperties;
return context;
}

Expand All @@ -49,7 +49,7 @@ public ContentHandlerContext withComponentFactorySupplier(Supplier<List<Componen
context.propertyFactorySupplier = this.propertyFactorySupplier;
context.componentFactorySupplier = componentFactorySupplier;
context.ignoredPropertyNames = this.ignoredPropertyNames;
context.supressInvalidProperties = this.supressInvalidProperties;
context.suppressInvalidProperties = this.suppressInvalidProperties;
return context;
}

Expand All @@ -59,7 +59,7 @@ public ContentHandlerContext withIgnoredPropertyNames(List<String> ignoredProper
context.propertyFactorySupplier = this.propertyFactorySupplier;
context.componentFactorySupplier = this.componentFactorySupplier;
context.ignoredPropertyNames = ignoredPropertyNames;
context.supressInvalidProperties = this.supressInvalidProperties;
context.suppressInvalidProperties = this.suppressInvalidProperties;
return context;
}

Expand All @@ -69,7 +69,7 @@ public ContentHandlerContext withSupressInvalidProperties(boolean supressInvalid
context.propertyFactorySupplier = this.propertyFactorySupplier;
context.componentFactorySupplier = this.componentFactorySupplier;
context.ignoredPropertyNames = this.ignoredPropertyNames;
context.supressInvalidProperties = supressInvalidProperties;
context.suppressInvalidProperties = supressInvalidProperties;
return context;
}

Expand All @@ -89,7 +89,7 @@ public List<String> getIgnoredPropertyNames() {
return ignoredPropertyNames;
}

public boolean isSupressInvalidProperties() {
return supressInvalidProperties;
public boolean isSuppressInvalidProperties() {
return suppressInvalidProperties;
}
}
Expand Up @@ -160,7 +160,7 @@ public void endProperty(String name) throws URISyntaxException, ParseException,
try {
property = propertyBuilder.build();
} catch (URISyntaxException | ParseException | IOException | IllegalArgumentException e) {
if (context.isSupressInvalidProperties()) {
if (context.isSuppressInvalidProperties()) {
LOG.warn("Suppressing invalid property", e);
return;
} else {
Expand Down

0 comments on commit 087c549

Please sign in to comment.