Skip to content

Commit

Permalink
Merge pull request #434 from F43nd1r/configurationbuilder
Browse files Browse the repository at this point in the history
ConfigurationBuilder: Use varargs where applicable
  • Loading branch information
william-ferguson-au committed Apr 15, 2016
2 parents fc3e4fd + 70fbdf4 commit a28d565
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/main/java/org/acra/config/ConfigurationBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public ConfigurationBuilder setHttpHeaders(@NonNull Map<String, String> headers)
* @return this instance
*/
@NonNull
public ConfigurationBuilder setAdditionalDropboxTags(@NonNull String[] additionalDropboxTags) {
public ConfigurationBuilder setAdditionalDropboxTags(@NonNull String... additionalDropboxTags) {
this.additionalDropBoxTags = additionalDropboxTags;
return this;
}
Expand All @@ -209,7 +209,7 @@ public ConfigurationBuilder setAdditionalDropboxTags(@NonNull String[] additiona
* @return this instance
*/
@NonNull
public ConfigurationBuilder setAdditionalSharedPreferences(@NonNull String[] additionalSharedPreferences) {
public ConfigurationBuilder setAdditionalSharedPreferences(@NonNull String... additionalSharedPreferences) {
this.additionalSharedPreferences = additionalSharedPreferences;
return this;
}
Expand All @@ -229,7 +229,7 @@ public ConfigurationBuilder setConnectionTimeout(int connectionTimeout) {
* @return this instance
*/
@NonNull
public ConfigurationBuilder setCustomReportContent(@NonNull ReportField[] customReportContent) {
public ConfigurationBuilder setCustomReportContent(@NonNull ReportField... customReportContent) {
this.customReportContent = customReportContent;
return this;
}
Expand Down Expand Up @@ -334,7 +334,7 @@ public ConfigurationBuilder setIncludeDropboxSystemTags(boolean includeDropboxSy
* @return this instance
*/
@NonNull
public ConfigurationBuilder setLogcatArguments(@NonNull String[] logcatArguments) {
public ConfigurationBuilder setLogcatArguments(@NonNull String... logcatArguments) {
this.logcatArguments = logcatArguments;
return this;
}
Expand Down Expand Up @@ -616,7 +616,7 @@ public ConfigurationBuilder setSendReportsAtShutdown(boolean sendReportsAtShutdo
* @return this instance
*/
@NonNull
public ConfigurationBuilder setExcludeMatchingSharedPreferencesKeys(@NonNull String[] excludeMatchingSharedPreferencesKeys) {
public ConfigurationBuilder setExcludeMatchingSharedPreferencesKeys(@NonNull String... excludeMatchingSharedPreferencesKeys) {
this.excludeMatchingSharedPreferencesKeys = excludeMatchingSharedPreferencesKeys;
return this;
}
Expand All @@ -628,7 +628,7 @@ public ConfigurationBuilder setExcludeMatchingSharedPreferencesKeys(@NonNull Str
* @return this instance
*/
@NonNull
public ConfigurationBuilder setExcludeMatchingSettingsKeys(@NonNull String[] excludeMatchingSettingsKeys) {
public ConfigurationBuilder setExcludeMatchingSettingsKeys(@NonNull String... excludeMatchingSettingsKeys) {
this.excludeMatchingSettingsKeys = excludeMatchingSettingsKeys;
return this;
}
Expand Down Expand Up @@ -692,8 +692,9 @@ public ConfigurationBuilder setKeyStoreFactory(KeyStoreFactory keyStoreFactory)
return this;
}

@SafeVarargs
@NonNull
public ConfigurationBuilder setReportSenderFactoryClasses(@NonNull Class<? extends ReportSenderFactory>[] reportSenderFactoryClasses) {
public final ConfigurationBuilder setReportSenderFactoryClasses(@NonNull Class<? extends ReportSenderFactory>... reportSenderFactoryClasses) {
this.reportSenderFactoryClasses = reportSenderFactoryClasses;
return this;
}
Expand Down

0 comments on commit a28d565

Please sign in to comment.