Merge pull request 'ci' (#39) from ci into main
Reviewed-on: https://src.ossez.com/cwiki-us-docs/java-tutorials/pulls/39
This commit is contained in:
commit
5b3ef027b1
|
@ -0,0 +1,27 @@
|
|||
pipeline {
|
||||
agent any
|
||||
|
||||
tools {
|
||||
maven 'maven 3.8.4'
|
||||
jdk 'OpenJDK-11'
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
echo 'Building..'
|
||||
sh 'mvn clean package'
|
||||
}
|
||||
}
|
||||
stage('Test') {
|
||||
steps {
|
||||
echo 'Testing..'
|
||||
}
|
||||
}
|
||||
stage('Deploy') {
|
||||
steps {
|
||||
echo 'Deploying....'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -11,7 +11,6 @@
|
|||
<groupId>com.ossez.core-java-modules</groupId>
|
||||
<artifactId>core-java-modules</artifactId>
|
||||
<version>0.0.2-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<dependencies>
|
||||
|
@ -34,6 +33,7 @@
|
|||
|
||||
<properties>
|
||||
<jol-core.version>0.10</jol-core.version>
|
||||
<commons-exec.version>1.3</commons-exec.version>
|
||||
</properties>
|
||||
|
||||
</project>
|
|
@ -1,4 +1,4 @@
|
|||
package com.ossez.collections.collections.arraylistvsvector;
|
||||
package com.ossez.collections.arraylistvsvector;
|
||||
|
||||
import org.openjdk.jmh.annotations.*;
|
||||
import org.openjdk.jmh.runner.Runner;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package com.ossez.collections.collections.arraylistvsvector;
|
||||
package com.ossez.collections.arraylistvsvector;
|
||||
|
||||
public class Employee {
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package com.ossez.collections.collections.arraylistvsvector;
|
||||
package com.ossez.collections.arraylistvsvector;
|
||||
|
||||
import java.util.Enumeration;
|
||||
import java.util.Iterator;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package com.ossez.collections.collections.containsperformance;
|
||||
package com.ossez.collections.containsperformance;
|
||||
|
||||
import org.openjdk.jmh.annotations.*;
|
||||
import org.openjdk.jmh.runner.Runner;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package com.ossez.collections.collections.containsperformance;
|
||||
package com.ossez.collections.containsperformance;
|
||||
|
||||
public class Employee {
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package com.ossez.collections.collections.iterators;
|
||||
package com.ossez.collections.iterators;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package com.ossez.collections.collections.removeallperformance;
|
||||
package com.ossez.collections.removeallperformance;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashSet;
|
||||
|
@ -6,7 +6,7 @@ import java.util.List;
|
|||
import java.util.Set;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import com.ossez.collections.collections.containsperformance.Employee;
|
||||
import com.ossez.collections.containsperformance.Employee;
|
||||
import org.apache.commons.lang3.RandomStringUtils;
|
||||
import org.openjdk.jmh.annotations.Benchmark;
|
||||
import org.openjdk.jmh.annotations.BenchmarkMode;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package com.ossez.collections.collections.sortingcomparison;
|
||||
package com.ossez.collections.sortingcomparison;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package com.ossez.collections.iterators;
|
||||
|
||||
import static com.ossez.collections.collections.iterators.Iterators.failFast1;
|
||||
import static com.ossez.collections.collections.iterators.Iterators.failFast2;
|
||||
import static com.ossez.collections.collections.iterators.Iterators.failSafe1;
|
||||
import static com.ossez.collections.iterators.Iterators.failFast1;
|
||||
import static com.ossez.collections.iterators.Iterators.failFast2;
|
||||
import static com.ossez.collections.iterators.Iterators.failSafe1;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.assertThatThrownBy;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
## Java 数字(Number)
|
||||
|
||||
这个模块中包含有关 Java 数字(Number)有关的文章。
|
||||
本模块中包含有关 Java 数字(Number)有关的文章。
|
||||
|
||||
### 相关文章
|
||||
- [理解 Java 中的 NumberFormatException 异常](https://www.ossez.com/t/java-numberformatexception/13986)
|
||||
|
|
|
@ -8,10 +8,9 @@
|
|||
<packaging>jar</packaging>
|
||||
|
||||
<parent>
|
||||
<groupId>com.ossez</groupId>
|
||||
<artifactId>parent-modules</artifactId>
|
||||
<groupId>com.ossez.core-java-modules</groupId>
|
||||
<artifactId>core-java-modules</artifactId>
|
||||
<version>0.0.2-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<dependencies>
|
||||
|
@ -49,7 +48,7 @@
|
|||
|
||||
<properties>
|
||||
<icu4j.version>61.1</icu4j.version>
|
||||
<maven.compiler.release>15</maven.compiler.release>
|
||||
<maven.compiler.release>11</maven.compiler.release>
|
||||
</properties>
|
||||
|
||||
</project>
|
|
@ -1,6 +1,6 @@
|
|||
## Java 字符串(Strings)
|
||||
|
||||
This module contains articles about strings in Java.
|
||||
本模块中包含有关 Java 字符串(String)有关的文章。
|
||||
|
||||
### 相关文章
|
||||
- [Use char[] Array over a String for Manipulating Passwords in Java?](https://www.baeldung.com/java-storing-passwords)
|
||||
|
|
|
@ -8,10 +8,9 @@
|
|||
<packaging>jar</packaging>
|
||||
|
||||
<parent>
|
||||
<groupId>com.ossez</groupId>
|
||||
<artifactId>parent-modules</artifactId>
|
||||
<groupId>com.ossez.core-java-modules</groupId>
|
||||
<artifactId>core-java-modules</artifactId>
|
||||
<version>0.0.2-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<dependencies>
|
||||
|
@ -49,7 +48,7 @@
|
|||
|
||||
<properties>
|
||||
<icu4j.version>61.1</icu4j.version>
|
||||
<maven.compiler.release>15</maven.compiler.release>
|
||||
<maven.compiler.release>11</maven.compiler.release>
|
||||
</properties>
|
||||
|
||||
</project>
|
|
@ -6,13 +6,13 @@ import java.util.List;
|
|||
import java.util.Locale;
|
||||
|
||||
public class App {
|
||||
|
||||
/**
|
||||
* Runs all available formatter
|
||||
* @throws ParseException
|
||||
*
|
||||
* @param args inputs
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
List<Locale> locales = Arrays.asList(new Locale[] { Locale.UK, Locale.ITALY, Locale.FRANCE, Locale.forLanguageTag("pl-PL") });
|
||||
List<Locale> locales = Arrays.asList(new Locale[]{Locale.UK, Locale.ITALY, Locale.FRANCE, Locale.forLanguageTag("pl-PL")});
|
||||
Localization.run(locales);
|
||||
JavaSEFormat.run(locales);
|
||||
ICUFormat.run(locales);
|
||||
|
|
Loading…
Reference in New Issue