[F] Fix hibernate enhance compilation

This commit is contained in:
Azalea
2024-11-20 22:29:45 -05:00
parent 10ebd61519
commit e32a2bbe81
161 changed files with 174 additions and 177 deletions

View File

@@ -1,13 +0,0 @@
package icu.samnyan.aqua.sega.general;
import com.fasterxml.jackson.core.JsonProcessingException;
import java.util.Map;
/**
* @author samnyan (privateamusement@protonmail.com)
*/
public interface BaseHandler {
Object handle(Map<String, Object> request) throws JsonProcessingException;
}

View File

@@ -0,0 +1,11 @@
package icu.samnyan.aqua.sega.general
import com.fasterxml.jackson.core.JsonProcessingException
/**
* @author samnyan (privateamusement@protonmail.com)
*/
fun interface BaseHandler {
@Throws(JsonProcessingException::class)
fun handle(request: Map<String, Any>): Any?
}

View File

@@ -18,7 +18,7 @@ import java.util.*
@Component
class CompressionFilter : OncePerRequestFilter() {
companion object {
val logger = logger()
val log = logger()
val b64d = Base64.getMimeDecoder()
val b64e = Base64.getMimeEncoder()
}
@@ -51,13 +51,11 @@ class CompressionFilter : OncePerRequestFilter() {
try {
resp.outputStream.use { it.write(result); it.flush() }
} catch (e: EofException) {
logger.warn("- EOF: Client closed connection when writing result")
log.warn("- EOF: Client closed connection when writing result")
}
}
/**
* Filter games that are not diva
*/
/** Only games (other than WACCA) require response compression */
override fun shouldNotFilter(req: HttpServletRequest) =
!(req.servletPath.startsWith("/g/") && !req.servletPath.startsWith("/g/wacca"))
}