Skip to content

Commit

Permalink
[MNG-6847] Use diamond operator (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek and TeamModerne authored Aug 29, 2023
1 parent 6de7a78 commit 15f59a7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private static class MultiPageSinkFactory implements SinkFactory {
/**
* List of sinks (subpages) associated to this report
*/
private List<MultiPageSubSink> sinks = new ArrayList<MultiPageSubSink>();
private List<MultiPageSubSink> sinks = new ArrayList<>();

MultiPageSinkFactory(MavenReport report, DocumentRenderingContext docRenderingContext) {
this.report = report;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public void davDeployThruProxyWitAuthzInProxy() throws Exception {
FileUtils.cleanDirectory(siteTargetPath);
// SimpleDavServerHandler simpleDavServerHandler = new SimpleDavServerHandler( siteTargetPath );

Map<String, String> authentications = new HashMap<String, String>();
Map<String, String> authentications = new HashMap<>();
authentications.put("foo", "titi");

AuthAsyncProxyServlet servlet = new AuthAsyncProxyServlet(authentications, siteTargetPath);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class AuthAsyncProxyServlet extends AsyncProxyServlet {

private Logger log = LoggerFactory.getLogger(getClass());

List<HttpRequest> httpRequests = new ArrayList<HttpRequest>();
List<HttpRequest> httpRequests = new ArrayList<>();

private File siteTargetPath;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import java.util.Map;

class HttpRequest {
Map<String, String> headers = new HashMap<String, String>();
Map<String, String> headers = new HashMap<>();

String method;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public class SimpleDavServerHandler {

private File siteTargetPath;

List<HttpRequest> httpRequests = new ArrayList<HttpRequest>();
List<HttpRequest> httpRequests = new ArrayList<>();

public SimpleDavServerHandler(final File targetPath) throws Exception {
this.siteTargetPath = targetPath;
Expand Down

0 comments on commit 15f59a7

Please sign in to comment.