mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
built-in server: workaround for changed logic of generating wildcards in method signatures between Kotlin beta 3 and beta 4
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package org.jetbrains.builtInWebServer.ssi;
|
||||
|
||||
import io.netty.buffer.ByteBufUtf8Writer;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface SsiCommand {
|
||||
long process(SsiProcessingState state, String commandName, List<String> paramNames, String[]paramValues, ByteBufUtf8Writer writer);
|
||||
}
|
||||
@@ -31,7 +31,7 @@ import java.util.List;
|
||||
public class SsiConditional implements SsiCommand {
|
||||
@SuppressWarnings("SpellCheckingInspection")
|
||||
@Override
|
||||
public long process(@NotNull SsiProcessingState ssiProcessingState, @NotNull String commandName, @NotNull List<? extends String> paramNames, @NotNull String[] paramValues, @NotNull ByteBufUtf8Writer writer) {
|
||||
public long process(@NotNull SsiProcessingState ssiProcessingState, @NotNull String commandName, @NotNull List<String> paramNames, @NotNull String[] paramValues, @NotNull ByteBufUtf8Writer writer) {
|
||||
// Assume anything using conditionals was modified by it
|
||||
long lastModified = System.currentTimeMillis();
|
||||
// Retrieve the current state information
|
||||
|
||||
@@ -35,7 +35,7 @@ final class SsiFsize implements SsiCommand {
|
||||
private static final int ONE_MEGABYTE = 1024 * 1024;
|
||||
|
||||
@Override
|
||||
public long process(@NotNull SsiProcessingState state, @NotNull String commandName, @NotNull List<? extends String> paramNames, @NotNull String[] paramValues, @NotNull ByteBufUtf8Writer writer) {
|
||||
public long process(@NotNull SsiProcessingState state, @NotNull String commandName, @NotNull List<String> paramNames, @NotNull String[] paramValues, @NotNull ByteBufUtf8Writer writer) {
|
||||
long lastModified = 0;
|
||||
String configErrMsg = state.configErrorMessage;
|
||||
for (int i = 0; i < paramNames.size(); i++) {
|
||||
|
||||
@@ -31,10 +31,6 @@ internal val LOG = Logger.getInstance(SsiProcessor::class.java)
|
||||
internal val COMMAND_START = "<!--#"
|
||||
internal val COMMAND_END = "-->"
|
||||
|
||||
interface SsiCommand {
|
||||
fun process(state: SsiProcessingState, commandName: String, paramNames: List<String>, paramValues: Array<String>, writer: ByteBufUtf8Writer): Long
|
||||
}
|
||||
|
||||
class SsiStopProcessingException : RuntimeException()
|
||||
|
||||
class SsiProcessor(allowExec: Boolean) {
|
||||
|
||||
Reference in New Issue
Block a user