Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Commit

Permalink
Added HTML lang="en" (#2688)
Browse files Browse the repository at this point in the history
* Added HTML lang="en"

Primarily an accessibility concern for screen reader software.

* Replace StringBuffer with StringBuilder

StringBuilder was introduced in Java 5 and removes the synchronization
in StringBuffer making it faster.

* Revert StringBuilder use with Mockito

Compilation error seen in
https://travis-ci.com/Hygieia/Hygieia/builds/98910093
  • Loading branch information
skotfred authored and rvema committed Jan 29, 2019
1 parent eb226b3 commit d199971
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion api-audit/src/main/resources/static/swagger/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Swagger UI</title>
Expand Down
2 changes: 1 addition & 1 deletion api/src/main/resources/static/swagger/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Swagger UI</title>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public void setup() {

ReflectionTestUtils.setField(filter, "appName", appName);
ReflectionTestUtils.setField(filter, "version", appVersion);
StringBuffer buffer = new StringBuffer();
StringBuffer buffer = new StringBuffer();// StringBuilder use caused problems with Mockito
buffer.append(requestUrl);
when(request.getRequestURL()).thenReturn(buffer);
when(request.getRemoteAddr()).thenReturn(remoteAddress);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public JSONObject toCanonicalSprintJSON(String nativeRs) {
if ((nativeRs != null) && !(nativeRs.isEmpty())) {
start = nativeRs.indexOf('[') + 1;
end = nativeRs.length() - 1;
StringBuffer interrimBuf = new StringBuffer(nativeRs);
StringBuilder interrimBuf = new StringBuilder(nativeRs);
interrimChar = interrimBuf.subSequence(start, end);
String interrimStr = interrimChar.toString();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public String getHost() {
*/
public String getAuthority() {
String userInfo = getUserInfo();
StringBuffer auth = new StringBuffer();
StringBuilder auth = new StringBuilder();
if(!"*".equals(userInfo)) {
auth.append(userInfo).append("@");
}
Expand Down

0 comments on commit d199971

Please sign in to comment.