Skip to content

Commit bf6e1ee

Browse files
committed
minor changes
1 parent 55cc8c7 commit bf6e1ee

File tree

6 files changed

+19
-14
lines changed

6 files changed

+19
-14
lines changed

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Customer/src/main/java/de/openindex/support/customer/CustomerApplication.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
import java.io.Serializable;
5252
import java.net.Socket;
5353
import java.net.URL;
54+
import java.nio.charset.StandardCharsets;
5455
import java.util.ArrayList;
5556
import java.util.Date;
5657
import java.util.List;
@@ -77,7 +78,7 @@
7778
@SuppressWarnings("WeakerAccess")
7879
public class CustomerApplication {
7980
@SuppressWarnings("unused")
80-
private static Logger LOGGER;
81+
private final static Logger LOGGER;
8182
public final static ResourceBundle SETTINGS;
8283
public final static String NAME;
8384
public final static String TITLE;
@@ -151,7 +152,7 @@ public static void main(String[] args) {
151152

152153
// read password of the internal truststore
153154
try (InputStream input = resource("truststore.jks.txt").openStream()) {
154-
truststorePassword = StringUtils.trimToEmpty(IOUtils.toString(input, "UTF-8"));
155+
truststorePassword = StringUtils.trimToEmpty(IOUtils.toString(input, StandardCharsets.UTF_8));
155156
} catch (IOException ex) {
156157
LOGGER.warn("Can't read internal truststore password!", ex);
157158
}
@@ -180,7 +181,7 @@ public static void main(String[] args) {
180181

181182
// read password of the external truststore
182183
try (InputStream input = new FileInputStream(new File(WORK_DIR, "truststore.jks.txt"))) {
183-
truststorePassword = StringUtils.trimToEmpty(IOUtils.toString(input, "UTF-8"));
184+
truststorePassword = StringUtils.trimToEmpty(IOUtils.toString(input, StandardCharsets.UTF_8));
184185
} catch (IOException ex) {
185186
LOGGER.warn("Can't read external truststore password!", ex);
186187
}
@@ -346,7 +347,7 @@ protected String getAboutText() {
346347
if (about == null) about = resource("about.html");
347348

348349
try (InputStream input = about.openStream()) {
349-
return IOUtils.toString(input, "UTF-8");
350+
return IOUtils.toString(input, StandardCharsets.UTF_8);
350351
} catch (IOException ex) {
351352
LOGGER.error("Can't read application information!", ex);
352353
return StringUtils.EMPTY;

Customer/src/main/resources/de/openindex/support/customer/resources/about.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,8 @@ <h3>Third party components</h3>
6767
</li>
6868
</ul>
6969
<p>
70-
We especially like to thank <a href="https://www.bell-sw.com/">BellSoft</a> and the
71-
<a href="https://adoptopenjdk.net/">AdoptOpenJDK project</a> for providing the high quality OpenJDK builds, that
72-
are bundled with this application.
70+
We especially like to thank <a href="https://www.bell-sw.com/">BellSoft</a>
71+
for providing the high quality OpenJDK builds, that are bundled with this application.
7372
</p>
7473

7574
<h3>License</h3>

Customer/src/main/resources/de/openindex/support/customer/resources/about_de.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,8 @@ <h3>Komponenten von Drittanbietern</h3>
6868
</li>
6969
</ul>
7070
<p>
71-
Wir bedanken uns insbesondere bei <a href="https://www.bell-sw.com/">BellSoft</a> sowie dem
72-
<a href="https://adoptopenjdk.net/">AdoptOpenJDK Projekt</a> für die Bereitstellung der erstklassigen
73-
OpenJDK-Pakete, die mit dieser Anwendung ausgeliefert werden.
71+
Wir bedanken uns insbesondere bei <a href="https://www.bell-sw.com/">BellSoft</a>
72+
für die Bereitstellung der erstklassigen OpenJDK-Pakete, die mit dieser Anwendung ausgeliefert werden.
7473
</p>
7574

7675
<h3>Lizenz</h3>

Customer/src/main/resources/de/openindex/support/customer/resources/application.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ i18n.screen=Screen
4545
i18n.ssl=Use SSL encryption.
4646
i18n.connect=Connect
4747
i18n.disconnect=Disconnect
48-
i18n.about=About...
49-
i18n.aboutTitle=About this application
48+
i18n.about=About
49+
i18n.aboutTitle=About this application
5050
i18n.quit=Quit
5151
i18n.close=Close
5252
i18n.website=Website

Customer/src/main/resources/de/openindex/support/customer/resources/application_de.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ i18n.screen=Bildschirm
1111
i18n.ssl=SSL-Verschlüsselung verwenden.
1212
i18n.connect=Verbinden
1313
i18n.disconnect=Trennen
14-
i18n.about=Über...
15-
i18n.aboutTitle=Über dieses Programm...
14+
i18n.about=Über
15+
i18n.aboutTitle=Über dieses Programm
1616
i18n.quit=Beenden
1717
i18n.close=Schließen
1818
i18n.website=Webseite

0 commit comments

Comments
 (0)