Skip to content

Commit b910336

Browse files
committed
BAEL-2995 - possible lossy conversion - new module java-numbers-2 created
1 parent 6af16b8 commit b910336

5 files changed

Lines changed: 169 additions & 0 deletions

File tree

java-numbers-2/.gitignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
*.class
2+
3+
0.*
4+
5+
#folders#
6+
/target
7+
/neoDb*
8+
/data
9+
/src/main/webapp/WEB-INF/classes
10+
*/META-INF/*
11+
.resourceCache
12+
13+
# Packaged files #
14+
*.jar
15+
*.war
16+
*.ear
17+
18+
# Files generated by integration tests
19+
*.txt
20+
backup-pom.xml
21+
/bin/
22+
/temp
23+
24+
#IntelliJ specific
25+
.idea/
26+
*.iml

java-numbers-2/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
=========
2+
3+
## Java Number 2
4+
5+
### Relevant Articles:
6+
- [Lossy Conversion in Java](http://www.baeldung.com/lossy-conversion)

java-numbers-2/pom.xml

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
<artifactId>java-numbers-2</artifactId>
6+
<version>0.1.0-SNAPSHOT</version>
7+
<name>java-numbers-2</name>
8+
<packaging>jar</packaging>
9+
10+
<parent>
11+
<groupId>com.baeldung</groupId>
12+
<artifactId>parent-java</artifactId>
13+
<version>0.0.1-SNAPSHOT</version>
14+
<relativePath>../parent-java</relativePath>
15+
</parent>
16+
17+
<dependencies>
18+
<dependency>
19+
<groupId>log4j</groupId>
20+
<artifactId>log4j</artifactId>
21+
<version>${log4j.version}</version>
22+
</dependency>
23+
<dependency>
24+
<groupId>org.slf4j</groupId>
25+
<artifactId>slf4j-api</artifactId>
26+
<version>${org.slf4j.version}</version>
27+
</dependency>
28+
<dependency>
29+
<groupId>ch.qos.logback</groupId>
30+
<artifactId>logback-classic</artifactId>
31+
<version>${logback.version}</version>
32+
</dependency>
33+
<dependency>
34+
<groupId>org.openjdk.jmh</groupId>
35+
<artifactId>jmh-core</artifactId>
36+
<version>${jmh-core.version}</version>
37+
</dependency>
38+
<dependency>
39+
<groupId>org.openjdk.jmh</groupId>
40+
<artifactId>jmh-generator-annprocess</artifactId>
41+
<version>${jmh-generator.version}</version>
42+
</dependency>
43+
<dependency>
44+
<groupId>org.apache.commons</groupId>
45+
<artifactId>commons-math3</artifactId>
46+
<version>${commons-math3.version}</version>
47+
</dependency>
48+
<dependency>
49+
<groupId>org.apache.commons</groupId>
50+
<artifactId>commons-lang3</artifactId>
51+
<version>${commons-lang3.version}</version>
52+
</dependency>
53+
<dependency>
54+
<groupId>org.decimal4j</groupId>
55+
<artifactId>decimal4j</artifactId>
56+
<version>${decimal4j.version}</version>
57+
</dependency>
58+
<dependency>
59+
<groupId>org.assertj</groupId>
60+
<artifactId>assertj-core</artifactId>
61+
<version>${assertj.version}</version>
62+
<scope>test</scope>
63+
</dependency>
64+
</dependencies>
65+
66+
<build>
67+
<finalName>java-numbers</finalName>
68+
<resources>
69+
<resource>
70+
<directory>src/main/resources</directory>
71+
<filtering>true</filtering>
72+
</resource>
73+
</resources>
74+
75+
<plugins>
76+
77+
<plugin>
78+
<groupId>org.apache.maven.plugins</groupId>
79+
<artifactId>maven-javadoc-plugin</artifactId>
80+
<version>${maven-javadoc-plugin.version}</version>
81+
<configuration>
82+
<source>1.8</source>
83+
<target>1.8</target>
84+
</configuration>
85+
</plugin>
86+
</plugins>
87+
</build>
88+
89+
<profiles>
90+
<profile>
91+
<id>integration</id>
92+
<build>
93+
<plugins>
94+
<plugin>
95+
<groupId>org.apache.maven.plugins</groupId>
96+
<artifactId>maven-surefire-plugin</artifactId>
97+
<executions>
98+
<execution>
99+
<phase>integration-test</phase>
100+
<goals>
101+
<goal>test</goal>
102+
</goals>
103+
<configuration>
104+
<includes>
105+
<include>**/*IntegrationTest.java</include>
106+
</includes>
107+
</configuration>
108+
</execution>
109+
</executions>
110+
<configuration>
111+
<systemPropertyVariables>
112+
<test.mime>json</test.mime>
113+
</systemPropertyVariables>
114+
</configuration>
115+
</plugin>
116+
</plugins>
117+
</build>
118+
</profile>
119+
</profiles>
120+
121+
<properties>
122+
<commons-math3.version>3.6.1</commons-math3.version>
123+
<decimal4j.version>1.0.3</decimal4j.version>
124+
<commons-lang3.version>3.5</commons-lang3.version>
125+
126+
<assertj.version>3.6.1</assertj.version>
127+
128+
<org.slf4j.version>1.7.21</org.slf4j.version>
129+
<logback.version>1.1.7</logback.version>
130+
131+
<maven-surefire-plugin.version>2.21.0</maven-surefire-plugin.version>
132+
<maven-javadoc-plugin.version>3.0.0-M1</maven-javadoc-plugin.version>
133+
<maven-jar-plugin.version>3.0.2</maven-jar-plugin.version>
134+
</properties>
135+
</project>

java-numbers/src/test/java/com/baeldung/lossyconversion/ConversionTechniquesUnitTest.java renamed to java-numbers-2/src/test/java/com/baeldung/lossyconversion/ConversionTechniquesUnitTest.java

File renamed without changes.

pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@
461461
<!-- <module>java-ee-8-security-api</module> --> <!-- long running -->
462462
<module>java-lite</module>
463463
<module>java-numbers</module>
464+
<module>java-numbers-2</module>
464465
<module>java-rmi</module>
465466
<module>java-spi</module>
466467
<module>java-streams</module>
@@ -1142,6 +1143,7 @@
11421143
<module>java-ee-8-security-api</module>
11431144
<module>java-lite</module>
11441145
<module>java-numbers</module>
1146+
<module>java-numbers-2</module>
11451147
<module>java-rmi</module>
11461148
<module>java-spi</module>
11471149
<module>java-streams</module>

0 commit comments

Comments
 (0)