qodana 대응 소스 수정

dev
박성영 5 months ago
parent 12e27144a2
commit f3f7a96f8f

@ -71,7 +71,7 @@ public class EgovConfigTransaction {
}
private HashMap<String, TransactionAttribute> getRuleBasedTxAttributeMap() {
HashMap<String, TransactionAttribute> txMethods = new HashMap<String, TransactionAttribute>();
HashMap<String, TransactionAttribute> txMethods = new HashMap<>();
RuleBasedTransactionAttribute txAttribute = new RuleBasedTransactionAttribute();
txAttribute.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRED);

@ -96,7 +96,7 @@ private String getActualSql(BoundSql boundSql, Object parameter) {
// 파라미터 값 추출
for (ParameterMapping parameterMapping : parameterMappings) {
String propertyName = parameterMapping.getProperty();
Object value = null;
Object value;
if (boundSql.hasAdditionalParameter(propertyName)) {
value = boundSql.getAdditionalParameter(propertyName);

@ -118,12 +118,10 @@ public class ClientInfoUtil {
} else if (userAgent.contains("iphone os") || userAgent.contains("cpu os")) {
// iOS 버전 추출
int startIndex = userAgent.contains("iphone os ") ? userAgent.indexOf("iphone os ") + 10 : userAgent.indexOf("cpu os ") + 7;
if (startIndex != -1) {
int endIndex = userAgent.indexOf(" ", startIndex);
if (endIndex != -1) {
String version = userAgent.substring(startIndex, endIndex).trim().replace("_", ".");
return "iOS " + version;
}
int endIndex = userAgent.indexOf(" ", startIndex);
if (endIndex != -1) {
String version = userAgent.substring(startIndex, endIndex).trim().replace("_", ".");
return "iOS " + version;
}
return "iOS";
} else if (userAgent.contains("linux")) {

@ -135,7 +135,7 @@ public class DbQueryService {
QueryResponse response = new QueryResponse();
response.setQueryType(request.getQueryType());
Connection conn = null;
Connection conn;
PreparedStatement ps = null;
try {
@ -255,8 +255,8 @@ public class DbQueryService {
// 요청 객체를 다시 파싱 (필요한 경우)
// 예: 요청 객체의 쿼리 문자열에 줄바꿈이 포함되어 있을 경우
String requestJson = null;
QueryRequest sanitizedRequest = null;
String requestJson;
QueryRequest sanitizedRequest;
try {
requestJson = objectMapper.writeValueAsString(request);
sanitizedRequest = objectMapper.readValue(requestJson, QueryRequest.class);

Loading…
Cancel
Save