Skip to content

Commit

Permalink
Minor code updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiddlet2666 committed Jul 16, 2024
1 parent 36b0758 commit 374453a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* File: PersistenceHelper.java
*
* Copyright (c) 2015, 2020 Oracle and/or its affiliates.
* Copyright (c) 2015, 2024 Oracle and/or its affiliates.
*
* You may not use this file except in compliance with the Universal Permissive
* License (UPL), Version 1.0 (the "License.")
Expand Down Expand Up @@ -118,7 +118,7 @@ public PersistenceHelper() {
waitForRegistration(registry, Registry.CLUSTER_TYPE);
}
catch (InterruptedException e) {
throw Base.ensureRuntimeException(e, "Unable to find MBean");
throw new RuntimeException("Unable to find MBean", e);
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020 Oracle and/or its affiliates.
* Copyright (c) 2020, 2024 Oracle and/or its affiliates.
*
* You may not use this file except in compliance with the Universal Permissive
* License (UPL), Version 1.0 (the "License.")
Expand All @@ -26,7 +26,7 @@

import java.net.URI;

import java.util.HashMap;
import java.util.Map;

import jakarta.ws.rs.container.ContainerRequestContext;
import jakarta.ws.rs.container.ContainerRequestFilter;
Expand Down Expand Up @@ -89,9 +89,7 @@ public void filter(ContainerRequestContext requestContext,
if (responseContext.getStatusInfo().getFamily()
== Response.Status.Family.SERVER_ERROR) {
Tags.ERROR.set(span, true);
span.log(new HashMap<String, String>() {{
put("event", "error");
}});
span.log(Map.of("event", "error"));
}

Tags.HTTP_STATUS.set(span, responseContext.getStatus());
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ <h2 class="page-header"><img src="images/coherence.png" class="pull-left" style=

<hr>
<div class="col-lg-12">
<p>© 2020 Oracle Corporation. All Rights Reserved.
<p>© 2024 Oracle Corporation. All Rights Reserved.
<img class="pull-right" src="images/oracle.png">
</div>

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/web/javascripts/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ demoApp.controller('DemoController', ['$scope', '$http', '$interval', '$location
let chartData = response.data;

let tradeSummary = chartData.tradeSummary;
self.symbolNames = Object.keys(tradeSummary).sort();
self.symbolNames = Object.keys(tradeSummary).sort((i1, i2) => i1[1].localeCompare(i2[1]));
self.symbolsChartData = [];
self.symbolQuantity = {};
self.symbolCount = {};
Expand Down

0 comments on commit 374453a

Please sign in to comment.