mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
rm VerificationMethodFlowConfig, use springframework-5.2.3 stub
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
package org.springframework.stereotype;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.TYPE})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
public @interface Controller {
|
||||
String value() default "";
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
package org.springframework.core.io;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
||||
public interface InputStreamSource {
|
||||
InputStream getInputStream() throws IOException;
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
package org.springframework.core.io;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.net.URI;
|
||||
import java.net.URL;
|
||||
import java.nio.channels.Channels;
|
||||
import java.nio.channels.ReadableByteChannel;
|
||||
import org.springframework.lang.Nullable;
|
||||
|
||||
public interface Resource extends InputStreamSource {
|
||||
boolean exists();
|
||||
|
||||
default boolean isReadable() {
|
||||
return this.exists();
|
||||
}
|
||||
|
||||
default boolean isOpen() {
|
||||
return false;
|
||||
}
|
||||
|
||||
default boolean isFile() {
|
||||
return false;
|
||||
}
|
||||
|
||||
URL getURL() throws IOException;
|
||||
|
||||
URI getURI() throws IOException;
|
||||
|
||||
File getFile() throws IOException;
|
||||
|
||||
default ReadableByteChannel readableChannel() throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
long contentLength() throws IOException;
|
||||
|
||||
long lastModified() throws IOException;
|
||||
|
||||
Resource createRelative(String var1) throws IOException;
|
||||
|
||||
@Nullable
|
||||
String getFilename();
|
||||
|
||||
String getDescription();
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
package org.springframework.lang;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.METHOD, ElementType.PARAMETER, ElementType.FIELD})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
public @interface Nullable {
|
||||
}
|
||||
@@ -1,53 +0,0 @@
|
||||
package org.springframework.util;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.Closeable;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.io.Reader;
|
||||
import java.io.StringWriter;
|
||||
import java.io.Writer;
|
||||
import java.nio.file.Files;
|
||||
import org.springframework.lang.Nullable;
|
||||
|
||||
public abstract class FileCopyUtils {
|
||||
public static final int BUFFER_SIZE = 4096;
|
||||
|
||||
public FileCopyUtils() {
|
||||
}
|
||||
|
||||
public static int copy(File in, File out) throws IOException {
|
||||
return 1;
|
||||
}
|
||||
|
||||
public static void copy(byte[] in, File out) throws IOException {}
|
||||
|
||||
public static byte[] copyToByteArray(File in) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static int copy(InputStream in, OutputStream out) throws IOException {
|
||||
return 1;
|
||||
}
|
||||
|
||||
public static void copy(byte[] in, OutputStream out) throws IOException {}
|
||||
|
||||
public static byte[] copyToByteArray(@Nullable InputStream in) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static int copy(Reader in, Writer out) throws IOException {
|
||||
return 1;
|
||||
}
|
||||
|
||||
public static void copy(String in, Writer out) throws IOException {}
|
||||
|
||||
public static String copyToString(@Nullable Reader in) throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
private static void close(Closeable closeable) {}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
package org.springframework.util;
|
||||
|
||||
public abstract class StringUtils {
|
||||
|
||||
public static boolean isEmpty(Object str) {
|
||||
return str == null || "".equals(str);
|
||||
}
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
package org.springframework.web.bind.annotation;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
import org.springframework.core.annotation.AliasFor;
|
||||
|
||||
@Target({ElementType.TYPE, ElementType.METHOD})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
@Mapping
|
||||
public @interface RequestMapping {
|
||||
String name() default "";
|
||||
|
||||
@AliasFor("path")
|
||||
String[] value() default {};
|
||||
|
||||
@AliasFor("value")
|
||||
String[] path() default {};
|
||||
|
||||
RequestMethod[] method() default {};
|
||||
|
||||
String[] params() default {};
|
||||
|
||||
String[] headers() default {};
|
||||
|
||||
String[] consumes() default {};
|
||||
|
||||
String[] produces() default {};
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
package org.springframework.web.bind.annotation;
|
||||
|
||||
public enum RequestMethod {
|
||||
GET,
|
||||
HEAD,
|
||||
POST,
|
||||
PUT,
|
||||
PATCH,
|
||||
DELETE,
|
||||
OPTIONS,
|
||||
TRACE;
|
||||
|
||||
private RequestMethod() {
|
||||
}
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
package org.springframework.web.bind.annotation;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
import org.springframework.core.annotation.AliasFor;
|
||||
|
||||
@Target({ElementType.PARAMETER})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
public @interface RequestParam {
|
||||
@AliasFor("name")
|
||||
String value() default "";
|
||||
|
||||
@AliasFor("value")
|
||||
String name() default "";
|
||||
|
||||
boolean required() default true;
|
||||
|
||||
String defaultValue() default "\n\t\t\n\t\t\n\ue000\ue001\ue002\n\t\t\t\t\n";
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
package org.springframework.web.multipart;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import org.springframework.core.io.InputStreamSource;
|
||||
import org.springframework.core.io.Resource;
|
||||
import org.springframework.lang.Nullable;
|
||||
import org.springframework.util.FileCopyUtils;
|
||||
|
||||
public interface MultipartFile extends InputStreamSource {
|
||||
String getName();
|
||||
|
||||
@Nullable
|
||||
String getOriginalFilename();
|
||||
|
||||
@Nullable
|
||||
String getContentType();
|
||||
|
||||
boolean isEmpty();
|
||||
|
||||
long getSize();
|
||||
|
||||
byte[] getBytes() throws IOException;
|
||||
|
||||
InputStream getInputStream() throws IOException;
|
||||
|
||||
default Resource getResource() {
|
||||
return null;
|
||||
}
|
||||
|
||||
void transferTo(File var1) throws IOException, IllegalStateException;
|
||||
|
||||
default void transferTo(Path dest) throws IOException, IllegalStateException {
|
||||
}
|
||||
}
|
||||
BIN
java/ql/test/stubs/springframework-5.2.3.zip
Normal file
BIN
java/ql/test/stubs/springframework-5.2.3.zip
Normal file
Binary file not shown.
@@ -0,0 +1,10 @@
|
||||
package org.springframework.boot;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
@Target(ElementType.TYPE)
|
||||
@Configuration
|
||||
public @interface SpringBootConfiguration {}
|
||||
@@ -0,0 +1,12 @@
|
||||
package org.springframework.boot.autoconfigure;
|
||||
|
||||
import java.lang.annotation.Target;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Inherited;
|
||||
|
||||
import org.springframework.boot.SpringBootConfiguration;
|
||||
|
||||
@Target(ElementType.TYPE)
|
||||
@Inherited
|
||||
@SpringBootConfiguration
|
||||
public @interface SpringBootApplication {}
|
||||
@@ -0,0 +1,10 @@
|
||||
package org.springframework.context.annotation;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.METHOD, ElementType.ANNOTATION_TYPE})
|
||||
public @interface Bean {
|
||||
|
||||
String[] name() default {};
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package org.springframework.context.annotation;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target(ElementType.TYPE)
|
||||
public @interface Configuration {}
|
||||
@@ -0,0 +1,8 @@
|
||||
package org.springframework.remoting.httpinvoker;
|
||||
|
||||
public class HttpInvokerServiceExporter extends org.springframework.remoting.rmi.RemoteInvocationSerializingExporter {
|
||||
|
||||
public void setService(Object service) {}
|
||||
|
||||
public void setServiceInterface(Class clazz) {}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
package org.springframework.remoting.rmi;
|
||||
|
||||
public abstract class RemoteInvocationSerializingExporter {}
|
||||
@@ -1,9 +1,15 @@
|
||||
package org.springframework.stereotype;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target(value=ElementType.TYPE)
|
||||
@Retention(value=RetentionPolicy.RUNTIME)
|
||||
@Target({ElementType.TYPE})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
@Component
|
||||
public @interface Controller { }
|
||||
public @interface Controller {
|
||||
String value() default "";
|
||||
}
|
||||
|
||||
@@ -0,0 +1,202 @@
|
||||
package org.springframework.util;
|
||||
|
||||
import java.lang.reflect.Array;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
import java.util.StringJoiner;
|
||||
import org.springframework.lang.Nullable;
|
||||
|
||||
public abstract class ObjectUtils {
|
||||
|
||||
private static final int INITIAL_HASH = 7;
|
||||
private static final int MULTIPLIER = 31;
|
||||
private static final String EMPTY_STRING = "";
|
||||
private static final String NULL_STRING = "null";
|
||||
private static final String ARRAY_START = "{";
|
||||
private static final String ARRAY_END = "}";
|
||||
private static final String EMPTY_ARRAY = "{}";
|
||||
private static final String ARRAY_ELEMENT_SEPARATOR = ", ";
|
||||
private static final Object[] EMPTY_OBJECT_ARRAY = new Object[0];
|
||||
|
||||
public ObjectUtils() {
|
||||
}
|
||||
|
||||
public static boolean isCheckedException(Throwable ex) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public static boolean isCompatibleWithThrowsClause(Throwable ex, @Nullable Class<?>... declaredExceptions) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public static boolean isArray(@Nullable Object obj) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public static boolean isEmpty(@Nullable Object[] array) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public static boolean isEmpty(@Nullable Object obj) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static Object unwrapOptional(@Nullable Object obj) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static boolean containsElement(@Nullable Object[] array, Object element) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public static boolean containsConstant(Enum<?>[] enumValues, String constant) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public static boolean containsConstant(Enum<?>[] enumValues, String constant, boolean caseSensitive) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public static <E extends Enum<?>> E caseInsensitiveValueOf(E[] enumValues, String constant) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static <A, O extends A> A[] addObjectToArray(@Nullable A[] array, @Nullable O obj) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static Object[] toObjectArray(@Nullable Object source) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static boolean nullSafeEquals(@Nullable Object o1, @Nullable Object o2) {
|
||||
return false;
|
||||
}
|
||||
|
||||
private static boolean arrayEquals(Object o1, Object o2) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public static int nullSafeHashCode(@Nullable Object obj) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
public static int nullSafeHashCode(@Nullable Object[] array) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
public static int nullSafeHashCode(@Nullable boolean[] array) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
public static int nullSafeHashCode(@Nullable byte[] array) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
public static int nullSafeHashCode(@Nullable char[] array) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
public static int nullSafeHashCode(@Nullable double[] array) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
public static int nullSafeHashCode(@Nullable float[] array) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
public static int nullSafeHashCode(@Nullable int[] array) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
public static int nullSafeHashCode(@Nullable long[] array) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
public static int nullSafeHashCode(@Nullable short[] array) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
/** @deprecated */
|
||||
@Deprecated
|
||||
public static int hashCode(boolean bool) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
/** @deprecated */
|
||||
@Deprecated
|
||||
public static int hashCode(double dbl) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
/** @deprecated */
|
||||
@Deprecated
|
||||
public static int hashCode(float flt) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
/** @deprecated */
|
||||
@Deprecated
|
||||
public static int hashCode(long lng) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
public static String identityToString(@Nullable Object obj) {
|
||||
return "";
|
||||
}
|
||||
|
||||
public static String getIdentityHexString(Object obj) {
|
||||
return "";
|
||||
}
|
||||
|
||||
public static String getDisplayString(@Nullable Object obj) {
|
||||
return "";
|
||||
}
|
||||
|
||||
public static String nullSafeClassName(@Nullable Object obj) {
|
||||
return "";
|
||||
}
|
||||
|
||||
public static String nullSafeToString(@Nullable Object obj) {
|
||||
return "";
|
||||
}
|
||||
|
||||
public static String nullSafeToString(@Nullable Object[] array) {
|
||||
return "";
|
||||
}
|
||||
|
||||
public static String nullSafeToString(@Nullable boolean[] array) {
|
||||
return "";
|
||||
}
|
||||
|
||||
public static String nullSafeToString(@Nullable byte[] array) {
|
||||
return "";
|
||||
}
|
||||
|
||||
public static String nullSafeToString(@Nullable char[] array) {
|
||||
return "";
|
||||
}
|
||||
|
||||
public static String nullSafeToString(@Nullable double[] array) {
|
||||
return "";
|
||||
}
|
||||
|
||||
public static String nullSafeToString(@Nullable float[] array) {
|
||||
return "";
|
||||
}
|
||||
|
||||
public static String nullSafeToString(@Nullable int[] array) {
|
||||
return "";
|
||||
}
|
||||
|
||||
public static String nullSafeToString(@Nullable long[] array) {
|
||||
return "";
|
||||
}
|
||||
|
||||
public static String nullSafeToString(@Nullable short[] array) {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package org.springframework.util;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.nio.charset.Charset;
|
||||
import java.util.ArrayDeque;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.Deque;
|
||||
import java.util.Enumeration;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Properties;
|
||||
import java.util.Set;
|
||||
import java.util.StringJoiner;
|
||||
import java.util.StringTokenizer;
|
||||
import java.util.TimeZone;
|
||||
import org.springframework.lang.Nullable;
|
||||
|
||||
public abstract class StringUtils {
|
||||
|
||||
@Deprecated
|
||||
public static boolean isEmpty(@Nullable Object str) {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,11 +1,32 @@
|
||||
package org.springframework.web.bind.annotation;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
import org.springframework.core.annotation.AliasFor;
|
||||
|
||||
@Target(value={ElementType.METHOD,ElementType.TYPE})
|
||||
@Retention(value=RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
@Mapping
|
||||
public @interface RequestMapping {
|
||||
String name() default "";
|
||||
|
||||
@AliasFor("path")
|
||||
String[] value() default {};
|
||||
|
||||
@AliasFor("value")
|
||||
String[] path() default {};
|
||||
|
||||
RequestMethod[] method() default {};
|
||||
|
||||
String[] params() default {};
|
||||
|
||||
String[] headers() default {};
|
||||
|
||||
String[] consumes() default {};
|
||||
|
||||
String[] produces() default {};
|
||||
}
|
||||
|
||||
@@ -1,8 +1,23 @@
|
||||
package org.springframework.web.bind.annotation;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
import org.springframework.core.annotation.AliasFor;
|
||||
|
||||
@Target(value=ElementType.PARAMETER)
|
||||
@Retention(value=RetentionPolicy.RUNTIME)
|
||||
@Target({ElementType.PARAMETER})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
public @interface RequestParam { }
|
||||
public @interface RequestParam {
|
||||
@AliasFor("name")
|
||||
String value() default "";
|
||||
|
||||
@AliasFor("value")
|
||||
String name() default "";
|
||||
|
||||
boolean required() default true;
|
||||
|
||||
String defaultValue() default "\n\t\t\n\t\t\n\ue000\ue001\ue002\n\t\t\t\t\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user