Skip to content

Commit

Permalink
Merge pull request #310 from DevFactory/release/multiple-code-improve…
Browse files Browse the repository at this point in the history
…ments-fix-1

Multiple code improvements - squid:S1068, squid:S1905
  • Loading branch information
koda-masaru committed Mar 3, 2016
2 parents 3808f09 + fb35ac9 commit 6785613
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package org.support.project.knowledge.control.protect;

import org.support.project.common.log.Log;
import org.support.project.common.log.LogFactory;
import org.support.project.di.DI;
import org.support.project.di.Instance;
import org.support.project.knowledge.control.Control;
Expand All @@ -10,8 +8,6 @@

@DI(instance=Instance.Prototype)
public class ConfigControl extends Control {
/** ログ */
private static Log LOG = LogFactory.getLog(ConfigControl.class);

@Get
public Boundary index() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,11 @@

import org.support.project.common.bean.ValidateError;
import org.support.project.common.exception.ParseException;
import org.support.project.common.log.Log;
import org.support.project.common.log.LogFactory;
import org.support.project.common.util.RandomUtil;
import org.support.project.common.util.StringUtils;
import org.support.project.di.DI;
import org.support.project.di.Instance;
import org.support.project.knowledge.control.Control;
import org.support.project.knowledge.dao.TagsDao;
import org.support.project.knowledge.entity.TagsEntity;
import org.support.project.knowledge.logic.GroupLogic;
import org.support.project.knowledge.vo.GroupUser;
import org.support.project.web.bean.LabelValue;
Expand All @@ -33,8 +29,6 @@

@DI(instance=Instance.Prototype)
public class GroupControl extends Control {
/** ログ */
private static Log LOG = LogFactory.getLog(GroupControl.class);

public static final int PAGE_LIMIT = 10;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ public Boundary comment() throws Exception {
List<UploadFile> files = fileLogic.selectOnFileNos(fileNos, getRequest().getContextPath());
Iterator<UploadFile> iterator = files.iterator();
while (iterator.hasNext()) {
UploadFile uploadFile = (UploadFile) iterator.next();
UploadFile uploadFile = iterator.next();
if (uploadFile.getKnowlegeId() != null) {
// 新規登録なのに、添付ファイルが既にナレッジに紐づいている(おかしい)
iterator.remove();
Expand Down Expand Up @@ -517,7 +517,7 @@ public Boundary update_comment() throws Exception {
List<UploadFile> files = fileLogic.selectOnFileNos(fileNos, getRequest().getContextPath());
Iterator<UploadFile> iterator = files.iterator();
while (iterator.hasNext()) {
UploadFile uploadFile = (UploadFile) iterator.next();
UploadFile uploadFile = iterator.next();
if (uploadFile.getKnowlegeId() != null) {
// 新規登録なのに、添付ファイルが既にナレッジに紐づいている(おかしい)
iterator.remove();
Expand Down Expand Up @@ -629,7 +629,7 @@ public Boundary stock() throws IOException, InvalidParamException {
Stock stock = new Stock();
Iterator<String> keys = map.keySet().iterator();
while (keys.hasNext()) {
String key = (String) keys.next();
String key = keys.next();
Object value = map.get(key);
if (LOG.isTraceEnabled()) {
LOG.trace(key + " = " + value + " (" + value.getClass().getName() + ")");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
import net.arnx.jsonic.JSONException;

import org.support.project.common.bean.ValidateError;
import org.support.project.common.log.Log;
import org.support.project.common.log.LogFactory;
import org.support.project.di.DI;
import org.support.project.di.Instance;
import org.support.project.knowledge.control.Control;
Expand All @@ -24,8 +22,6 @@

@DI(instance=Instance.Prototype)
public class StockControl extends Control {
/** ログ */
private static Log LOG = LogFactory.getLog(StockControl.class);

private static final int LIST_LIMIT = 20;

Expand Down

0 comments on commit 6785613

Please sign in to comment.