Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add additional models for nullsafe and biabduction #1482

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Makefile.config
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,18 @@ GUAVA_JAR = $(DEPENDENCIES_DIR)/java/guava/guava-23.0.jar
INFER_ANNOTATIONS_JAR = $(ANNOTATIONS_DIR)/annotations.jar
JACKSON_JAR = $(DEPENDENCIES_DIR)/java/jackson/jackson-2.2.3.jar
JSR_305_JAR = $(DEPENDENCIES_DIR)/java/jsr-305/jsr305.jar
COMMONS_JAR = $(DEPENDENCIES_DIR)/java/commons/commons-lang-2.6.jar
COMMONS3_JAR = $(DEPENDENCIES_DIR)/java/commons/commons-lang3-3.0.jar
LOMBOK_JAR = $(DEPENDENCIES_DIR)/java/lombok/lombok-1.18.20.jar
S3_JAR = $(DEPENDENCIES_DIR)/java/aws/s3-abi.jar
KMS_JAR = $(DEPENDENCIES_DIR)/java/aws/kms-abi.jar
DDB_JAR = $(DEPENDENCIES_DIR)/java/aws/ddb-abi.jar

JAVA_MODELS_JAR = $(LIB_DIR)/java/models.jar

JAVA_DEPS_NO_MODELS = \
$(ANDROID_JAR) $(GUAVA_JAR) $(JACKSON_JAR) $(JSR_305_JAR) $(INFER_ANNOTATIONS_JAR) \
$(COMMONS_JAR) $(COMMONS3_JAR) $(LOMBOK_JAR) \
$(INFER_BIN)

JAVA_DEPS = $(JAVA_DEPS_NO_MODELS) $(JAVA_MODELS_JAR) $(MODELS_RESULTS_FILE)
Expand Down
Binary file added dependencies/java/aws/ddb-abi.jar
Binary file not shown.
Binary file added dependencies/java/aws/kms-abi.jar
Binary file not shown.
Binary file added dependencies/java/aws/s3-abi.jar
Binary file not shown.
Binary file added dependencies/java/commons/commons-lang-2.6.jar
Binary file not shown.
Binary file added dependencies/java/commons/commons-lang3-3.0.jar
Binary file not shown.
Binary file added dependencies/java/lombok/lombok-1.18.20.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion infer/models/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ JAVA_MODELS_OUT = java/models
MODELS_JAR = models.jar

JAVA_SOURCES = $(shell find $(JAVA_BUILTINS_DIR) $(JAVA_MODELS_DIR) -name "*.java")
JAVA_MODELS_CLASSPATH = $(ANDROID_JAR):$(GUAVA_JAR):$(JACKSON_JAR):$(JSR_305_JAR):$(INFER_ANNOTATIONS_JAR)
JAVA_MODELS_CLASSPATH = $(ANDROID_JAR):$(GUAVA_JAR):$(JACKSON_JAR):$(JSR_305_JAR):$(INFER_ANNOTATIONS_JAR):$(COMMONS_JAR):$(COMMONS3_JAR):$(LOMBOK_JAR):$(S3_JAR):$(DDB_JAR):$(KMS_JAR)
JAVAC_OPTIONS = -bootclasspath $(ANDROID_JAR) -d $(JAVA_MODELS_OUT) -classpath $(JAVA_MODELS_CLASSPATH) \
$(JAVA_SOURCES) -source 7 -target 7

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.amazonaws;

