Skip to content

Commit 6b21d09

Browse files
author
TanyaEf
committed
Added overloaded method to BundlesService, added unit tests and integration tests
1 parent 9865b8d commit 6b21d09

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/main/java/com/jaspersoft/jasperserver/jaxrs/client/apiadapters/bundles/BundlesService.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,12 @@ public BundlesService(SessionStorage sessionStorage) {
4242
}
4343

4444
public BundlesService forLocale(String locale) {
45-
if (locale != null) {
4645
this.locale = new Locale(locale);
47-
}
46+
return this;
47+
}
48+
49+
public BundlesService forLocale(Locale locale) {
50+
this.locale = locale;
4851
return this;
4952
}
5053

0 commit comments

Comments
 (0)