Skip to content

Commit e810bb0

Browse files
committed
INT: Bump logback-classic to 1.5.25, Jackson to 2.21.0 + Cleaning + gradle 10.0 changes
1 parent 3db53be commit e810bb0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+154
-158
lines changed

ChangeLog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11

22
## Changes ##
33

4+
### 17.3.0
5+
- INT: Bump logback-classic to 1.5.25, Jackson to 2.21.0
6+
- INT: Cleaning.
7+
- INT: More gradle 10.0 changes
8+
49
### 17.3.0
510
- ENH: Change approach to registering plugins - no longer require dataStream name. Some methods added and some deprecated.
611

build.gradle

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ plugins {
33
id "com.github.spotbugs" version "6.4.8" apply false
44
}
55

6+
import com.github.spotbugs.snom.Confidence
7+
import com.github.spotbugs.snom.Effort
8+
69
wrapper {
710
gradleVersion = '9.3.0'
811
}
@@ -59,8 +62,9 @@ subprojects {
5962
}
6063
}
6164

62-
artifacts {
63-
archives javadocJar, sourcesJar
65+
tasks.named("assemble") {
66+
dependsOn javadocJar
67+
dependsOn sourcesJar
6468
}
6569

6670
jar {
@@ -157,7 +161,7 @@ subprojects {
157161

158162
spotbugs {
159163
toolVersion = "4.9.8"
160-
effort = "max"
164+
effort = Effort.MAX
161165
reportLevel = "low"
162166
ignoreFailures = true
163167
}

settings.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ includeBuild 'examples/core/speed'
4040
dependencyResolutionManagement {
4141
versionCatalogs {
4242
libs {
43-
version('fta', '17.3.0')
43+
version('fta', '17.3.1')
4444
version('jacoco', '0.8.12')
4545

4646
// https://mvnrepository.com/artifact/de.siegmar/fastcsv
@@ -50,13 +50,13 @@ dependencyResolutionManagement {
5050
// https://mvnrepository.com/artifact/commons-validator/commons-validator
5151
library('commonsValidator', 'commons-validator:commons-validator:1.10.1')
5252
// https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core
53-
library('jacksonDataCore', 'com.fasterxml.jackson.core:jackson-core:2.20.1')
53+
library('jacksonDataCore', 'com.fasterxml.jackson.core:jackson-core:2.21.0')
5454
// https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind
55-
library('jacksonDataBind', 'com.fasterxml.jackson.core:jackson-databind:2.20.1')
55+
library('jacksonDataBind', 'com.fasterxml.jackson.core:jackson-databind:2.21.0')
5656
// https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-annotations
5757
library('jacksonAnnotations', 'com.fasterxml.jackson.core:jackson-annotations:2.19.2')
5858
// https://mvnrepository.com/artifact/com.fasterxml.jackson.datatype/jackson-datatype-jsr310
59-
library('jacksonDataType', 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.20.1')
59+
library('jacksonDataType', 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.21.0')
6060
// https://mvnrepository.com/artifact/com.googlecode.libphonenumber/libphonenumber
6161
library('googlePhoneNumber', 'com.googlecode.libphonenumber:libphonenumber:9.0.22')
6262
// https://mvnrepository.com/artifact/org.apache.commons/commons-text
@@ -70,7 +70,7 @@ dependencyResolutionManagement {
7070
// https://mvnrepository.com/artifact/com.google.guava/guava
7171
library('guava', 'com.google.guava:guava:33.5.0-jre')
7272
// https://mvnrepository.com/artifact/ch.qos.logback/logback-classic
73-
library('logbackClassic', 'ch.qos.logback:logback-classic:1.5.24')
73+
library('logbackClassic', 'ch.qos.logback:logback-classic:1.5.25')
7474
// https://mvnrepository.com/artifact/com.datadoghq/sketches-java
7575
library('sketches', 'com.datadoghq:sketches-java:0.8.3')
7676
}

types/src/main/java/com/cobber/fta/LogicalType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public String getSignature() {
191191

192192
structureSignature += getSemanticType();
193193

194-
MessageDigest md;
194+
final MessageDigest md;
195195
try {
196196
md = MessageDigest.getInstance("SHA-1");
197197
} catch (NoSuchAlgorithmException e) {

types/src/main/java/com/cobber/fta/LogicalTypeFiniteSimple.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public abstract class LogicalTypeFiniteSimple extends LogicalTypeFinite {
3434
protected Reader reader;
3535
protected SingletonSet memberSet;
3636

37-
private final static CacheLRU<String, String> cache = new CacheLRU<>(30);
37+
private static final CacheLRU<String, String> cache = new CacheLRU<>(30);
3838

3939
public LogicalTypeFiniteSimple(final PluginDefinition plugin, final String backout, final int threshold) {
4040
super(plugin);

types/src/main/java/com/cobber/fta/PluginAnalysis.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ public class PluginAnalysis {
2020
private String newPattern;
2121

2222
/** Analysis was successful. */
23-
public final static PluginAnalysis OK = new PluginAnalysis();
23+
public static final PluginAnalysis OK = new PluginAnalysis();
2424

2525
/** Analysis was unsuccessful - and we want to back out to a wildcard match. */
26-
public final static PluginAnalysis SIMPLE_NOT_OK = new PluginAnalysis(KnownTypes.PATTERN_ANY_VARIABLE);
26+
public static final PluginAnalysis SIMPLE_NOT_OK = new PluginAnalysis(KnownTypes.PATTERN_ANY_VARIABLE);
2727

2828
/**
2929
* Construct a 'happy' analysis.

types/src/main/java/com/cobber/fta/PluginDefinition.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
*/
4343
public class PluginDefinition {
4444
/** Priority of plugins must be between 0 and PRIORITY_MAX. */
45-
public final static int PRIORITY_MAX = 10000;
45+
public static final int PRIORITY_MAX = 10000;
4646

4747
private static List<PluginDefinition> builtinPlugins;
4848

@@ -114,11 +114,11 @@ public PluginDefinition() {
114114
public int getOrder() {
115115
switch (precedence) {
116116
case BUILTIN:
117-
return priority + PluginDefinition.PRIORITY_MAX;
117+
return priority + PRIORITY_MAX;
118118
case PRE_BUILTIN:
119119
return priority;
120120
case POST_BUILTIN:
121-
return priority + 2 * PluginDefinition.PRIORITY_MAX;
121+
return priority + 2 * PRIORITY_MAX;
122122
default:
123123
return -1;
124124
}
@@ -219,7 +219,7 @@ public static PluginDefinition findByName(final String semanticTypeName) {
219219
}
220220

221221
public boolean isMandatoryHeaderUnsatisfied(final Locale locale, final String streamName) {
222-
PluginLocaleEntry localeEntry;
222+
final PluginLocaleEntry localeEntry;
223223
try {
224224
localeEntry = getLocaleEntry(locale);
225225
} catch (FTAPluginException e) {

types/src/main/java/com/cobber/fta/Plugins.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,7 @@ protected void registerPluginListCore(final List<PluginDefinition> plugins, fina
165165
else
166166
plugin.setPrecedence(PluginDefinition.Precedence.POST_BUILTIN);
167167

168-
boolean register = plugin.isLocaleSupported(analysisConfig.getLocale());
169-
170-
if (register)
168+
if (plugin.isLocaleSupported(analysisConfig.getLocale()))
171169
if ("java".equals(plugin.pluginType))
172170
registerLogicalTypeClass(plugin, analysisConfig);
173171
else if ("list".equals(plugin.pluginType))
@@ -208,9 +206,9 @@ private void registerLogicalType(final LogicalType logical, final AnalysisConfig
208206
* @throws FTAPluginException
209207
*/
210208
private void registerLogicalTypeClass(final PluginDefinition plugin, final AnalysisConfig analysisConfig) throws FTAPluginException {
211-
Class<?> newLogicalType;
212-
Constructor<?> ctor;
213-
Object logical;
209+
final Class<?> newLogicalType;
210+
final Constructor<?> ctor;
211+
final Object logical;
214212

215213
try {
216214
newLogicalType = Class.forName(plugin.clazz);

types/src/main/java/com/cobber/fta/SemanticType.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,10 @@ public String[] getLanguages() {
132132
}
133133

134134
public String toJSONString() {
135-
final StringBuilder b = new StringBuilder();
135+
final StringBuilder b = new StringBuilder(128);
136136
b.append("Id: ").append(id).append(", Description: ").append(description).append(", Languages: ");
137137
for (final String language : languages)
138-
b.append(language).append(" ");
138+
b.append(language).append(' ');
139139

140140
return b.toString();
141141
}

types/src/main/java/com/cobber/fta/SingletonSet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class SingletonSet {
3939
private final String key;
4040
private final String commentLeader;
4141

42-
private final static Map<String, RandomSet<String>> MEMBER_CACHE = new ConcurrentHashMap<>();
42+
private static final Map<String, RandomSet<String>> MEMBER_CACHE = new ConcurrentHashMap<>();
4343

4444
/**
4545
* Create a SingletonSet using "#" as the comment character.

0 commit comments

Comments
 (0)