Skip to content

Commit 38cb2ef

Browse files
committed
Sonar cloud issues
1 parent 9eab14b commit 38cb2ef

File tree

17 files changed

+333
-323
lines changed

17 files changed

+333
-323
lines changed

.gitignore

Lines changed: 108 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,108 @@
1-
/target/
2-
/.classpath
3-
/.project
4-
/.settings/
1+
### Idea Intellij ###
2+
.idea/
3+
*.iml
4+
5+
### Eclipse ###
6+
7+
.DS_Store
8+
9+
.metadata
10+
bin/
11+
tmp/
12+
*.tmp
13+
*.bak
14+
*.swp
15+
*~.nib
16+
local.properties
17+
.settings/
18+
.loadpath
19+
.recommenders
20+
21+
.vscode/
22+
23+
# Eclipse Core
24+
.project
25+
26+
# External tool builders
27+
.externalToolBuilders/
28+
29+
# Locally stored "Eclipse launch configurations"
30+
*.launch
31+
32+
# PyDev specific (Python IDE for Eclipse)
33+
*.pydevproject
34+
35+
# CDT-specific (C/C++ Development Tooling)
36+
.cproject
37+
38+
# JDT-specific (Eclipse Java Development Tools)
39+
.classpath
40+
41+
# Java annotation processor (APT)
42+
.factorypath
43+
44+
# PDT-specific (PHP Development Tools)
45+
.buildpath
46+
47+
# sbteclipse plugin
48+
.target
49+
50+
# Tern plugin
51+
.tern-project
52+
53+
# TeXlipse plugin
54+
.texlipse
55+
56+
# STS (Spring Tool Suite)
57+
.springBeans
58+
59+
# Code Recommenders
60+
.recommenders/
61+
62+
# Scala IDE specific (Scala & Java development for Eclipse)
63+
.cache-main
64+
.scala_dependencies
65+
.worksheet
66+
67+
### Java ###
68+
# Compiled class file
69+
*.class
70+
71+
# Log file
72+
*.log
73+
74+
# BlueJ files
75+
*.ctxt
76+
77+
# Mobile Tools for Java (J2ME)
78+
.mtj.tmp/
79+
80+
# Package Files #
81+
*.jar
82+
*.war
83+
*.ear
84+
*.zip
85+
*.tar.gz
86+
*.rar
87+
88+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
89+
hs_err_pid*
90+
91+
### Maven ###
92+
target/
93+
pom.xml.tag
94+
pom.xml.releaseBackup
95+
pom.xml.versionsBackup
96+
pom.xml.next
97+
release.properties
98+
dependency-reduced-pom.xml
99+
buildNumber.properties
100+
.mvn/timing.properties
101+
102+
# Avoid ignoring Maven wrapper jar file (.jar files are usually ignored)
103+
!/.mvn/wrapper/maven-wrapper.jar
104+
105+
# End of https://www.gitignore.io/api/java,maven,eclipse
106+
107+
/.apt_generated/
108+
/.apt_generated_tests/

pom.xml

Lines changed: 24 additions & 124 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
34
<modelVersion>4.0.0</modelVersion>
45

5-
<groupId>org.fugerit.java</groupId>
6+
<parent>
7+
<groupId>org.fugerit.java</groupId>
8+
<artifactId>fj-bom</artifactId>
9+
<version>1.4.0</version>
10+
<relativePath></relativePath>
11+
</parent>
12+
613
<artifactId>query-export-tool</artifactId>
714

815
<version>0.3.2</version>
916
<packaging>jar</packaging>
1017

1118
<name>query-export-tool</name>
12-
<description>Tool export query in CSV (and in the furutre other) formats</description>
19+
<description>Tool export query in CSV (and in the future other) formats</description>
1320
<url>http://www.fugerit.org/java/</url>
1421

1522
<scm>
@@ -23,9 +30,8 @@
2330
<maven.compiler.target>1.8</maven.compiler.target>
2431
<maven.compiler.source>1.8</maven.compiler.source>
2532
<!-- libraries versions -->
26-
<fj-version>0.7.6.8</fj-version>
33+
<fj-version>8.3.7</fj-version>
2734
<opencsv-version>5.6</opencsv-version>
28-
<poi-version>4.1.2</poi-version>
2935
</properties>
3036

3137
<licenses>
@@ -65,7 +71,7 @@
6571
<artifactId>fj-core</artifactId>
6672
<version>${fj-version}</version>
6773
</dependency>
68-
74+
6975
<!-- java core dependancies -->
7076
<dependency>
7177
<groupId>maven</groupId>
@@ -86,129 +92,33 @@
8692
</dependency>
8793

8894
<dependency>
89-
<groupId>org.apache.poi</groupId>
90-
<artifactId>poi</artifactId>
91-
<version>${poi-version}</version>
95+
<groupId>org.apache.poi</groupId>
96+
<artifactId>poi</artifactId>
97+
<version>${poi-version}</version>
9298
</dependency>
9399

