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

Snow 1915375 drop copyright header in comments from snowflake repositories #2091

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/*
* Copyright (c) 2012-2019 Snowflake Computing Inc. All right reserved.
*/
package net.snowflake.client;

import static org.hamcrest.MatcherAssert.assertThat;
Expand Down
3 changes: 0 additions & 3 deletions FIPS/src/test/java/net/snowflake/client/DontRunOnGCP.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/*
* Copyright (c) 2024 Snowflake Computing Inc. All rights reserved.
*/
package net.snowflake.client;

import java.lang.annotation.ElementType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/*
* Copyright (c) 2024 Snowflake Computing Inc. All rights reserved.
*/
package net.snowflake.client;

import java.lang.annotation.ElementType;
Expand Down
3 changes: 0 additions & 3 deletions FIPS/src/test/java/net/snowflake/client/TestUtil.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/*
* Copyright (c) 2012-2019 Snowflake Computing Inc. All right reserved.
*/
package net.snowflake.client;

import static org.hamcrest.CoreMatchers.is;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/*
* Copyright (c) 2024 Snowflake Computing Inc. All rights reserved.
*/
package net.snowflake.client.category;

import org.junit.platform.suite.api.IncludeTags;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/*
* Copyright (c) 2012-2020 Snowflake Computing Inc. All right reserved.
*/
package net.snowflake.client.jdbc;

import static org.junit.jupiter.api.Assertions.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2012-2019 Snowflake Computing Inc. All rights reserved.
*/

package com.snowflake.client.jdbc;

import java.sql.Driver;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/*
* Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
*/
package net.snowflake.client.config;

import java.util.Properties;
Expand Down
4 changes: 0 additions & 4 deletions src/main/java/net/snowflake/client/core/ArrowSqlInput.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
*/

package net.snowflake.client.core;

import static net.snowflake.client.jdbc.SnowflakeUtil.mapSFExceptionToSQLException;
Expand Down
5 changes: 0 additions & 5 deletions src/main/java/net/snowflake/client/core/AssertUtil.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
/*
* Copyright (c) 2012-2019 Snowflake Computing Inc. All rights reserved.
*/

package net.snowflake.client.core;

import net.snowflake.client.jdbc.ErrorCode;

