Skip to content
Merged
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 @@ -99,7 +99,7 @@ public Promise<AuthStatus, AuthenticationException> validateRequest(MessageInfoC
String httpAuthorization = request.getHeaders().getFirst("Authorization");

try {
if (httpAuthorization == null || "".equals(httpAuthorization)) {
if (httpAuthorization == null || httpAuthorization.isEmpty()) {
LOG.debug("IWAModule: Authorization Header NOT set in request.");

response.getHeaders().put("WWW-Authenticate", "Negotiate");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ private String getUserName(String user) {
if (!returnRealm) {
int index = user.indexOf("@");
if (index != -1) {
userName = user.toString().substring(0, index);
userName = user.substring(0, index);
}
}
return userName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public AuthStatus validateRequest(MessageInfo messageInfo, Subject clientSubject
* @return <code>true</code> if the String is non-null and non-empty.
*/
private boolean isEmpty(String s) {
return s == null || "".equals(s);
return s == null || s.isEmpty();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ private KeyStore buildKeyStore(final String keystoreFile, final String type, fin
* @return <code>true</code> if the String is non-null and non-empty.
*/
private boolean isEmpty(String s) {
return s == null || "".equals(s);
return s == null || s.isEmpty();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ void prepareOlinkDB() throws MojoExecutionException {
cfg.add(element(name("targetDirectory"), m.path(m.getDocbkxOutputDirectory()) + "/html"));
cfg.add(element(name("targetsFilename"), m.getDocumentSrcName() + ".html.target.db"));

final String base = FilenameUtils.getBaseName(m.getDocumentSrcName());
//cfg.add(element(name("chunkBaseDir"), chunkBaseDir));

executeMojo(
Expand Down Expand Up @@ -148,7 +147,6 @@ void build() throws MojoExecutionException {

cfg.add(element(name("includes"), docName + "/" + m.getDocumentSrcName()));

final String base = FilenameUtils.getBaseName(m.getDocumentSrcName());
//cfg.add(element(name("chunkBaseDir"), chunkBaseDir));

cfg.add(element(name("manifest"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ final void editBuiltHtml(final String htmlDir) throws MojoExecutionException {
String linkToJira = getLinkToJira();

String gascript = "";
if(m.getGoogleAnalyticsId() != null && !"".equals(m.getGoogleAnalyticsId())) {
if(m.getGoogleAnalyticsId() != null && !m.getGoogleAnalyticsId().isEmpty()) {
gascript = IOUtils.toString(
Html.class.getResourceAsStream("/endbody-ga.txt"), StandardCharsets.UTF_8);
gascript = gascript.replace("ANALYTICS-ID", m.getGoogleAnalyticsId());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1018,10 +1018,10 @@ public String toString() {
} else if (isMap()) {
sb.append("{ ");
Map<Object, Object> map = (Map<Object, Object>)object;
for (Iterator<Object> i = map.keySet().iterator(); i.hasNext();) {
Object key = i.next();
sb.append('"').append(key.toString()).append("\": ");
sb.append(new JsonValue(map.get(key)).toString()); // recursion
for (Iterator<Map.Entry<Object, Object>> i = map.entrySet().iterator(); i.hasNext();) {
Map.Entry<Object, Object> entry = i.next();
sb.append('"').append(entry.getKey().toString()).append("\": ");
sb.append(new JsonValue(entry.getValue()).toString()); // recursion
if (i.hasNext()) {
sb.append(", ");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public JwtSecureHeader(Map<String, Object> headers) {
* @param jwkSetUrl The JWK Set URL.
*/
public void setJwkSetUrl(URL jwkSetUrl) {
put(JKU.value(), new String(jwkSetUrl.toString()));
put(JKU.value(), jwkSetUrl.toString());
}

/**
Expand Down Expand Up @@ -133,7 +133,7 @@ public JWK getJsonWebKey() {
* @param x509Url The X.509 URL.
*/
public void setX509Url(URL x509Url) {
put(X5U.value(), new String(x509Url.toString()));
put(X5U.value(), x509Url.toString());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ protected Properties loadPropertyFile(URI projectDirectory, String propertyFile)
File pFile = new File(propertyFile);
if (!pFile.isAbsolute()) {
is =
projectDirectory.resolve(propertyFile.toString()).toURL().openConnection()
projectDirectory.resolve(propertyFile).toURL().openConnection()
.getInputStream();
} else {
is = pFile.toURI().toURL().openConnection().getInputStream();
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 2016 ForgeRock AS.
* Portions Copyrighted 2026 3A Systems, LLC.
*/

package org.forgerock.api;
Expand Down Expand Up @@ -75,7 +76,7 @@ public ApiDescription withPath(ApiDescription api, String parentPath) {
Paths.Builder paths = paths();
Set<String> names = api.getPaths().getNames();
for (String subpath : names) {
paths.put(subpath.equals("") ? parentPath : parentPath + "/" + subpath,
paths.put(subpath.isEmpty() ? parentPath : parentPath + "/" + subpath,
api.getPaths().get(subpath));
}
return createApi(api.getDefinitions(), api.getErrors(), api.getServices(), paths.build());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ static Cookie valueOf(String base64) throws ResourceException {
final String[] splitKeys = split[1].split(",");

for (String key : splitKeys) {
if (!key.equals("")) {
if (!key.isEmpty()) {
sortKeys.add(SortKey.valueOf(key));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1343,12 +1343,12 @@ public String toString() {
} else if (isMap()) {
sb.append("{ ");
final Map<Object, Object> map = (Map<Object, Object>) object;
for (final Iterator<Object> i = map.keySet().iterator(); i.hasNext();) {
final Object key = i.next();
for (final Iterator<Map.Entry<Object, Object>> i = map.entrySet().iterator(); i.hasNext();) {
final Map.Entry<Object, Object> entry = i.next();
sb.append('"');
appendEscapedString(sb, key.toString());
appendEscapedString(sb, entry.getKey().toString());
sb.append("\": ");
sb.append(new JsonValue(map.get(key)).toString()); // recursion
sb.append(new JsonValue(entry.getValue()).toString()); // recursion
if (i.hasNext()) {
sb.append(", ");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public static Duration duration(final String value) {
for (String fragment : fragments) {
fragment = fragment.trim();

if ("".equals(fragment)) {
if (fragment.isEmpty()) {
throw new IllegalArgumentException("Cannot parse empty duration, expecting '<value> <unit>' pattern");
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**

Check warning on line 1 in maven-external-dependency-plugin/maven-external-dependency-plugin/src/main/java/com/savage7/maven/plugin/dependency/ArtifactItem.java

View workflow job for this annotation

GitHub Actions / build-maven (ubuntu-latest, 25)

documentation comment is not attached to any declaration

Check warning on line 1 in maven-external-dependency-plugin/maven-external-dependency-plugin/src/main/java/com/savage7/maven/plugin/dependency/ArtifactItem.java

View workflow job for this annotation

GitHub Actions / build-maven (ubuntu-latest, 26)

documentation comment is not attached to any declaration

Check warning on line 1 in maven-external-dependency-plugin/maven-external-dependency-plugin/src/main/java/com/savage7/maven/plugin/dependency/ArtifactItem.java

View workflow job for this annotation

GitHub Actions / build-maven (macos-latest, 26)

documentation comment is not attached to any declaration
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with this
* work for additional information regarding copyright ownership. The ASF
Expand Down Expand Up @@ -242,7 +242,7 @@
*/
private String filterEmptyString(final String in)
{
if (in == null || in.equals(""))
if (in == null || in.isEmpty())
{
return null;
}
Expand Down Expand Up @@ -357,12 +357,12 @@
if (this.classifier == null)
{
return groupId + ":" + artifactId + ":"
+ StringUtils.defaultString(version, "?") + ":" + packaging;

Check warning on line 360 in maven-external-dependency-plugin/maven-external-dependency-plugin/src/main/java/com/savage7/maven/plugin/dependency/ArtifactItem.java

View workflow job for this annotation

GitHub Actions / build-maven (ubuntu-latest, 25)

defaultString(java.lang.Object,java.lang.String) in org.codehaus.plexus.util.StringUtils has been deprecated

Check warning on line 360 in maven-external-dependency-plugin/maven-external-dependency-plugin/src/main/java/com/savage7/maven/plugin/dependency/ArtifactItem.java

View workflow job for this annotation

GitHub Actions / build-maven (ubuntu-latest, 26)

defaultString(java.lang.Object,java.lang.String) in org.codehaus.plexus.util.StringUtils has been deprecated

Check warning on line 360 in maven-external-dependency-plugin/maven-external-dependency-plugin/src/main/java/com/savage7/maven/plugin/dependency/ArtifactItem.java

View workflow job for this annotation

GitHub Actions / build-maven (ubuntu-latest, 21)

defaultString(java.lang.Object,java.lang.String) in org.codehaus.plexus.util.StringUtils has been deprecated

Check warning on line 360 in maven-external-dependency-plugin/maven-external-dependency-plugin/src/main/java/com/savage7/maven/plugin/dependency/ArtifactItem.java

View workflow job for this annotation

GitHub Actions / build-maven (ubuntu-latest, 17)

defaultString(java.lang.Object,java.lang.String) in org.codehaus.plexus.util.StringUtils has been deprecated

Check warning on line 360 in maven-external-dependency-plugin/maven-external-dependency-plugin/src/main/java/com/savage7/maven/plugin/dependency/ArtifactItem.java

View workflow job for this annotation

GitHub Actions / build-maven (ubuntu-latest, 11)

defaultString(java.lang.Object,java.lang.String) in org.codehaus.plexus.util.StringUtils has been deprecated

Check warning on line 360 in maven-external-dependency-plugin/maven-external-dependency-plugin/src/main/java/com/savage7/maven/plugin/dependency/ArtifactItem.java

View workflow job for this annotation

GitHub Actions / build-maven (macos-latest, 26)

defaultString(java.lang.Object,java.lang.String) in org.codehaus.plexus.util.StringUtils has been deprecated

Check warning on line 360 in maven-external-dependency-plugin/maven-external-dependency-plugin/src/main/java/com/savage7/maven/plugin/dependency/ArtifactItem.java

View workflow job for this annotation

GitHub Actions / build-maven (macos-latest, 11)

defaultString(java.lang.Object,java.lang.String) in org.codehaus.plexus.util.StringUtils has been deprecated
}
else
{
return groupId + ":" + artifactId + ":" + classifier + ":"
+ StringUtils.defaultString(version, "?") + ":" + packaging;

Check warning on line 365 in maven-external-dependency-plugin/maven-external-dependency-plugin/src/main/java/com/savage7/maven/plugin/dependency/ArtifactItem.java

View workflow job for this annotation

GitHub Actions / build-maven (ubuntu-latest, 25)

defaultString(java.lang.Object,java.lang.String) in org.codehaus.plexus.util.StringUtils has been deprecated

Check warning on line 365 in maven-external-dependency-plugin/maven-external-dependency-plugin/src/main/java/com/savage7/maven/plugin/dependency/ArtifactItem.java

View workflow job for this annotation

GitHub Actions / build-maven (ubuntu-latest, 26)

defaultString(java.lang.Object,java.lang.String) in org.codehaus.plexus.util.StringUtils has been deprecated

Check warning on line 365 in maven-external-dependency-plugin/maven-external-dependency-plugin/src/main/java/com/savage7/maven/plugin/dependency/ArtifactItem.java

View workflow job for this annotation

GitHub Actions / build-maven (ubuntu-latest, 21)

defaultString(java.lang.Object,java.lang.String) in org.codehaus.plexus.util.StringUtils has been deprecated

Check warning on line 365 in maven-external-dependency-plugin/maven-external-dependency-plugin/src/main/java/com/savage7/maven/plugin/dependency/ArtifactItem.java

View workflow job for this annotation

GitHub Actions / build-maven (ubuntu-latest, 17)

defaultString(java.lang.Object,java.lang.String) in org.codehaus.plexus.util.StringUtils has been deprecated

Check warning on line 365 in maven-external-dependency-plugin/maven-external-dependency-plugin/src/main/java/com/savage7/maven/plugin/dependency/ArtifactItem.java

View workflow job for this annotation

GitHub Actions / build-maven (ubuntu-latest, 11)

defaultString(java.lang.Object,java.lang.String) in org.codehaus.plexus.util.StringUtils has been deprecated

Check warning on line 365 in maven-external-dependency-plugin/maven-external-dependency-plugin/src/main/java/com/savage7/maven/plugin/dependency/ArtifactItem.java

View workflow job for this annotation

GitHub Actions / build-maven (macos-latest, 26)

defaultString(java.lang.Object,java.lang.String) in org.codehaus.plexus.util.StringUtils has been deprecated

Check warning on line 365 in maven-external-dependency-plugin/maven-external-dependency-plugin/src/main/java/com/savage7/maven/plugin/dependency/ArtifactItem.java

View workflow job for this annotation

GitHub Actions / build-maven (macos-latest, 11)

defaultString(java.lang.Object,java.lang.String) in org.codehaus.plexus.util.StringUtils has been deprecated
}
}

Expand Down
1 change: 0 additions & 1 deletion persistit/doc/build/src/AsciiDocIndex.java
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ private void indexOneTerm(final String wholeTag, String href, final String url,
}

else {
final String className = href.substring(0, pHtml).replace('/', '.');
final String name = href.substring(pHash + 1);
final int pLeftParen = name.indexOf('(');
if (pLeftParen == -1) {
Expand Down
Loading