public class AmazonClientException {
public AmazonClientException () {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.amazonaws.metrics;

public class RequestMetricCollector {
public RequestMetricCollector () {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.amazonaws.services.dynamodbv2.datamodeling;
import java.util.Map;
public class AbstractDynamoDBMapper {
public AbstractDynamoDBMapper () {}
public <T> T load(T keyObject, DynamoDBMapperConfig config) {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.amazonaws.services.dynamodbv2.datamodeling;
import java.util.Map;
public class DynamoDBMapper {
public DynamoDBMapper () {}
public <T> T load(Class<T> clazz, Object hashKey) {
return null;
}
public <T> T load(Class<T> clazz, Object hashKey, Object rangeKey, DynamoDBMapperConfig config) {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.amazonaws.services.dynamodbv2.datamodeling;
import com.amazonaws.metrics.RequestMetricCollector;
public class DynamoDBMapperConfig {
public DynamoDBMapperConfig () {}
public RequestMetricCollector getRequestMetricCollector() {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.amazonaws.services.dynamodbv2.datamodeling;

public class DynamoDBScanExpression {
public DynamoDBScanExpression () {}
public String getIndexName() {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package com.amazonaws.services.dynamodbv2.datamodeling;
import java.util.Map;
import com.amazonaws.services.dynamodbv2.model.AttributeValue;
public class QueryResultPage<T> {
public QueryResultPage () {}
public Map<String,AttributeValue> getLastEvaluatedKey() {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package com.amazonaws.services.dynamodbv2.datamodeling;
import java.util.Map;
import com.amazonaws.services.dynamodbv2.model.AttributeValue;
public class ScanResultPage<T> {
public ScanResultPage () {}
public Map<String,AttributeValue> getLastEvaluatedKey() {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.amazonaws.services.dynamodbv2.document;

public class DeleteItemOutcome {
public DeleteItemOutcome () {}
public Item getItem() {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.amazonaws.services.dynamodbv2.document;

public class GetItemOutcome {
public GetItemOutcome () {}
public Item getItem() {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.amazonaws.services.dynamodbv2.document;

public class Item {
public Item () {}
public Class<?> getTypeOf(String attrName) {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.amazonaws.services.dynamodbv2.document;

public class ItemUtils {
public ItemUtils () {}
public static Integer minimum(Integer one, Integer two) {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.amazonaws.services.dynamodbv2.document;
import com.amazonaws.services.dynamodbv2.model.TableDescription;
public class Table {
public Table () {}
public TableDescription getDescription() {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.amazonaws.services.dynamodbv2.document.internal;

public class InternalUtils {
public InternalUtils () {}
public static Integer minimum(Integer one, Integer two) {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.amazonaws.services.dynamodbv2.xspec;
import java.util.Map;
public class DeleteItemExpressionSpec {
public DeleteItemExpressionSpec () {}
public final Map<String,Object> getValueMap() {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.amazonaws.services.dynamodbv2.xspec;
import java.util.Map;
public class GetItemExpressionSpec {
public GetItemExpressionSpec () {}
public final Map<String,String> getNameMap() {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.amazonaws.services.dynamodbv2.xspec;
import java.util.Map;
public class PutItemExpressionSpec {
public PutItemExpressionSpec () {}
public Map<String,Object> getValueMap() {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.amazonaws.services.dynamodbv2.xspec;
import java.util.Map;
public class QueryExpressionSpec {
public QueryExpressionSpec () {}
public Map<String,Object> getValueMap() {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.amazonaws.services.dynamodbv2.xspec;
import java.util.Map;
public class ScanExpressionSpec {
public ScanExpressionSpec () {}
public Map<String,Object> getValueMap() {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.amazonaws.services.dynamodbv2.xspec;
import java.util.Map;
public class UpdateItemExpressionSpec {
public UpdateItemExpressionSpec () {}
public Map<String,Object> getValueMap() {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.amazonaws.services.elasticmapreduce.spi.security;
import java.util.Map;
public class EncryptionMaterials {
public EncryptionMaterials () {}
public Map<String,String> getMaterialsDescription() {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.amazonaws.services.kinesisvideo.model.AckErrorCode;

public class Values {
public Values () {}
public String toString() {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.amazonaws.services.kinesisvideo.model.AckEventType;

public class Values {
public Values () {}
public String toString() {
return null;
}
}
5 changes: 5 additions & 0 deletions infer/models/java/src/com/amazonaws/services/kms/AWSKMS.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.amazonaws.services.kms;

public class AWSKMS {
public AWSKMS () {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.amazonaws.services.mediaconvert.model;

public class Job {
public Job () {}
public Job withJobPercentComplete(Integer jobPercentComplete) {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.amazonaws.services.s3;

public class AmazonS3Client {
public AmazonS3Client () {}
public String getResourceUrl(String bucketName, String key) {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.amazonaws.services.s3;
import com.amazonaws.services.kms.AWSKMS;
public class AmazonS3EncryptionClientV2 {
public AmazonS3EncryptionClientV2 () {}
public AWSKMS getKmsClient() {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package com.amazonaws.services.s3.internal;
import java.io.File;
import com.amazonaws.services.s3.OnFileDelete;
public class PartCreationEvent {
public PartCreationEvent () {}
public OnFileDelete getFileDeleteObserver() {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.amazonaws.services.s3.internal;
import java.io.InputStream;
public class RepeatableFileInputStream {
public RepeatableFileInputStream () {}
public InputStream getWrappedInputStream() {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.amazonaws.services.s3.internal;
import java.io.InputStream;
public class RepeatableInputStream {
public RepeatableInputStream () {}
public InputStream getWrappedInputStream() {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.amazonaws.services.s3.internal;
import java.util.Map;
public class S3XmlResponseHandler<T> {
public S3XmlResponseHandler () {}
public Map<String,String> getResponseHeaders() {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.amazonaws.services.s3.internal;

public class SSEResultBase {
public SSEResultBase () {}
public final String getSSECustomerKeyMd5() {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.amazonaws.services.s3.internal.crypto;

public class GCMCipherLite {
public GCMCipherLite () {}
public byte[] getTag() {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.amazonaws.services.s3.model;

public class AmazonS3Exception {
public AmazonS3Exception () {}
public String getErrorResponseXml() {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.amazonaws.services.s3.model;
import java.util.Date;
public class Bucket {
public Bucket () {}
public Date getCreationDate() {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.amazonaws.services.s3.model;

public class CompleteMultipartUploadResult {
public CompleteMultipartUploadResult () {}
public String getExpirationTimeRuleId() {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.amazonaws.services.s3.model;

public class CopyObjectResult {
public CopyObjectResult () {}
public String getExpirationTimeRuleId() {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.amazonaws.services.s3.model;
import com.amazonaws.services.s3.model.EncryptionMaterialsAccessor;
public class EncryptionMaterials {
public EncryptionMaterials () {}
public EncryptionMaterialsAccessor getAccessor() {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.amazonaws.services.s3.model;

public class GeneratePresignedUrlRequest {
public GeneratePresignedUrlRequest () {}
public String getSSEAlgorithm() {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.amazonaws.services.s3.model;

public class GroupGrantee {
public GroupGrantee () {}
public static GroupGrantee parseGroupGrantee(String groupUri) {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.amazonaws.services.s3.model;

public class KMSEncryptionMaterials {
public KMSEncryptionMaterials () {}
public String getCustomerMasterKeyId() {
return null;
}
}
Loading