Made utility classes final to explicitly forbid it's inheritance

This commit is contained in:
vraskulin 2017-02-27 17:03:38 +03:00
parent f309717616
commit 498c8cf60c
80 changed files with 83 additions and 83 deletions

View file

@ -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();

View file

@ -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();
}

View file

@ -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>();