You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2021/02/11 07:13:47 UTC
[myfaces-tobago] branch master updated: demo: check last released
versions
This is an automated email from the ASF dual-hosted git repository.
lofwyr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
The following commit(s) were added to refs/heads/master by this push:
new fefea5e demo: check last released versions
fefea5e is described below
commit fefea5e44611784e2caf08f6ad5b09038a3024d9
Author: Udo Schnurpfeil <ud...@irian.eu>
AuthorDate: Thu Feb 11 07:49:39 2021 +0100
demo: check last released versions
---
.../myfaces/tobago/example/demo/ApiController.java | 2 +-
.../apache/myfaces/tobago/example/demo/Release.java | 18 +++++++++---------
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/ApiController.java b/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/ApiController.java
index bbefc8e..ecf7c01 100644
--- a/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/ApiController.java
+++ b/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/ApiController.java
@@ -89,7 +89,7 @@ public class ApiController implements Serializable {
}
}
LOG.error("No current release found!");
- return "4.5.0"; // should not happen
+ return Release.v4_5_2.getVersion(); // should not happen
}
public String getJiraUrl(final String version) {
diff --git a/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/Release.java b/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/Release.java
index 9bc7296..e13f244 100644
--- a/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/Release.java
+++ b/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/Release.java
@@ -106,8 +106,8 @@ public enum Release {
v2_4_0("12344409"),
v2_4_1("12344899"),
v2_4_2("12345177"),
- v2_4_3("12346997", true),
- v2_4_4("12349632", false, true),
+ v2_4_3("12346997"),
+ v2_4_4("12349632", true),
v2_4_5("12349661", false, true),
v2_5_0("12345962", false, true),
@@ -139,19 +139,19 @@ public enum Release {
v4_4_0("12344541"),
v4_4_1("12345061"),
v4_5_0("12345562"),
- v4_5_1("12348200", true),
- v4_5_2("12349344", false, true),
+ v4_5_1("12348200"),
+ v4_5_2("12349344", true),
v4_5_3("12349662", false, true),
v5_0_0("12338729", false, true),
v5_0_1("12344151", false, true),
v5_1_0("12344152", false, true);
- private String jira;
- private String version;
- private boolean tx;
- private boolean current;
- private boolean unreleased;
+ private final String jira;
+ private final String version;
+ private final boolean tx;
+ private final boolean current;
+ private final boolean unreleased;
Release(final String jira) {
this(jira, false, false);