94100
<!-- https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml -->
95101
<dependency>
96-
<groupId>org.apache.poi</groupId>
97-
<artifactId>poi-ooxml</artifactId>
98-
<version>${poi-version}</version>
102+
<groupId>org.apache.poi</groupId>
103+
<artifactId>poi-ooxml</artifactId>
99104
</dependency>
100105

101-
<dependency>
102-
<groupId>org.hsqldb</groupId>
103-
<artifactId>hsqldb</artifactId>
104-
<version>2.3.4</version>
105-
<scope>test</scope>
106-
</dependency>
106+
<dependency>
107+
<groupId>org.hsqldb</groupId>
108+
<artifactId>hsqldb</artifactId>
109+
<scope>test</scope>
110+
</dependency>
107111

108112
<dependency>
109113
<groupId>junit</groupId>
110114
<artifactId>junit</artifactId>
111-
<version>4.13.1</version>
112115
<scope>test</scope>
113116
</dependency>
114117

115118
</dependencies>
116119

117-
<build>
118-
119-
<plugins>
120-
121-
<plugin>
122-
<groupId>org.apache.maven.plugins</groupId>
123-
<artifactId>maven-source-plugin</artifactId>
124-
<version>3.0.1</version>
125-
<executions>
126-
<execution>
127-
<id>attach-sources</id>
128-
<goals>
129-
<goal>jar</goal>
130-
</goals>
131-
</execution>
132-
</executions>
133-
</plugin>
134-
<plugin>
135-
<groupId>org.apache.maven.plugins</groupId>
136-
<artifactId>maven-javadoc-plugin</artifactId>
137-
<version>2.10.4</version>
138-
<configuration>
139-
<stylesheetfile>src/main/javadoc/stylesheet.css</stylesheetfile>
140-
</configuration>
141-
<executions>
142-
<execution>
143-
<id>attach-javadocs</id>
144-
<goals>
145-
<goal>jar</goal>
146-
</goals>
147-
</execution>
148-
</executions>
149-
</plugin>
150-
151-
</plugins>
152-
153-
</build>
154-
155120
<profiles>
156121

157-
<profile>
158-
<id>full</id>
159-
<build>
160-
<pluginManagement>
161-
<plugins>
162-
<plugin>
163-
<groupId>org.apache.maven.plugins</groupId>
164-
<artifactId>maven-source-plugin</artifactId>
165-
<version>3.0.1</version>
166-
</plugin>
167-
<plugin>
168-
<groupId>org.apache.maven.plugins</groupId>
169-
<artifactId>maven-javadoc-plugin</artifactId>
170-
<version>2.10.4</version>
171-
</plugin>
172-
</plugins>
173-
</pluginManagement>
174-
</build>
175-
</profile>
176-
177-
<profile>
178-
<id>doRelease</id>
179-
<build>
180-
<plugins>
181-
<plugin>
182-
<groupId>org.sonatype.plugins</groupId>
183-
<artifactId>nexus-staging-maven-plugin</artifactId>
184-
<version>1.6.8</version>
185-
<extensions>true</extensions>
186-
<configuration>
187-
<serverId>ossrh</serverId>
188-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
189-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
190-
</configuration>
191-
</plugin>
192-
193-
<plugin>
194-
<groupId>org.apache.maven.plugins</groupId>
195-
<artifactId>maven-gpg-plugin</artifactId>
196-
<version>1.5</version>
197-
<executions>
198-
<execution>
199-
<id>sign-artifacts</id>
200-
<phase>verify</phase>
201-
<goals>
202-
<goal>sign</goal>
203-
</goals>
204-
</execution>
205-
</executions>
206-
</plugin>
207-
208-
</plugins>
209-
</build>
210-
</profile>
211-
212122
<profile>
213123
<id>singlepackage</id>
214124
<build>
@@ -225,7 +135,7 @@
225135
</manifest>
226136
</archive>
227137
</configuration>
228-
</plugin>
138+
</plugin>
229139
<plugin>
230140
<groupId>org.apache.maven.plugins</groupId>
231141
<artifactId>maven-shade-plugin</artifactId>
@@ -247,19 +157,9 @@
247157
</profile>
248158
</profiles>
249159

250-
<reporting>
251-
<plugins>
252-
<plugin>
253-
<groupId>org.apache.maven.plugins</groupId>
254-
<artifactId>maven-changelog-plugin</artifactId>
255-
<version>2.3</version>
256-
</plugin>
257-
</plugins>
258-
</reporting>
259-
260160
<organization>
261161
<url>http://www.fugerit.org</url>
262162
<name>Fugerit</name>
263163
</organization>
264-
164+
265165
</project>

src/main/java/org/fugerit/java/query/export/data/QueryMetaData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
public class QueryMetaData {
66

77
public QueryMetaData() {
8-
this.fieldMetaData = new ListMapStringKey<FieldMetaData>();
8+
this.fieldMetaData = new ListMapStringKey<>();
99
}
1010

1111
private ListMapStringKey<FieldMetaData> fieldMetaData;

src/main/java/org/fugerit/java/query/export/data/QueryResultHandler.java

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/main/java/org/fugerit/java/query/export/data/RecordHandler.java

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)