Skip to content

Commit

Permalink
MCR-3229 small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
yagee-de committed Jan 20, 2025
1 parent 79a7414 commit 33a4c45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,7 @@ private static class MCRNotNullResolver implements URIResolver {
public Source resolve(String href, String base) {
String target = href.substring(href.indexOf(':') + 1);
// fixes exceptions if suburi is empty like "mcrobject:"
String subUri = target.substring(target.indexOf(":") + 1);
String subUri = target.substring(target.indexOf(':') + 1);
if (subUri.isEmpty()) {
return new JDOMSource(new Element("null"));
}
Expand Down Expand Up @@ -1184,7 +1184,7 @@ public Source resolve(String href, String base) throws TransformerException {
String transformerId = new StringTokenizer(help, ":").nextToken();
String target = help.substring(help.indexOf(':') + 1);

String subUri = target.substring(target.indexOf(":") + 1);
String subUri = target.substring(target.indexOf(':') + 1);
if (subUri.isEmpty()) {
return new JDOMSource(new Element("null"));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

import java.util.NavigableSet;
import java.util.Optional;
import java.util.concurrent.ConcurrentSkipListSet;
import java.util.concurrent.atomic.AtomicBoolean;
Expand Down Expand Up @@ -142,8 +143,7 @@ public String toString() {
* The MCRShutdownHandlerState class represents the state of a shutdown handler.
* It only used by {@link #mark} and {@link #resetCloseables()}.
*/
private record MCRShutdownHandlerState(boolean shuttingDown,
java.util.NavigableSet<MCRShutdownHandler.Closeable> requests) {
private record MCRShutdownHandlerState(boolean shuttingDown, NavigableSet<MCRShutdownHandler.Closeable> requests) {

/**
* Constructs an instance of MCRShutdownHandlerState with the given parameters.
Expand Down

0 comments on commit 33a4c45

Please sign in to comment.