From 50cce8326ac61650dde44e986fc458fabf93d0c1 Mon Sep 17 00:00:00 2001 From: Mamh-Linux Date: Mon, 6 Jul 2020 10:03:05 +0800 Subject: [PATCH] src: java: show axis in table format even if there's only one value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit User-defined Axis的配置,总是显示为表格的形式,就算只有一组值也显示为一个表格。 from https://github.com/jenkinsci/matrix-project-plugin/pull/29 --- src/main/java/hudson/matrix/Layouter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/hudson/matrix/Layouter.java b/src/main/java/hudson/matrix/Layouter.java index 5377f0c6..29fad190 100644 --- a/src/main/java/hudson/matrix/Layouter.java +++ b/src/main/java/hudson/matrix/Layouter.java @@ -74,7 +74,7 @@ public Layouter(AxisList axisList) { List nonTrivialAxes = new ArrayList(); for (Axis a : axisList) { - if(a.size()>1) + if(a.size()>=1) nonTrivialAxes.add(a); else trivial.add(a);