Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* information: "Portions Copyrighted [year] [name of copyright owner]".
*
* Copyright © 2011-2015 ForgeRock AS. All rights reserved.
* Portions Copyrighted 2026 3A Systems, LLC
*/
package org.forgerock.audit.util;

Expand Down Expand Up @@ -204,9 +205,9 @@ public DateTime parseIfDate(final String timestamp) {
public static int getDateDifferenceInDays(final Date start, final Date end, final Boolean includeDay) {
Integer result = null;
if (start != null && end != null) {
final Long l = 86400000L;
final Long r = (end.getTime() - start.getTime()) / l;
result = r.intValue();
final long l = 86400000L;
final long r = (end.getTime() - start.getTime()) / l;
result = (int) r;
if (includeDay) {
result++;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* information: "Portions copyright [year] [name of copyright owner]".
*
* Copyright 2015-2016 ForgeRock AS.
* Portions Copyrighted 2026 3A Systems, LLC
*/

package org.forgerock.audit.util;
Expand Down Expand Up @@ -479,9 +480,9 @@ private int compareValues(final Object v1, final Object v2) {
final String s2 = (String) v2;
return s1.compareToIgnoreCase(s2);
} else if (v1 instanceof Number && v2 instanceof Number) {
final Double n1 = ((Number) v1).doubleValue();
final Double n2 = ((Number) v2).doubleValue();
return n1.compareTo(n2);
final double n1 = ((Number) v1).doubleValue();
final double n2 = ((Number) v2).doubleValue();
return Double.compare(n1, n2);
} else if (v1 instanceof Boolean && v2 instanceof Boolean) {
final Boolean b1 = (Boolean) v1;
final Boolean b2 = (Boolean) v2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* information: "Portions copyright [year] [name of copyright owner]".
*
* Copyright 2012-2015 ForgeRock AS.
* Portions Copyrighted 2026 3A Systems, LLC
*/

package org.forgerock.json.resource;
Expand Down Expand Up @@ -360,9 +361,9 @@ private static int compareValues(final Object v1, final Object v2) {
final String s2 = (String) v2;
return s1.compareToIgnoreCase(s2);
} else if (v1 instanceof Number && v2 instanceof Number) {
final Double n1 = ((Number) v1).doubleValue();
final Double n2 = ((Number) v2).doubleValue();
return n1.compareTo(n2);
final double n1 = ((Number) v1).doubleValue();
final double n2 = ((Number) v2).doubleValue();
return Double.compare(n1, n2);
} else if (v1 instanceof Boolean && v2 instanceof Boolean) {
final Boolean b1 = (Boolean) v1;
final Boolean b2 = (Boolean) v2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public void execute() throws MojoExecutionException, MojoFailureException
super.md5Digester = this.md5Digester;
super.sha1Digester = this.sha1Digester;

Boolean cachedCreateChecksums = this.createChecksum;
boolean cachedCreateChecksums = this.createChecksum;

getLog()
.info(
Expand All @@ -101,7 +101,7 @@ public void execute() throws MojoExecutionException, MojoFailureException

// determine if the artifact is already installed in the local
// Maven repository
Boolean artifactAlreadyInstalled = getLocalRepoFile(artifact)
boolean artifactAlreadyInstalled = getLocalRepoFile(artifact)
.exists();

// only proceed with this artifact if it is not already
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public static void appendHistoryElement(final StringBuilder sb, int location) {
public static String describeHistory(final int[] history) {
final StringBuilder sb = new StringBuilder();
if (history != null) {
for (final Integer location : history) {
for (final int location : history) {
if (sb.length() > 0) {
sb.append(',');
}
Expand Down
Loading