/** Created by jhuang on 1/27/16. */
public class AssertUtil {
/**
* Assert the condition is true, otherwise throw an internal error exception with the given
Expand Down
4 changes: 0 additions & 4 deletions src/main/java/net/snowflake/client/core/BaseSqlInput.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
*/

package net.snowflake.client.core;

import static net.snowflake.client.jdbc.SnowflakeUtil.mapSFExceptionToSQLException;
Expand Down
10 changes: 1 addition & 9 deletions src/main/java/net/snowflake/client/core/BasicEvent.java
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
/*
* Copyright (c) 2012-2019 Snowflake Computing Inc. All rights reserved.
*/

package net.snowflake.client.core;

import static net.snowflake.client.jdbc.SnowflakeUtil.systemGetProperty;

/**
* Base Event class for events that don't need to deviate from the default flush behavior.
*
* @author jrosen
*/
/** Base Event class for events that don't need to deviate from the default flush behavior. */
public class BasicEvent extends Event {
// Format strings for query state transitions
private static final String requestId = "requestId: %s";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/*
* Copyright (c) 2024 Snowflake Computing Inc. All rights reserved.
*/
package net.snowflake.client.core;

@SnowflakeJdbcInternalApi
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2012-2019 Snowflake Computing Inc. All rights reserved.
*/

package net.snowflake.client.core;

import net.snowflake.client.jdbc.SnowflakeResultChunk;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/*
* Copyright (c) 2012-2024 Snowflake Computing Inc. All right reserved.
*/
package net.snowflake.client.core;

import java.sql.Types;
Expand Down
4 changes: 0 additions & 4 deletions src/main/java/net/snowflake/client/core/Constants.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2012-2019 Snowflake Computing Inc. All rights reserved.
*/

package net.snowflake.client.core;

import static net.snowflake.client.jdbc.SnowflakeUtil.systemGetProperty;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2012-2019 Snowflake Computing Inc. All rights reserved.
*/

package net.snowflake.client.core;

import com.amazonaws.util.StringUtils;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/*
* Copyright (c) 2012-2019 Snowflake Computing Inc. All rights reserved.
*/
package net.snowflake.client.core;

import java.util.TimeZone;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/*
* Copyright (c) 2012-2019 Snowflake Computing Inc. All rights reserved.
*/
package net.snowflake.client.core;

/** Metrics related to chunk downloader performance */
Expand Down
10 changes: 1 addition & 9 deletions src/main/java/net/snowflake/client/core/Event.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2012-2019 Snowflake Computing Inc. All rights reserved.
*/

package net.snowflake.client.core;

import com.google.common.base.Preconditions;
Expand All @@ -14,11 +10,7 @@
import net.snowflake.client.log.SFLogger;
import net.snowflake.client.log.SFLoggerFactory;

/**
* Abstract class to encapsulate a Client-side Event and any methods associated with it.
*
* @author jrosen
*/
/** Abstract class to encapsulate a Client-side Event and any methods associated with it. */
public abstract class Event {
private static final SFLogger logger = SFLoggerFactory.getLogger(Event.class);

Expand Down
7 changes: 0 additions & 7 deletions src/main/java/net/snowflake/client/core/EventHandler.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2012-2019 Snowflake Computing Inc. All rights reserved.
*/

package net.snowflake.client.core;

import static net.snowflake.client.jdbc.SnowflakeUtil.systemGetProperty;
Expand Down Expand Up @@ -33,9 +29,6 @@
import net.snowflake.client.log.SFLoggerFactory;
import org.joda.time.DateTime;

/**
* @author jrosen
*/
public class EventHandler extends Handler {
private static final SFLogger logger = SFLoggerFactory.getLogger(EventHandler.class);

Expand Down
10 changes: 1 addition & 9 deletions src/main/java/net/snowflake/client/core/EventUtil.java
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
/*
* Copyright (c) 2012-2019 Snowflake Computing Inc. All rights reserved.
*/

package net.snowflake.client.core;

import static net.snowflake.client.jdbc.SnowflakeUtil.systemGetProperty;

import java.io.File;
import java.util.concurrent.atomic.AtomicReference;

/**
* Utility class to encapsulate support information pertaining to the EventHandler and events.
*
* @author jrosen
*/
/** Utility class to encapsulate support information pertaining to the EventHandler and events. */
public class EventUtil {
public static final String DUMP_PATH_PROP = "snowflake.dump_path";
public static final String DUMP_SIZE_PROP = "snowflake.max_dump_size";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/*
* Copyright (c) 2018-2019 Snowflake Computing Inc. All rights reserved.
*/
package net.snowflake.client.core;

import com.google.common.base.Strings;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2012-2019 Snowflake Computing Inc. All rights reserved.
*/

package net.snowflake.client.core;

import static net.snowflake.client.core.FileUtil.isWritable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
/*
* Copyright (c) 2012-2019 Snowflake Computing Inc. All rights reserved.
*/

package net.snowflake.client.core;

import java.io.IOException;
import java.nio.file.Path;
import org.apache.tika.Tika;

/**
* Use Tika to detect the mime type of files
*
* @author jhuang
*/
/** Use Tika to detect the mime type of files */
public class FileTypeDetector extends java.nio.file.spi.FileTypeDetector {
private final Tika tika = new Tika();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2012-2019 Snowflake Computing Inc. All rights reserved.
*/

package net.snowflake.client.core;

import java.util.HashSet;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2012-2021 Snowflake Computing Inc. All rights reserved.
*/

package net.snowflake.client.core;

import com.google.common.base.Strings;
Expand Down
4 changes: 0 additions & 4 deletions src/main/java/net/snowflake/client/core/HttpProtocol.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2024 Snowflake Computing Inc. All rights reserved.
*/

package net.snowflake.client.core;

public enum HttpProtocol {
Expand Down
4 changes: 0 additions & 4 deletions src/main/java/net/snowflake/client/core/HttpUtil.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
*/

package net.snowflake.client.core;

import static net.snowflake.client.jdbc.SnowflakeUtil.systemGetProperty;
Expand Down
7 changes: 0 additions & 7 deletions src/main/java/net/snowflake/client/core/IncidentUtil.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2012-2019 Snowflake Computing Inc. All rights reserved.
*/

package net.snowflake.client.core;

import com.fasterxml.jackson.core.JsonEncoding;
Expand All @@ -25,9 +21,6 @@
import net.snowflake.client.log.SFLogger;
import net.snowflake.client.log.SFLoggerFactory;

/**
* @author jrosen + mkeller
*/
public class IncidentUtil {
private static final SFLogger logger = SFLoggerFactory.getLogger(IncidentUtil.class);

Expand Down
3 changes: 0 additions & 3 deletions src/main/java/net/snowflake/client/core/JsonSqlInput.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/*
* Copyright (c) 2012-2024 Snowflake Computing Inc. All right reserved.
*/
package net.snowflake.client.core;

import static net.snowflake.client.core.SFBaseResultSet.OBJECT_MAPPER;
Expand Down
3 changes: 0 additions & 3 deletions src/main/java/net/snowflake/client/core/JsonSqlOutput.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/*
* Copyright (c) 2012-2024 Snowflake Computing Inc. All right reserved.
*/
package net.snowflake.client.core;

import static net.snowflake.client.core.FieldSchemaCreator.buildSchemaTypeAndNameOnly;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2012-2019 Snowflake Computing Inc. All rights reserved.
*/

package net.snowflake.client.core;

import java.io.Serializable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/*
* Copyright (c) 2018-2019 Snowflake Computing Inc. All rights reserved.
*/
package net.snowflake.client.core;

import java.security.cert.CertificateException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
/*
* Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
*/

package net.snowflake.client.core;

import net.snowflake.client.jdbc.BindingParameterMetadata;

/** This class represents a binding object passed to server side Created by hyu on 6/15/17. */
/** This class represents a binding object passed to server side. */
public class ParameterBindingDTO {
/** Type of binding */
private String type;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2012-2022 Snowflake Computing Inc. All rights reserved.
*/

package net.snowflake.client.core;

import com.fasterxml.jackson.databind.JsonNode;
Expand Down
10 changes: 1 addition & 9 deletions src/main/java/net/snowflake/client/core/QueryExecDTO.java
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
/*
* Copyright (c) 2012-2019 Snowflake Computing Inc. All rights reserved.
*/

package net.snowflake.client.core;

import java.util.Map;

/**
* Body of a query request
*
* <p>Created by hyu on 6/30/17.
*/
/** Body of a query request */
public class QueryExecDTO {
private String sqlText;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/*
* Copyright (c) 2012-2019 Snowflake Computing Inc. All rights reserved.
*/
package net.snowflake.client.core;

import java.util.Optional;
Expand Down
4 changes: 0 additions & 4 deletions src/main/java/net/snowflake/client/core/ResultUtil.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2012-2019 Snowflake Computing Inc. All rights reserved.
*/

package net.snowflake.client.core;

import com.fasterxml.jackson.databind.JsonNode;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/*
* Copyright (c) 2012-2019 Snowflake Computing Inc. All rights reserved.
*/
package net.snowflake.client.core;

import static net.snowflake.client.core.StmtUtil.eventHandler;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2012-2019 Snowflake Computing Inc. All rights reserved.
*/

package net.snowflake.client.core;

import static net.snowflake.client.jdbc.SnowflakeUtil.getJsonNodeStringValue;
Expand Down
Loading
Loading