rename package (#465)

This commit is contained in:
dxfeng10
2023-02-03 16:01:38 +08:00
committed by GitHub
parent f513623030
commit 470e31ccc8
366 changed files with 1520 additions and 1524 deletions

View File

@@ -44,7 +44,7 @@
<dependency>
<groupId>com.networknt</groupId>
<artifactId>json-schema-validator-i18n-support</artifactId>
<version>1.0.39_5</version>
<version>1.0.39_6</version>
</dependency>
<dependency>
@@ -163,7 +163,7 @@
<relocations>
<relocation>
<pattern>com.networknt</pattern>
<shadedPattern>we.repackaged.com.networknt</shadedPattern>
<shadedPattern>com.fizzgate.repackaged.com.networknt</shadedPattern>
</relocation>
</relocations>
</configuration>

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.config;
package com.fizzgate.config;
import io.lettuce.core.ClientOptions;
import io.lettuce.core.ReadFrom;

View File

@@ -15,13 +15,14 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.config;
package com.fizzgate.config;
import io.lettuce.core.ReadFrom;
import org.springframework.data.redis.connection.RedisNode;
import we.util.Consts;
import we.util.StringUtils;
import we.util.Utils;
import com.fizzgate.util.Consts;
import com.fizzgate.util.StringUtils;
import com.fizzgate.util.Utils;
import java.time.Duration;
import java.util.ArrayList;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.config;
package com.fizzgate.config;
import java.util.Date;
import java.util.concurrent.Executor;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.config;
package com.fizzgate.config;
import org.springframework.beans.factory.ObjectProvider;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.config;
package com.fizzgate.config;
import io.netty.channel.ChannelOption;
import io.netty.handler.ssl.SslContext;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.constants;
package com.fizzgate.constants;
/**
* @author unknown

View File

@@ -15,11 +15,12 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.flume.clients.log4j2appender;
package com.fizzgate.flume.clients.log4j2appender;
import org.apache.logging.log4j.ThreadContext;
import we.constants.CommonConstants;
import we.util.Consts;
import com.fizzgate.constants.CommonConstants;
import com.fizzgate.util.Consts;
public enum LogService {

View File

@@ -0,0 +1,2 @@
package com.fizzgate.flume.clients.log4j2appender;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.spring.http.server.reactive.ext;
package com.fizzgate.spring.http.server.reactive.ext;
import io.netty.handler.codec.http.cookie.Cookie;
import org.springframework.core.io.buffer.DataBuffer;
@@ -30,9 +30,11 @@ import org.springframework.lang.Nullable;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.util.StringUtils;
import com.fizzgate.util.NettyDataBufferUtils;
import reactor.core.publisher.Flux;
import reactor.netty.http.server.HttpServerRequest;
import we.util.NettyDataBufferUtils;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

View File

@@ -15,15 +15,17 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.spring.http.server.reactive.ext;
package com.fizzgate.spring.http.server.reactive.ext;
import org.reactivestreams.Publisher;
import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.core.io.buffer.PooledDataBuffer;
import org.springframework.http.server.reactive.ServerHttpResponse;
import org.springframework.http.server.reactive.ServerHttpResponseDecorator;
import com.fizzgate.util.NettyDataBufferUtils;
import reactor.core.publisher.Mono;
import we.util.NettyDataBufferUtils;
/**
* @author hongqiaowei

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.spring.web.server.ext;
package com.fizzgate.spring.web.server.ext;
import org.springframework.http.MediaType;
import org.springframework.http.server.reactive.ServerHttpRequest;
@@ -26,11 +26,13 @@ import org.springframework.util.MultiValueMap;
import org.springframework.util.StringUtils;
import org.springframework.web.server.ServerWebExchange;
import org.springframework.web.server.ServerWebExchangeDecorator;
import com.fizzgate.spring.http.server.reactive.ext.FizzServerHttpRequestDecorator;
import com.fizzgate.util.Consts;
import com.fizzgate.util.NettyDataBufferUtils;
import com.fizzgate.util.ThreadContext;
import reactor.core.publisher.Mono;
import we.spring.http.server.reactive.ext.FizzServerHttpRequestDecorator;
import we.util.Consts;
import we.util.NettyDataBufferUtils;
import we.util.ThreadContext;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

View File

@@ -15,13 +15,13 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.util;
package com.fizzgate.util;
import org.apache.commons.lang3.SystemUtils;
/**
* @author hongqiaowei
* @deprecated and use {@link we.util.Consts} instead
* @deprecated and use {@link com.fizzgate.util.Consts} instead
*/
@Deprecated

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.util;
package com.fizzgate.util;
/**
* @author hongqiaowei

View File

@@ -15,9 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.util;
import we.util.Consts.DP;
package com.fizzgate.util;
import java.time.Instant;
import java.time.LocalDate;
@@ -31,6 +29,8 @@ import java.util.stream.Collectors;
import java.util.stream.IntStream;
import java.util.stream.Stream;
import com.fizzgate.util.Consts.DP;
/**
* @author hongqiaowei
*/

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.util;
package com.fizzgate.util;
import org.apache.commons.codec.binary.Hex;

View File

@@ -1,4 +1,4 @@
package we.util;
package com.fizzgate.util;
import java.io.File;
import java.util.Objects;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.util;
package com.fizzgate.util;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.core.JsonFactory;
@@ -27,7 +27,7 @@ import com.fasterxml.jackson.databind.*;
import com.fasterxml.jackson.databind.module.SimpleModule;
import com.fasterxml.jackson.databind.type.TypeFactory;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import we.util.Consts.DP;
import com.fizzgate.util.Consts.DP;
import java.io.IOException;
import java.time.LocalDate;

View File

@@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.util;
package com.fizzgate.util;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

View File

@@ -1,4 +1,4 @@
package we.util;
package com.fizzgate.util;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;

View File

@@ -1,4 +1,4 @@
package we.util;
package com.fizzgate.util;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;

View File

@@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.util;
package com.fizzgate.util;
import java.util.ArrayList;
import java.util.Collection;

View File

@@ -1,4 +1,4 @@
package we.util;
package com.fizzgate.util;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;

View File

@@ -1,4 +1,4 @@
package we.util;
package com.fizzgate.util;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.util;
package com.fizzgate.util;
import io.netty.buffer.ByteBufAllocator;
import org.springframework.core.io.buffer.DataBuffer;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.util;
package com.fizzgate.util;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;

View File

@@ -3,7 +3,7 @@
//The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package we.util;
package com.fizzgate.util;
import org.bouncycastle.util.io.pem.PemObject;
import org.bouncycastle.util.io.pem.PemReader;

View File

@@ -1,4 +1,4 @@
package we.util;
package com.fizzgate.util;
import org.springframework.beans.BeanWrapperImpl;
import org.springframework.beans.PropertyAccessor;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.util;
package com.fizzgate.util;
import io.lettuce.core.ClientOptions;
import io.lettuce.core.TimeoutOptions;
@@ -29,8 +29,9 @@ import org.springframework.data.redis.connection.lettuce.LettuceClientConfigurat
import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory;
import org.springframework.data.redis.connection.lettuce.LettucePoolingClientConfiguration;
import org.springframework.data.redis.core.ReactiveStringRedisTemplate;
import we.config.RedisReactiveConfig;
import we.config.RedisReactiveProperties;
import com.fizzgate.config.RedisReactiveConfig;
import com.fizzgate.config.RedisReactiveProperties;
import java.time.Duration;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.util;
package com.fizzgate.util;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.util;
package com.fizzgate.util;
import java.lang.reflect.Field;
import java.lang.reflect.Method;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.util;
package com.fizzgate.util;
import java.util.Collections;
import java.util.Map;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.util;
package com.fizzgate.util;
/**
* @author hongqiaowei

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.util;
package com.fizzgate.util;
import org.apache.commons.lang3.StringUtils;
import org.springframework.core.io.ClassPathResource;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.util;
package com.fizzgate.util;
import java.util.Objects;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.util;
package com.fizzgate.util;
import cn.hutool.core.util.ArrayUtil;
import cn.hutool.core.util.RandomUtil;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.util;
package com.fizzgate.util;
import cn.hutool.core.util.CharsetUtil;
import cn.hutool.core.util.StrUtil;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.util;
package com.fizzgate.util;
import cn.hutool.core.codec.Base64;
import cn.hutool.core.util.CharsetUtil;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.util;
package com.fizzgate.util;
import java.text.SimpleDateFormat;
import java.util.ArrayList;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.util;
package com.fizzgate.util;
import java.math.BigDecimal;

View File

@@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.util;
package com.fizzgate.util;
import java.util.UUID;

View File

@@ -1,4 +1,4 @@
package we.util;
package com.fizzgate.util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.util;
package com.fizzgate.util;
import org.apache.commons.lang3.StringUtils;

View File

@@ -1,4 +1,4 @@
package we.util;
package com.fizzgate.util;
import org.springframework.beans.factory.config.YamlPropertiesFactoryBean;
import org.springframework.core.io.ByteArrayResource;

View File

@@ -13,7 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
package we.xml;
package com.fizzgate.xml;
import java.io.BufferedReader;
import java.io.FileInputStream;

View File

@@ -13,7 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
package we.xml;
package com.fizzgate.xml;
//import android.util.Xml;

View File

@@ -13,7 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
package we.xml;
package com.fizzgate.xml;
import java.util.ArrayList;

View File

@@ -1,4 +1,4 @@
package we.xml;
package com.fizzgate.xml;
/*
Copyright 2016 Arnaud Guyon

View File

@@ -1,4 +1,4 @@
package we.xml;
package com.fizzgate.xml;
/*
Copyright 2016 Arnaud Guyon

View File

@@ -1,90 +0,0 @@
///*
// * Copyright (C) 2020 the original author or authors.
// *
// * This program is free software: you can redistribute it and/or modify
// * it under the terms of the GNU General Public License as published by
// * the Free Software Foundation, either version 3 of the License, or
// * any later version.
// *
// * This program is distributed in the hope that it will be useful,
// * but WITHOUT ANY WARRANTY; without even the implied warranty of
// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// * GNU General Public License for more details.
// *
// * You should have received a copy of the GNU General Public License
// * along with this program. If not, see <https://www.gnu.org/licenses/>.
// */
//
//package we.flume.clients.log4j2appender;
//
//import java.text.SimpleDateFormat;
//import java.util.HashMap;
//import java.util.Map;
//
///** for internal use */
//public abstract class ThreadContext {
//
// private static ThreadLocal<Map<String, Object>> tl = new ThreadLocal<>();
// private static final int mapCap = 32;
//
// private static final String sb = "sb";
// private static final int sbCap = 256;
//
// public static StringBuilder getStringBuilder() {
// return getStringBuilder(true);
// }
//
// public static StringBuilder getStringBuilder(boolean clean) {
// Map<String, Object> m = getMap();
// StringBuilder b = (StringBuilder) m.get(sb);
// if (b == null) {
// b = new StringBuilder(sbCap);
// m.put(sb, b);
// } else {
// if (clean) {
// b.delete(0, b.length());
// }
// }
// return b;
// }
//
// public static SimpleDateFormat getSimpleDateFormat(String pattern) {
// Map<String, Object> m = getMap();
// SimpleDateFormat sdf = (SimpleDateFormat) m.get(pattern);
// if (sdf == null) {
// sdf = new SimpleDateFormat(pattern);
// m.put(pattern, sdf);
// }
// return sdf;
// }
//
// public static Object get(String key, Class<?> clz) {
// Object obj = get(key);
// if (obj == null) {
// try {
// obj = clz.newInstance();
// set(key, obj);
// } catch (InstantiationException | IllegalAccessException e) {
// throw new RuntimeException(e);
// }
// }
// return obj;
// }
//
// private static Map<String, Object> getMap() {
// Map<String, Object> m = tl.get();
// if (m == null) {
// m = new HashMap<>(mapCap);
// tl.set(m);
// }
// return m;
// }
//
// public static Object get(String key) {
// return getMap().get(key);
// }
//
// public static void set(String key, Object obj) {
// getMap().put(key, obj);
// }
//}

View File

@@ -1,4 +1,4 @@
package we;
package com.fizzgate;
import ognl.Ognl;
import org.junit.jupiter.api.Test;

View File

@@ -15,11 +15,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.util;
package com.fizzgate.util;
import org.junit.jupiter.api.Test;
import we.schema.util.I18nUtils;
import com.fizzgate.schema.util.I18nUtils;
import java.util.List;
import java.util.Locale;

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.util;
package com.fizzgate.util;
import static org.junit.jupiter.api.Assertions.assertEquals;
@@ -26,6 +26,8 @@ import java.util.Map;
import org.junit.jupiter.api.Test;
import com.fizzgate.util.MapUtil;
/**
*
* @author Francis Dong

View File

@@ -1,9 +1,12 @@
package we.util;
package com.fizzgate.util;
import cn.hutool.crypto.symmetric.SymmetricAlgorithm;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import com.fizzgate.util.SymmetricDecryptor;
import com.fizzgate.util.SymmetricEncryptor;
public class SymmetricCryptoTests {
@Test

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package we.xml;
package com.fizzgate.xml;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
@@ -23,6 +23,9 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
import org.json.JSONObject;
import org.junit.jupiter.api.Test;
import com.fizzgate.xml.JsonToXml;
import com.fizzgate.xml.XmlToJson;
public class XmlTests {
private String xmlStr = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" + "<library>\n"