Moved from Gradle to bld

This commit is contained in:
Erik C. Thauvin 2023-05-10 00:21:31 -07:00
parent 84cfe6098d
commit 68975a497b
58 changed files with 632 additions and 2393 deletions

View file

@ -1,7 +1,7 @@
/*
* Reasons.java
*
* Copyright (c) 2015-2022, Erik C. Thauvin (erik@thauvin.net)
* Copyright 2023 sErik C. Thauvin (erik@thauvin.net)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without

View file

@ -1,7 +1,7 @@
/*
* StatusCode.java
*
* Copyright (c) 2015-2022, Erik C. Thauvin (erik@thauvin.net)
* Copyright 2023 sErik C. Thauvin (erik@thauvin.net)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -32,6 +32,7 @@
package net.thauvin.erik.httpstatus;
import java.io.Serial;
import java.io.Serializable;
/**
@ -40,6 +41,7 @@ import java.io.Serializable;
* @author <a href="mailto:erik@thauvin.net">Erik C. Thauvin</a>
*/
public class StatusCode implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
private int code;
@ -49,7 +51,7 @@ public class StatusCode implements Serializable {
public StatusCode() {
// Default constructor.
}
/**
* Creates a new StatusCode object.
*

View file

@ -1,7 +1,7 @@
/*
* Utils.java
*
* Copyright (c) 2015-2022, Erik C. Thauvin (erik@thauvin.net)
* Copyright 2023 sErik C. Thauvin (erik@thauvin.net)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -66,24 +66,12 @@ public final class Utils {
for (int i = 0; i < value.length(); i++) {
final char c = value.charAt(i);
switch (c) {
case '<':
escaped.append("&lt;");
break;
case '>':
escaped.append("&gt;");
break;
case '&':
escaped.append("&amp;");
break;
case '\'':
escaped.append("&apos;");
break;
case '"':
escaped.append("&quot;");
break;
default:
escaped.append(c);
break;
case '<' -> escaped.append("&lt;");
case '>' -> escaped.append("&gt;");
case '&' -> escaped.append("&amp;");
case '\'' -> escaped.append("&apos;");
case '"' -> escaped.append("&quot;");
default -> escaped.append(c);
}
}

View file

@ -1,7 +1,7 @@
/*
* CauseTag.java
*
* Copyright (c) 2015-2022, Erik C. Thauvin (erik@thauvin.net)
* Copyright 2023 sErik C. Thauvin (erik@thauvin.net)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without

View file

@ -1,7 +1,7 @@
/*
* CodeTag.java
*
* Copyright (c) 2015-2022, Erik C. Thauvin (erik@thauvin.net)
* Copyright 2023 sErik C. Thauvin (erik@thauvin.net)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without

View file

@ -1,7 +1,7 @@
/*
* CauseTag.java
* MessageTag.java
*
* Copyright (c) 2015-2022, Erik C. Thauvin (erik@thauvin.net)
* Copyright 2023 sErik C. Thauvin (erik@thauvin.net)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without

View file

@ -1,7 +1,7 @@
/*
* ReasonTag.java
*
* Copyright (c) 2015-2022, Erik C. Thauvin (erik@thauvin.net)
* Copyright 2023 sErik C. Thauvin (erik@thauvin.net)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -65,7 +65,7 @@ public class ReasonTag extends XmlSupport {
Utils.outWrite(out, Reasons.getReasonPhrase(pageContext.getErrorData().getStatusCode()), defaultValue,
escapeXml);
}
} catch (IOException ignore) {
} catch (IOException ignored) {
// Ignore.
}
}

View file

@ -1,7 +1,7 @@
/*
* XmlSupport.java
*
* Copyright (c) 2015-2022, Erik C. Thauvin (erik@thauvin.net)
* Copyright 2023 sErik C. Thauvin (erik@thauvin.net)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without