Skip to content
Permalink
Browse files

Diamond operator

  • Loading branch information...
kohsuke committed Sep 17, 2015
1 parent ba93862 commit 11c795cc659aae3235d5cc1af77253420a00b59b
Showing with 2 additions and 2 deletions.
  1. +2 −2 core/src/main/java/hudson/tasks/BuildWrappers.java
@@ -45,7 +45,7 @@
* for listing them.
*/
@Deprecated
public static final List<Descriptor<BuildWrapper>> WRAPPERS = new DescriptorList<BuildWrapper>(BuildWrapper.class);
public static final List<Descriptor<BuildWrapper>> WRAPPERS = new DescriptorList<>(BuildWrapper.class);

/**
* List up all {@link BuildWrapperDescriptor}s that are applicable for the given project.
@@ -55,7 +55,7 @@
* with {@link BuildWrapper} implementations before 1.150.
*/
public static List<Descriptor<BuildWrapper>> getFor(AbstractProject<?, ?> project) {
List<Descriptor<BuildWrapper>> result = new ArrayList<Descriptor<BuildWrapper>>();
List<Descriptor<BuildWrapper>> result = new ArrayList<>();
Descriptor pd = Jenkins.getInstance().getDescriptor((Class)project.getClass());

for (Descriptor<BuildWrapper> w : BuildWrapper.all()) {

0 comments on commit 11c795c

Please sign in to comment.
You can’t perform that action at this time.