mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
Made utility classes final to explicitly forbid it's inheritance
This commit is contained in:
parent
f309717616
commit
498c8cf60c
80 changed files with 83 additions and 83 deletions
|
|
@ -4,7 +4,7 @@ import com.xmage.ws.model.DomainErrors;
|
|||
import com.xmage.ws.resource.Resource;
|
||||
import net.minidev.json.JSONObject;
|
||||
|
||||
public class ResponseBuilder {
|
||||
public final class ResponseBuilder {
|
||||
|
||||
public static JSONObject build(int code) {
|
||||
JSONObject response = new JSONObject();
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ public class XMageStatsJSONBuilder implements JSONBuilder<ServerStats> {
|
|||
|
||||
private static final SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy");
|
||||
|
||||
static class StaticHolder {
|
||||
static final class StaticHolder {
|
||||
static XMageStatsJSONBuilder instance = new XMageStatsJSONBuilder();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ package com.xmage.ws.util;
|
|||
*
|
||||
* @author noxx
|
||||
*/
|
||||
public class IPHolderUtil {
|
||||
public final class IPHolderUtil {
|
||||
|
||||
private static final ThreadLocal<String> ipThreadLocal = new ThreadLocal<String>();
|
||||
private static final ThreadLocal<String> userAgentThreadLocal = new ThreadLocal<String>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue