Skip to content

Commit cd66e93

Browse files
committed
Fix #95845: undefined user agents
- Report simplified theme name on exception - Restore publish coverage and site
1 parent 340df31 commit cd66e93

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100

101101
- name: Coverage and site
102102
uses: ./.github/workflows/publish-scan/
103-
if: matrix.jdk == '3.8.6-eclipse-temurin-18'
103+
# if: matrix.jdk == '3.8.6-eclipse-temurin-18'
104104
with: # composite cannot use secrets directly
105105
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
106106
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}

model/src/main/java/com/jsql/util/GitUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public void sendUnhandledException(String threadName, Throwable throwable) {
101101
),
102102
String.format(
103103
"Display: %s (%sx%s, %s)",
104-
UIManager.getLookAndFeel(),
104+
UIManager.getLookAndFeel().getName(),
105105
width,
106106
height,
107107
Locale.getDefault().getLanguage()

model/src/main/java/com/jsql/util/UserAgentUtil.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
package com.jsql.util;
22

3+
import org.apache.commons.lang3.StringUtils;
4+
35
public class UserAgentUtil {
46

5-
private String customUserAgent = null;
7+
private String customUserAgent = StringUtils.EMPTY;
68

79
public void withCustomUserAgent(String customUserAgent) {
810
this.customUserAgent = customUserAgent;

0 commit comments

Comments
 (0)