diff options
3 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/GitFilter.java b/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/GitFilter.java index 2ebe1b7d2f..51de8abd0e 100644 --- a/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/GitFilter.java +++ b/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/GitFilter.java @@ -202,7 +202,7 @@ public class GitFilter extends MetaFilter { if (resolver == null) { File root = getFile(filterConfig, "base-path"); boolean exportAll = getBoolean(filterConfig, "export-all"); - setRepositoryResolver(new FileResolver<HttpServletRequest>(root, exportAll)); + setRepositoryResolver(new FileResolver<>(root, exportAll)); } initialized = true; diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriter.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriter.java index 83e2a44940..70df8c08e2 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriter.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriter.java @@ -1502,7 +1502,7 @@ public class PackWriter implements AutoCloseable { Executor executor = config.getExecutor(); final List<Throwable> errors = - Collections.synchronizedList(new ArrayList<Throwable>(threads)); + Collections.synchronizedList(new ArrayList<>(threads)); if (executor instanceof ExecutorService) { // Caller supplied us a service, use it directly. runTasks((ExecutorService) executor, pm, taskBlock, errors); diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/io/IsolatedOutputStream.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/io/IsolatedOutputStream.java index 65470d4ef1..8ea8723194 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/util/io/IsolatedOutputStream.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/io/IsolatedOutputStream.java @@ -88,7 +88,7 @@ public class IsolatedOutputStream extends OutputStream { public IsolatedOutputStream(OutputStream out) { dst = out; copier = new ThreadPoolExecutor(1, 1, 0, TimeUnit.MILLISECONDS, - new ArrayBlockingQueue<Runnable>(1), new NamedThreadFactory()); + new ArrayBlockingQueue<>(1), new NamedThreadFactory()); } /** {@inheritDoc} */ |