Skip to content
Snippets Groups Projects
Commit 5b971506 authored by Shinsuke Sugaya's avatar Shinsuke Sugaya
Browse files

#76

parent e32f87b3
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,8 @@ public class LogAction implements Serializable {
.getBytes(Constants.UTF_8)), Constants.UTF_8);
} catch (final UnsupportedEncodingException e1) {
fileName = new String(Base64.decodeBase64(logForm.logFileName
.getBytes()), Charset.defaultCharset());
.getBytes(Charset.defaultCharset())),
Charset.defaultCharset());
}
final File logFile = new File(parentDir, fileName);
if (logFile.isFile()) {
......@@ -155,8 +156,9 @@ public class LogAction implements Serializable {
Constants.UTF_8)), "UTF-8"));
} catch (final UnsupportedEncodingException e) {
map.put("logFileName",
new String(Base64.encodeBase64(file.getName().getBytes()),
Charset.defaultCharset()));
new String(Base64.encodeBase64(file.getName().getBytes(
Charset.defaultCharset())), Charset
.defaultCharset()));
}
map.put("lastModified", new Date(file.lastModified()));
return map;
......
......@@ -33,7 +33,7 @@ public class WebApiResponse extends HttpServletResponseWrapper {
@Override
public PrintWriter getWriter() throws IOException {
// dummy stream
return new PrintWriter(new ByteArrayOutputStream());
return new PrintWriter(new ByteArrayOutputStream()); // NOSONAR
}
}
package jp.sf.fess.dict;
public abstract class DictionaryItem {
protected long id;
public long getId() {
return id;
}
}
......@@ -15,8 +15,6 @@ public class SynonymItem extends DictionaryItem {
private String[] newOutputs;
private final long id;
public SynonymItem(final long id, final String[] inputs,
final String[] outputs) {
this.id = id;
......@@ -34,10 +32,6 @@ public class SynonymItem extends DictionaryItem {
}
}
public long getId() {
return id;
}
public String[] getNewInputs() {
return newInputs;
}
......
......@@ -86,8 +86,7 @@ public abstract class SearchLogHelper {
.getComponent(ClickLogBhv.class);
final ClickLogCB cb = new ClickLogCB();
cb.query().setUrl_Equal(url);
final int count = clickLogBhv.selectCount(cb);
return count;
return clickLogBhv.selectCount(cb);
}
public long getFavoriteCount(final String url) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment