[Minor] Automated Code cleanup: HTTP links are not secure

This commit is contained in:
Robert von Burg 2023-04-04 15:07:04 +02:00
parent 12f92c3c8d
commit dc3204969b
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
8 changed files with 15 additions and 58 deletions

View File

@ -52,9 +52,8 @@ public class IntegerTimeVariableTest {
this.timeVariable = new TimeVariable<>();
for (int i = 0; i < MAX; i += STEP) {
IntegerValue expectedValue = new IntegerValue(i);
long time = (long) i;
this.expectedValues.put(time, expectedValue);
this.timeVariable.setValueAt(time, expectedValue);
this.expectedValues.put((long) i, expectedValue);
this.timeVariable.setValueAt(i, expectedValue);
}
}

54
pom.xml
View File

@ -1,6 +1,6 @@
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>li.strolch</groupId>
@ -27,12 +27,12 @@
<licenses>
<license>
<name>Apache License 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
<url>https://www.apache.org/licenses/LICENSE-2.0</url>
</license>
</licenses>
<organization>
<name>Strolch</name>
<url>http://www.strolch.li</url>
<url>https://www.strolch.li</url>
</organization>
<developers>
@ -40,7 +40,7 @@
<id>eitch</id>
<name>Robert von Burg</name>
<email>eitch@eitchnet.ch</email>
<url>http://www.eitchnet.ch</url>
<url>https://www.eitchnet.ch</url>
<roles>
<role>architect</role>
<role>developer</role>
@ -766,52 +766,6 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
</plugin>
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>${spotbugs-maven-plugin.version}</version>
<reportSets>
<reportSet>
<id>spotbugs</id>
<inherited>false</inherited>
<reports>
<report>spotbugs</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>${pmd-maven-plugin.version}</version>
<reportSets>
<reportSet>
<!-- aggregate reportSet, to define in poms having modules -->
<id>aggregate</id>
<inherited>false</inherited> <!-- don't run aggregate in child modules -->
<reports>
<report>aggregate-pmd</report>
<report>aggregate-cpd</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<plugin>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<configuration>
<failBuildOnCVSS>8</failBuildOnCVSS>
<yarnAuditAnalyzerEnabled>false</yarnAuditAnalyzerEnabled>
<suppressionFiles>${dependency-check-suppressions-file}</suppressionFiles>
</configuration>
<reportSets>
<reportSet>
<reports>
<report>aggregate</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>

View File

@ -1,6 +1,6 @@
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>

View File

@ -10,7 +10,7 @@
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,

View File

@ -10,7 +10,7 @@
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,

View File

@ -1,6 +1,6 @@
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>

View File

@ -332,6 +332,7 @@ public class ByteHelper {
*
* @return the binary string
*/
@SuppressWarnings("StringBufferReplaceableByString")
public static String asBinary(byte b) {
StringBuilder sb = new StringBuilder();
@ -356,6 +357,7 @@ public class ByteHelper {
*
* @return the binary string
*/
@SuppressWarnings("StringBufferReplaceableByString")
public static String asBinary(short i) {
StringBuilder sb = new StringBuilder();
@ -391,6 +393,7 @@ public class ByteHelper {
*
* @return the binary string
*/
@SuppressWarnings("StringBufferReplaceableByString")
public static String asBinary(int i) {
StringBuilder sb = new StringBuilder();
@ -448,6 +451,7 @@ public class ByteHelper {
*
* @return the binary string
*/
@SuppressWarnings("StringBufferReplaceableByString")
public static String asBinary(long i) {
StringBuilder sb = new StringBuilder();

View File

@ -1,6 +1,6 @@
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>