style: 整理注释中的代码。

This commit is contained in:
Suomm 2023-06-20 19:44:15 +08:00
parent a06bd2c27d
commit 7289291173
4 changed files with 19 additions and 19 deletions

View File

@ -82,7 +82,7 @@ public class HttpUtil {
private static SSLSocketFactory initSSLSocketFactory() {
try {
TrustManager[] tm = {new HttpUtil.TrustAnyTrustManager()};
SSLContext sslContext = SSLContext.getInstance("TLS"); // ("TLS", "SunJSSE");
SSLContext sslContext = SSLContext.getInstance("TLS"); // "TLS", "SunJSSE"
sslContext.init(null, tm, new java.security.SecureRandom());
return sslContext.getSocketFactory();
} catch (Exception e) {

View File

@ -107,7 +107,7 @@ public class MybatisKeyGeneratorUtil {
//看到有的框架把 keyGenerator 添加到 mybatis 的当前配置里去其实是完全没必要的
//因为只有在 xml 解析的时候才可能存在多一个 MappedStatement 拥有同一个 keyGenerator 的情况
//当前每个方法都拥有一个自己的 keyGenerator 没必要添加
//this.addKeyGenerator(selectId, keyGenerator);
//addKeyGenerator(selectId, keyGenerator)
return new SelectKeyGenerator(keyMappedStatement, isKeyBefore(idInfo, globalKeyConfig));
}

View File

@ -1,4 +1,4 @@
/**
/*
* Copyright (c) 2022-2023, Mybatis-Flex (fuhai999@gmail.com).
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
@ -128,7 +128,7 @@ public class RowKeyGenerator implements KeyGenerator, IMultiKeyGenerator {
//看到有的框架把 keyGenerator 添加到 mybatis 的当前配置里去其实是完全没必要的
//因为只有在 xml 解析的时候才可能存在多一个 MappedStatement 拥有同一个 keyGenerator 的情况
//当前每个方法都拥有一个自己的 keyGenerator 没必要添加
//this.addKeyGenerator(selectId, keyGenerator);
//addKeyGenerator(selectId, keyGenerator)
return new SelectKeyGenerator(keyMappedStatement, rowKey.isBefore());
}

View File

@ -92,8 +92,8 @@ public class UpdateEntity {
if (value != null) {
reflector.getSetInvoker(propertyName).invoke(newEntity, new Object[]{value});
}
} catch (Exception e) {
//ignore;
} catch (Exception ignored) {
// do nothing here.
}
}